bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug#369822: ls -i stats unnecessarily


From: Paul Eggert
Subject: Re: Bug#369822: ls -i stats unnecessarily
Date: Sat, 03 Jun 2006 15:20:00 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Ian Jackson <address@hidden> writes:

> This behaviour is expected: if you readdir the directory containing
> a mountpoint, you get the inode number of the directory in the
> underlying filesystem;

That's not the behavior that I expected.  Also, it's not useful
behavior--at least, it's not useful for the vast majority of
real-world applications.  In contrast, it is useful for 'ls -i' to
print the inode number of the root of the mounted file system, for
'find -inum' to use that inode number, and so forth.

I can understand why readdir might have the behavior that you
describe: it might be more efficient internally.  But that doesn't
make it correct, or even "expected".  It's a bug in readdir.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]