Bug 485004 - Move mount doesn't correctly update mtab
Move mount doesn't correctly update mtab
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: util-linux (Show other bugs)
4.7
All Linux
low Severity medium
: rc
: ---
Assigned To: Karel Zak
BaseOS QE
:
Depends On:
Blocks: 460087 477245 485201
  Show dependency treegraph
 
Reported: 2009-02-10 22:54 EST by Ian Kent
Modified: 2009-05-18 15:02 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-05-18 15:02:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2009:0981 normal SHIPPED_LIVE Low: util-linux security and bug fix update 2009-05-18 09:45:19 EDT

  None (edit)
Description Ian Kent 2009-02-10 22:54:29 EST
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-10 23:13:24 EST
(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 15:02:14 EDT
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.