diff options
author | Karel Zak | 2011-04-21 14:53:23 +0200 |
---|---|---|
committer | Karel Zak | 2011-04-21 14:53:23 +0200 |
commit | 699abc838104ff18e0883d42cfdac60a7c9f03ab (patch) | |
tree | d0b69568262d46de76372e578772cee3fe5f4f9a /tests/expected/libmount | |
parent | tests: don't run mount/regfile test on old kernel (diff) | |
download | kernel-qcow2-util-linux-699abc838104ff18e0883d42cfdac60a7c9f03ab.tar.gz kernel-qcow2-util-linux-699abc838104ff18e0883d42cfdac60a7c9f03ab.tar.xz kernel-qcow2-util-linux-699abc838104ff18e0883d42cfdac60a7c9f03ab.zip |
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>
Diffstat (limited to 'tests/expected/libmount')
-rw-r--r-- | tests/expected/libmount/optstr-flags | 2 | ||||
-rw-r--r-- | tests/expected/libmount/optstr-split | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/expected/libmount/optstr-flags b/tests/expected/libmount/optstr-flags index 5d138b510..17b472745 100644 --- a/tests/expected/libmount/optstr-flags +++ b/tests/expected/libmount/optstr-flags @@ -1,2 +1,2 @@ mountflags: 0x0000000e -userspace-mountflags: 0x00000208 +userspace-mountflags: 0x00002208 diff --git a/tests/expected/libmount/optstr-split b/tests/expected/libmount/optstr-split index bd2bc2374..341a64035 100644 --- a/tests/expected/libmount/optstr-split +++ b/tests/expected/libmount/optstr-split @@ -1,3 +1,3 @@ -user : user=kzak,loop=/dev/loop0 +user : x-bar,x-foo=foodata,user=kzak,loop=/dev/loop0 vfs : noexec,nosuid fs : aaa,bbb=BBB,ccc |