Date: Thu, 22 Mar 2001 05:10:03 -0800 (PST) From: Peter Pentchev <roam@orbitel.bg> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/25974: Holes in files do not zero-fill Message-ID: <200103221310.f2MDA3k58526@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/25974; it has been noted by GNATS. From: Peter Pentchev <roam@orbitel.bg> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103221310.f2MDA3k58526>