Red Hat Bugzilla – Bug 55260
Mounts disappear when using bind mount to automounter point
Last modified: 2007-04-18 12:37:50 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012
Description of problem:
I haven't been able to test this against RH7.2, but on RH7.1, the problem
is as follows:
We have an automounter (autofs) set up to automount into the /data
automount point, e.g. /data/caldb
automount(pid772) on /data type autofs (rw,fd=5,pgrp=772,minproto=2,maxproto=3)
xalph3.ast.cam.ac.uk:/soft3/caldb on /data/caldb type nfs
If I then use the --bind option on mount to bind this directory to another one:
> mount --bind /data/caldb /caldb
/data/caldb on /caldb type none (rw,bind)
It works fine, but when the automounter point expires, the bind mount
expires. I'd say this is a bug.
We could symlink to the automounter point, but what is the preferred solution?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Make a bind mount to an automounter point
2. Wait for automounter to unmount point
3. Bind mount disappears.
IMO the automount point shouldn't expire while there's a bind mount...
Reassinging to am-utils.
It works like u expected in current fedora core 4.
btw. I don't know why this bug was reassigned to am-utils.