bug-coreutils
[Top][All Lists]
Advanced

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

Re: /bin/pwd causes a fstat on all autofs mounted volumes


From: Jim Meyering
Subject: Re: /bin/pwd causes a fstat on all autofs mounted volumes
Date: Tue, 07 Oct 2008 23:52:30 +0200

Paul Raines <address@hidden> wrote:
> When one runs /bin/pwd (using coreutils 5.97) on an autofs mounted
> volume, it causes an fstat to be run on all autofs mounted volumes
> on that automount's mount point.  THis is not only a big waste but
> if a NFS mount server down it causes /bin/pwd to hang.  /bin/pwd
> in perfectly working NFS mount should not hang because some other
> mount is down.
>
> I have an autofs mount point at /autofs/space.  THe autofs map for
> this mount point has over a thousand entries.  If I am in
> /autofs/space/pgolland_001
> for instance I do a 'strace /bin/pwd' I see a thousand lines like:
>
> fstatat64(4, "meso_018", {st_mode=S_IFDIR|0555, st_size=0, ...},
> AT_SYMLINK_NOFOLLOW) = 0
> fstatat64(4, "47tuser_006", {st_mode=S_IFDIR|0555, st_size=0, ...},
> AT_SYMLINK_NOFOLLOW) = 0
> fstatat64(4, "bomba_036", {st_mode=S_IFDIR|0555, st_size=0, ...},
> AT_SYMLINK_NOFOLLOW) = 0
> fstatat64(4, "pimlico_004", {st_mode=S_IFDIR|0555, st_size=0, ...},
> AT_SYMLINK_NOFOLLOW) = 0
> fstatat64(4, "tadasana_001", {st_mode=S_IFDIR|0555, st_size=0, ...},
> AT_SYMLINK_NOFOLLOW) = 0
> fstatat64(4, "acumonk_003", {st_mode=S_IFDIR|0555, st_size=0, ...},
> AT_SYMLINK_NOFOLLOW) = 0
> fstatat64(4, "mody_004", {st_mode=S_IFDIR|0555, st_size=0, ...},
> AT_SYMLINK_NOFOLLOW) = 0
> fstatat64(4, "soulenoid_006", {st_mode=S_IFDIR|0555, st_size=0, ...},
> AT_SYMLINK_NOFOLLOW) = 0
> fstatat64(4, "madrc_003", {st_mode=S_IFDIR|0555, st_size=0, ...},
> AT_SYMLINK_NOFOLLOW) = 0
>
> until it hangs on one that is mounted but down at the moment.

Thanks for the report, but you forgot to tell what type
of system you're using.  And your version of coreutils is
rather old.  The latest stable release is 6.12, and I've
just release a beta, coreutils-7.0.

If you can still reproduce with one of the following,
please let us know:
[see either http link for download+build instructions]

http://thread.gmane.org/gmane.comp.gnu.core-utils.announce/46
  ftp://ftp.gnu.org/gnu/coreutils/coreutils-6.12.tar.gz
  ftp://ftp.gnu.org/gnu/coreutils/coreutils-6.12.tar.lzma

http://article.gmane.org/gmane.comp.gnu.core-utils.announce/47
  ftp://alpha.gnu.org/gnu/coreutils/coreutils-7.0.tar.gz
  ftp://alpha.gnu.org/gnu/coreutils/coreutils-7.0.tar.lzma




reply via email to

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