Re: mutt's buffy-list

2008-08-28 Thread YONETANI Tomokazu
On Wed, Aug 27, 2008 at 07:18:42PM +0200, Joerg Sonnenberger wrote:
> On Thu, Aug 28, 2008 at 12:01:50AM +0900, YONETANI Tomokazu wrote:
> > My questions are, is checking st_size of a directory is usual on other
> > platforms/filesystems?  Does anyone know of other filesystems on which
> > a directory can have st_size of zero?
> 
> I don't know any filesystem where the directories have a fixed size of
> 0. I don't think that should be done, it is helpful for other things.

But I couldn't think of a situation where it's really helpful when
directories always have non-zero size.

Cheers.


Re: mutt's buffy-list

2008-08-28 Thread Joerg Sonnenberger
On Wed, Aug 27, 2008 at 12:49:13PM -0700, Matthew Dillon wrote:
> I could fake it I guess, but programs really have no business making
> assumptions about directories based on their st_nlinks or st_size
> fields.

At least nlinks == 2 is a hard-coded assumption for leaf directories in
various programs like find(1). You don't have to change the link count
for every file create/destroy, only directories.

Joerg