On Sat, Jun 09, 2007 at 10:16:34PM +0200, [EMAIL PROTECTED] wrote:
> 
> >Oh, I see, this is bug 6479267: st_size (struct stat) is unreliable in
> >ZFS.  Any word on when the fix will be out?
> 
> It's a bug in scandir (obviously) and it is filed as such.
> 
> Does scandir fail on zfs because of this or does scandir needs to
> reallocate and does it use the size as first order estimate?

The bug is actually wrong - scandir() does work.  It only uses the
st_size as an estimate of directory size, but then scales the array as
necessary.  Apart from an odd malloc(0) and the poor linear scaling
algorithm, the function work fine with ZFS.

- Eric

--
Eric Schrock, Solaris Kernel Development       http://blogs.sun.com/eschrock
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to