Get rid of /etc/mtab and store userspace options in /run

Bug #906293 reported by Martin Pitt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
util-linux (Ubuntu)
Fix Released
Low
Canonical Foundations Team

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.

Revision history for this message
Martin Pitt (pitti) wrote :

Subscribing Foundations team for comments/input, but assigning to myself for now.

summary: - Get rid of /etc/mtab
+ Get rid of /etc/mtab and store userspace options in /run
Changed in util-linux (Ubuntu):
status: New → Triaged
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → Low
Revision history for this message
Steve Langasek (vorlon) wrote :

Certainly sounds to me like a reasonable change for Q, if this is the direction upstream is going in order to solve the problem.

Revision history for this message
Martin Pitt (pitti) wrote :

Assigning to c-foundations for consideration. Please feel free to unassign again if you consider it inappropriate.

Changed in util-linux (Ubuntu Quantal):
assignee: nobody → Canonical Foundations Team (canonical-foundations)
Phillip Susi (psusi)
no longer affects: util-linux (Ubuntu Quantal)
Revision history for this message
Martin Pitt (pitti) wrote :

This has happened a fair while ago already.

Changed in util-linux (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.