From owner-freebsd-hackers Tue Dec 4 5:40: 3 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 6CC4237B405; Tue, 4 Dec 2001 05:39:52 -0800 (PST) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 4 Dec 2001 13:39:46 +0000 (GMT) To: Bernd Walter Cc: cjclark@alum.mit.edu, Mark Hannon , bugs-followup@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: bin/32261: dump creates a dump file much larger than sum of dumped files In-Reply-To: Your message of "Tue, 04 Dec 2001 13:56:26 +0100." <20011204135626.A75212@cicely8.cicely.de> Date: Tue, 04 Dec 2001 13:39:46 +0000 From: Ian Dowse Message-ID: <200112041339.aa05506@salmon.maths.tcd.ie> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20011204135626.A75212@cicely8.cicely.de>, Bernd Walter writes: >> Is there any reason we don't want to truncate the file? Does O_TRUNC >> not work well of the file is a tape device or something? > >I don't expect O_TRUNK to work on devices such tapes and disks. Well, it won't achieve anything on tapes or disk devices, but it should be completely harmless to add the O_TRUNC flag. The current behaviour is likely to be unexpected and cause confusion so it might as well be changed. I'll commit this later unless someone can think of a good reason not to. Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message