: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 directori
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 direct
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
v
On Wed, Aug 27, 2008 at 12:49:13PM -0700, Matthew Dillon 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 dir
: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
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 directo
On Wed, August 27, 2008 17:01, YONETANI Tomokazu wrote:
> Hello.
> Since I have switched /home to a HAMMER PFS, mutt stopped reporting
> mailboxes with new messages. Digging mutt source code, I found something
> relavant:
>
>
> mutt_buffy_check:
>
>
> if (stat (tmp->path, &sb) != 0 || sb.st_size =
Hello.
Since I have switched /home to a HAMMER PFS, mutt stopped reporting
mailboxes with new messages. Digging mutt source code, I found something
relavant:
mutt_buffy_check:
if (stat (tmp->path, &sb) != 0 || sb.st_size == 0 ||
(!tmp->magic && (tmp->magic = mx_get_magic (tmp->path))