Bug 485004 - Move mount doesn't correctly update mtab
Summary: Move mount doesn't correctly update mtab
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: util-linux
Version: 4.7
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Karel Zak
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks: 460087 477245 485201
TreeView+ depends on / blocked
 
Reported: 2009-02-11 03:54 UTC by Ian Kent
Modified: 2009-05-18 19:02 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-18 19:02:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Ported mount move patch for RHEL-4 util-linux (1.11 KB, patch)
2009-02-11 03:54 UTC, Ian Kent
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2009:0981 0 normal SHIPPED_LIVE Low: util-linux security and bug fix update 2009-05-18 13:45:19 UTC

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


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