Bug 244637 - mount(/etc/mtab) lies
mount(/etc/mtab) lies
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: coreutils (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Tim Waugh
Depends On:
  Show dependency treegraph
Reported: 2007-06-18 05:41 EDT by Rafal Wijata
Modified: 2007-11-16 20:14 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-06-25 10:53:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Rafal Wijata 2007-06-18 05:41:38 EDT
Description of problem:
If filesystem gets remounted R/O by the kernel itself mount shows it's R/W.
/proc/mounts shows it correctly R/O.

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

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Tim Waugh 2007-06-25 10:53:04 EDT
/etc/mtab shows how the filesystem was mounted using mount(8).  There's not much
we can do about the kernel re-mounting read-only.
Comment 2 Rafal Wijata 2007-07-02 03:40:03 EDT
I guess mount should not use /etc/mtab but /proc/mounts
Isn't that *BSD going this way?

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