[Bug 906293] [NEW] Get rid of /etc/mtab and store userspace options in /run
Martin Pitt
martin.pitt at ubuntu.com
Mon Dec 19 12:48:27 UTC 2011
Public bug reported:
/etc/mtab has always been a bit of a wart, as it's potentially broken to
put information about mounted file system on a mountedfile system. It is
out of date in rescue mode when / is read-only (but "mount" output won't
tell you), and leads to bugs like bug 891688 or bug 13131.
The only reason why we still have it is that /proc/mounts is not able to
store userspace-only extra options which e. g. udisks (uhelper=udisks),
pm-utils (commit=XXX), or NFS use.
These days there is a better option for this. Copying response from
util-linux upstream Karel Zak:
"When linked with libmount (--enable-libmount-mount) then the
userspace options (and only the options) are maintained by library in
userspace in /run/mount/utab. The mount, umount and findmnt are able to
see these options from by libmount. It's also supported by the latest
mount.nfs (as NFS requires some userspace stuff too)..
See Fedora, we don't use mtab any more. (Well, some utils like df have problem to de-duplicate list of mounted filesystems, but all
basic things works as expected.)"
This is worth investigating for the Q cycle.
** Affects: util-linux (Ubuntu)
Importance: Low
Assignee: Martin Pitt (pitti)
Status: Triaged
** Affects: util-linux (Ubuntu Q-series)
Importance: Low
Status: Triaged
** Summary changed:
- Get rid of /etc/mtab
+ Get rid of /etc/mtab and store userspace options in /run
** Also affects: util-linux (Ubuntu Q-series)
Importance: Undecided
Status: New
** Changed in: util-linux (Ubuntu)
Status: New => Triaged
** Changed in: util-linux (Ubuntu Q-series)
Status: New => Triaged
** Changed in: util-linux (Ubuntu)
Assignee: (unassigned) => Martin Pitt (pitti)
** Changed in: util-linux (Ubuntu)
Importance: Undecided => Low
** Changed in: util-linux (Ubuntu Q-series)
Importance: Undecided => Low
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/906293
Title:
Get rid of /etc/mtab and store userspace options in /run
Status in “util-linux” package in Ubuntu:
Triaged
Status in “util-linux” source package in q-series:
Triaged
Bug description:
/etc/mtab has always been a bit of a wart, as it's potentially broken
to put information about mounted file system on a mountedfile system.
It is out of date in rescue mode when / is read-only (but "mount"
output won't tell you), and leads to bugs like bug 891688 or bug
13131.
The only reason why we still have it is that /proc/mounts is not able
to store userspace-only extra options which e. g. udisks
(uhelper=udisks), pm-utils (commit=XXX), or NFS use.
These days there is a better option for this. Copying response from
util-linux upstream Karel Zak:
"When linked with libmount (--enable-libmount-mount) then the
userspace options (and only the options) are maintained by library in
userspace in /run/mount/utab. The mount, umount and findmnt are able
to see these options from by libmount. It's also supported by the
latest mount.nfs (as NFS requires some userspace stuff too)..
See Fedora, we don't use mtab any more. (Well, some utils like df have problem to de-duplicate list of mounted filesystems, but all
basic things works as expected.)"
This is worth investigating for the Q cycle.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/906293/+subscriptions
More information about the foundations-bugs
mailing list