diff options
author | Ondrej Oprala | 2013-06-14 13:00:49 +0200 |
---|---|---|
committer | Karel Zak | 2013-07-03 11:21:33 +0200 |
commit | d22f2822ed873bac1dbb28aa5fd5351f3a27b2b8 (patch) | |
tree | 2da585531305fbafa471160b3ff5f6a19bead17e /tests/expected/libmount | |
parent | libmount: add functions to handle comments in fs tables (diff) | |
download | kernel-qcow2-util-linux-d22f2822ed873bac1dbb28aa5fd5351f3a27b2b8.tar.gz kernel-qcow2-util-linux-d22f2822ed873bac1dbb28aa5fd5351f3a27b2b8.tar.xz kernel-qcow2-util-linux-d22f2822ed873bac1dbb28aa5fd5351f3a27b2b8.zip |
libmount: add functions to safely replace a fs table
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Diffstat (limited to 'tests/expected/libmount')
-rw-r--r-- | tests/expected/libmount/update-fstab-replace | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/expected/libmount/update-fstab-replace b/tests/expected/libmount/update-fstab-replace new file mode 100644 index 000000000..dc8d1dfbc --- /dev/null +++ b/tests/expected/libmount/update-fstab-replace @@ -0,0 +1,24 @@ +# + # this is a leading comment +# + +# this comments belongs to the first fs +UUID=d3a8f783-df75-4dc8-9163-975a891052c0 / ext3 noatime,defaults 1 1 +UUID=fef7ccb3-821c-4de8-88dc-71472be5946f /boot ext3 noatime,defaults 1 2 + +# 3rd fs comment + newline padding + +UUID=1f2aa318-9c34-462e-8d29-260819ffd657 swap swap defaults 0 0 +tmpfs /dev/shm tmpfs defaults 0 0 +devpts /dev/pts devpts gid=5,mode=620 0 0 +sysfs /sys sysfs defaults 0 0 +proc /proc proc defaults 0 0 +# this is comment +/dev/mapper/foo /home/foo ext4 noatime,defaults 0 0 +foo.com:/mnt/share /mnt/remote nfs noauto 0 0 +//bar.com/gogogo /mnt/gogogo cifs user=SRGROUP/baby,noauto 0 0 +/dev/foo /any/foo/ auto defaults 0 0 +# this is new filesystem +LABEL=foo /mnt/foo none rw 0 0 + +#this is a trailing comment |