Re: [zfs-discuss] Why is st_size of a zfs directory equal to the

2009-01-14 Thread David Collier-Brown
"Richard L. Hamilton" wrote: >> I did find the earlier discussion on the subject (someone e-mailed me that >> there had been >> such). It seemed to conclude that some apps are statically linked with old >> scandir() code >> that (incorrectly) assumed that the number of directory entries could b

Re: [zfs-discuss] Why is st_size of a zfs directory equal to the

2009-01-14 Thread Joerg Schilling
"Richard L. Hamilton" wrote: > I did find the earlier discussion on the subject (someone e-mailed me that > there had been > such). It seemed to conclude that some apps are statically linked with old > scandir() code > that (incorrectly) assumed that the number of directory entries could be >

Re: [zfs-discuss] Why is st_size of a zfs directory equal to the

2009-01-14 Thread Richard L. Hamilton
> "Richard L. Hamilton" wrote: > > > Cute idea, maybe. But very inconsistent with the > size in blocks (reported by ls -dls dir). > > Is there a particular reason for this, or is it one > of those just for the heck of it things? > > > > Granted that it isn't necessarily _wrong_. I just > checke

Re: [zfs-discuss] Why is st_size of a zfs directory equal to the number of entries?

2009-01-14 Thread Joerg Schilling
"Richard L. Hamilton" wrote: > Cute idea, maybe. But very inconsistent with the size in blocks (reported by > ls -dls dir). > Is there a particular reason for this, or is it one of those just for the > heck of it things? > > Granted that it isn't necessarily _wrong_. I just checked SUSv3 for

[zfs-discuss] Why is st_size of a zfs directory equal to the number of entries?

2009-01-14 Thread Richard L. Hamilton
Cute idea, maybe. But very inconsistent with the size in blocks (reported by ls -dls dir). Is there a particular reason for this, or is it one of those just for the heck of it things? Granted that it isn't necessarily _wrong_. I just checked SUSv3 for stat() and sys/stat.h, and it appears tha