Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 227303 - accesses fail after umounting the mount point manually
Summary: accesses fail after umounting the mount point manually
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: autofs
Version: 4.4
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Jeff Moyer
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2007-02-05 02:49 UTC by wengang wang
Modified: 2007-11-17 01:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-02-05 16:12:22 UTC
Target Upstream Version:

Attachments (Terms of Use)
patch to fix autofs manually umount problem. (deleted)
2007-02-05 02:49 UTC, wengang wang
no flags Details

Description wengang wang 2007-02-05 02:49:31 UTC
Description of problem:

For,  If one umount the mount point mounted by autofs(automount)
manually, automount don't mount it again and after the umount even a new
accesses come, accessings under that mount point fail.

Version-Release number of selected component (if applicable):

all version all release.

How reproducible:

100% reproducible.

Steps to Reproduce:
1. umount the mount point mounted by autofs(automount) mannually,
2. access under that just umounted mount point. 
Actual results:

accessings fail.

Expected results:

accessings succeed.

Additional info:

a patch aganst kernel-2.6.9-34.0.1 is made as attached. please get this included
in update 5.

Comment 1 wengang wang 2007-02-05 02:49:31 UTC
Created attachment 147336 [details]
patch to fix autofs manually umount problem.

Comment 2 Ian Kent 2007-02-05 03:21:57 UTC
What happens if the mount point is not in the top level
directory? Won't this fail to return the needed dentry?


Comment 3 Ian Kent 2007-02-05 03:33:23 UTC
And what happens if the user space daemon removes the directory
while you're using it?


Comment 4 Jeff Moyer 2007-02-05 16:12:22 UTC
Autofs version 4 mounts each multimount hierarchy as a single unit.  What this
means is that autofs cannot determine that a leaf node in this hierarchy was
unmounted.  As such, this problem can only be fixed for non-hierarchical mounts.
 Fixing the problem for only that case will cause inconsistent behaviour, so I
do not believe the change is warranted.

Further, one should not unmount autofs managed mount points by hand.  You can
send SIGUSR1 to the daemon to tell it to unmount currently mounted shares.

Version 5 of the automounter takes steps to address this problem, though
unmounting shares by hand is not recommended.

Comment 5 wengang wang 2007-02-07 07:52:35 UTC
hi Ian and Jeffrey,

to Ian:
I think what you metioned should be solved by user space program specified in
master map, like auto.master, if there are problems.

to Jeffrey:
yes, the change takes no effect on multimount hierarchy, because the upper level
mounted FS receives the request and autofs won't be notified.
Sometimes users don't rules and they like their convenient way. It's better we
make autofs robuster.
will autofs version 5 be included in RHEL4.5?


Comment 6 Jeff Moyer 2007-02-07 17:08:47 UTC

I agree that autofs should be made more robust, and v5 accomplishes this.  I'm
not sure when autofs v5 will be available in RHEL 4, but it will be available at
some point.

Note You need to log in before you can comment on or make changes to this bug.