]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: add support for x-* mount comments
authorKarel Zak <kzak@redhat.com>
Thu, 21 Apr 2011 12:53:23 +0000 (14:53 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Apr 2011 12:53:23 +0000 (14:53 +0200)
commit699abc838104ff18e0883d42cfdac60a7c9f03ab
treed0b69568262d46de76372e578772cee3fe5f4f9a
parent7f9d92499a35e0165cf863e71500ab3288cfa67a
libmount: add support for x-* mount comments

The current way how add any comment or extra information to /etc/fstab
is to use comment="" mount option. This is not too elegant and readable
if you want to add more than one comment.

It seems better to add any generic prefix that will be used for all
3rd-party userspace mount options.

Expected syntax is:

  x-<application>-<options>[=<data>]

For example:

  x-systemd-bar=managed

All x-* options (as well as comment=) are ignored by libmount and not
stored to the mtab file.

Requested-by: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/mount/src/libmount.h.in
shlibs/mount/src/optmap.c
tests/expected/libmount/optstr-flags
tests/expected/libmount/optstr-split
tests/ts/libmount/optstr