On Tue, Jul 22, 2008 at 05:06:21PM +0200, Pawel Jakub Dawidek wrote: > On Tue, Jul 22, 2008 at 08:56:31AM -0600, Mark Shellenbaum wrote: > > Pawel Jakub Dawidek wrote: > > >On Tue, Jul 22, 2008 at 04:28:45PM +0200, Pawel Jakub Dawidek wrote: > > >>Hi. > > >> > > >>I just reproduced a problem I was chasing on FreeBSD also on > > >>OpenSolaris from around 2008.01. > > >> > > >>Simply doing something like this: > > >> > > >> write 9k of random data into 'foo' file > > >> truncate 'foo' file to 7k > > >> truncate 'foo' file to 11k > > >> read data between 7k-9k > > >> > > >>There should be all zeros between 7k-9k, but there is previous data. > > >>It worked fine on an older ZFS versions (I'm sure it works on version 6). > > >> > > >>Simple test program: > > >[...] > > > > > > > Thanks for reporting this. > > > > I've opened bug: > > > > 6728399 ftruncate(2) broken on ZFS > > Actually it's not only ftruncate(2), but also truncate(2). I even tried > to export&import between each step and I still saw corruption.
One more note, might be important. We checked this on FreeBSD/ZFS/amd64 and we don't see corruption, although I see corruption on FreeBSD/ZFS/i386 and OpenSolaris/ZFS/i386. -- Pawel Jakub Dawidek http://www.wheel.pl pjd at FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-code/attachments/20080722/ff456c7d/attachment.bin>
