From owner-freebsd-bugs Thu Mar 22 5:10: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3635E37B720 for ; Thu, 22 Mar 2001 05:10:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2MDA3k58526; Thu, 22 Mar 2001 05:10:03 -0800 (PST) (envelope-from gnats) Date: Thu, 22 Mar 2001 05:10:03 -0800 (PST) Message-Id: <200103221310.f2MDA3k58526@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: kern/25974: Holes in files do not zero-fill Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/25974; it has been noted by GNATS. From: Peter Pentchev To: jimz@panasas.com Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/25974: Holes in files do not zero-fill Date: Thu, 22 Mar 2001 15:06:54 +0200 On Wed, Mar 21, 2001 at 02:05:11PM -0800, jimz@panasas.com wrote: > > >Number: 25974 > >Category: kern > >Synopsis: Holes in files do not zero-fill > >Originator: Jim Zelenka > >Release: 4.1.1 > >Organization: > Panasas, Inc. > >Environment: > FreeBSD natasha.panasas.com 4.1.1-RELEASE FreeBSD 4.1.1-RELEASE #0: Thu Mar 8 14:41:32 EST 2001 jimz@natasha.panasas.com:/usr/src/sys/compile/NATASHA-HZ-DBG i386 > > >Description: > If a process opens a file, writes some bytes, seeks past the end of > the file, writes some bytes, then reads the intermediate (hole) area, > it does not see zeroes in the hole. The attached program does just this. > It initializes the buffer that the read goes into to contain all 0x7f, > and then reads into it. Sometimes the buffer (correctly) contains > zeroes in the hole, sometimes some bytes contain 0x7f, suggesting that > it did not write into the buffer, and sometimes the buffer contains > "other" bytes- it is not clear to me if these are uninitialized bytes > from an in-core cache block or uninitialized bytes on the disk. Can you try updating your system to -STABLE (which is currently 4.3-RC), and see if the problem persists? On my 4.3-RC machine, your 'zerofill' program outputs nothing but SUCCESS lines. Information on updating your system can be found at: http://www.FreeBSD.org/handbook/synching.html G'luck, Peter -- because I didn't think of a good beginning of it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message