Bug 485004

Summary: Move mount doesn't correctly update mtab
Product: Red Hat Enterprise Linux 4 Reporter: Ian Kent <ikent>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: low    
Version: 4.7CC: jmoyer, rvokal, vanhoof, ykopkova
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-18 19:02:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 460087, 477245, 485201    
Attachments:
Description Flags
Ported mount move patch for RHEL-4 util-linux none

Description Ian Kent 2009-02-11 03:54:29 UTC
Created attachment 331511 [details]
Ported mount move patch for RHEL-4 util-linux

Description of problem:

When using "mount --move" /etc/mtab doesn't get updated.
Sorry, but autofs in RHEL-4.8 needs this update.

How reproducible:
always

Steps to Reproduce:
1. mkdir /tmp/mnt /tmp/tmp
2. mount <server>:/<path> /tmp/tmp
3. mount --move /tmp/tmp /tmp/mnt

Actual results:
After the steps above /etc/matb has:
<server>:/<path> /tmp/tmp nfs ....
/tmp/tmp /tmp/mnt none ...

but /proc/mounts has:
<server>:/<path> /tmp/mnt nfs ....

Expected results:
/etc/matb should have a single entry
<server>:/<path> /tmp/mnt nfs ....

Additional info:
I believe the attached patch is the appropriate RHEL-4 port
of your RHEL-5 patch for util-linux.

Comment 1 Ian Kent 2009-02-11 04:13:24 UTC
(In reply to comment #0)
> Description of problem:
> 
> When using "mount --move" /etc/mtab doesn't get updated.
> Sorry, but autofs in RHEL-4.8 needs this update.

That's actually the autofs5 package in RHEL-4.

Ian

Comment 14 errata-xmlrpc 2009-05-18 19:02:14 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2009-0981.html