]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: revert X-* and x-* meaning
authorKarel Zak <kzak@redhat.com>
Fri, 9 Dec 2016 14:11:31 +0000 (15:11 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Dec 2016 14:36:14 +0000 (15:36 +0100)
commit0a14cc8bcc151e03c8979ed1ff4a3bee9672365b
tree5f72c2484435b556ddec93bd162e9e5f5dedbd9d
parent08595712f3b6c96944987b82ec85e295dc924850
libmount: revert X-* and x-* meaning

Let's hope this is last change necessary to cleanup x-* usage:

  x-*  persistent option, stored in utab, available for umount, etc.
  X-*  fstab comment only

mount(8) supports x-mount.mkdir= as well as newly recommended X-mount.mkdir=

Advantages:

 * less invasive
 * does not require exception for x-systemd
 * does not require rename x-initrd to X-initrd

The systemd and dracut users will get the new (=fixed) functionality without a
change in fstab configuration. This is the primary goal.

Disadvantages:

 * not 100% compatible libmount behavior, x-* options have not been
   previously stored in utab. The API is the same, options will be still
   available, but on x-* libmount will write to /run/mount/utab. For now
   it seems only systemd uses x-*, and they like this behavior, so...

Addresses: https://github.com/systemd/systemd/pull/4515
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
libmount/src/context.c
libmount/src/libmount.h.in
libmount/src/optmap.c
sys-utils/mount.8
tests/ts/libmount/context