linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* When ghosting is enabled, failed mounts by AutoFS leave broken directories
@ 2012-09-24 20:14 Leonardo Chiquitto
  2012-09-25  2:13 ` Ian Kent
  0 siblings, 1 reply; 10+ messages in thread
From: Leonardo Chiquitto @ 2012-09-24 20:14 UTC (permalink / raw)
  To: autofs; +Cc: linux-fsdevel, miklos

Hi,

If you try to access an automounted directory and the mount operation fails,
the attributes of the directory (owner, group, mode, access time) are lost.
This happens only when AutoFS' browse mode (ghosting) is enabled.

How to reproduce the problem:

Make sure you have BROWSE_MODE="yes" in /etc/sysconfig/autofs.

1. Add a simple indirect mount map (it's required that the server does NOT
   export the /notexported directory):

# cat /etc/auto.master
/nfs    /etc/auto.nfs

# cat /etc/auto.nfs
v2      server:/notexported

2. Restart AutoFS and try to access the directory:

# cd /nfs/v2
-bash: cd: /nfs/v2: No such file or directory

# ls -la /nfs
ls: cannot access /nfs/v2: No such file or directory
total 4
drwxr-xr-x  3 root root    0 Sep 24 21:43 .
drwxr-xr-x 28 root root 4096 Sep 24 21:25 ..
d?????????  ? ?    ?       ?            ? v2

This problem is reproducible on recent upstream kernels such as 3.6.0-rc6.
I found out that the last kernel version that does not exhibit the bug is
2.6.37. Between 2.6.37 and 2.6.38 there were quite some changes in
AutoFS/VFS and my attempts to bisect the problem were frustrated by
early crashes.

Any ideas?

Thanks,
Leonardo

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-10-09 11:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-24 20:14 When ghosting is enabled, failed mounts by AutoFS leave broken directories Leonardo Chiquitto
2012-09-25  2:13 ` Ian Kent
2012-09-25 21:42   ` Leonardo Chiquitto
2012-09-26  9:15     ` Ian Kent
2012-09-26 19:39       ` Leonardo Chiquitto
2012-09-27  1:04         ` Ian Kent
2012-09-27  4:35           ` Ian Kent
2012-09-27 18:35             ` Leonardo Chiquitto
2012-09-27 18:59               ` Michael Tokarev
2012-10-09 11:08                 ` Leonardo Chiquitto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).