Frank Cusack <[EMAIL PROTECTED]> wrote: > On June 13, 2007 11:26:07 PM -0400 Ed Ravin <[EMAIL PROTECTED]> wrote: > > On Wed, Jun 13, 2007 at 09:42:26PM -0400, Ed Ravin wrote: > >> As mentioned before, NetBSD's scandir(3) implementation was one. The > >> NetBSD project has fixed this in their CVS. OpenBSD and FreeBSD's > >> scandir() looks like another, I'll have to drop them a line. > > > > I heard from an OpenBSD developer who is working on a patch, but he hasn't > > got a ZFS filesystem to test against. > > He doesn't need one. He can just change OpenBSD's ufs (or whatever fs he > wishes to use) to plug in random small numbers for st_size instead of > what it does now. He could even do this on a 2nd system which exports > via NFS, to isolate the code under test.
He only need to assign statb.st_size = 0; directly after calling stat() in the scandir() code and them make it work again :-) Jörg -- EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin [EMAIL PROTECTED] (uni) [EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss