diff options
author | Karel Zak | 2019-02-21 13:49:39 +0100 |
---|---|---|
committer | Karel Zak | 2019-02-21 13:49:39 +0100 |
commit | 911e694528618b52ce23e4e29a7a85ee9f4edf05 (patch) | |
tree | 9defd927b8e8b12ad9101992b53b8e14b9ae03c1 /tests | |
parent | lscpu: document --hex output regression (since v2.30) (diff) | |
download | kernel-qcow2-util-linux-911e694528618b52ce23e4e29a7a85ee9f4edf05.tar.gz kernel-qcow2-util-linux-911e694528618b52ce23e4e29a7a85ee9f4edf05.tar.xz kernel-qcow2-util-linux-911e694528618b52ce23e4e29a7a85ee9f4edf05.zip |
libmount: add mnt_table_{find,insert,move}_fs()
Add functions to insert FS into table to specified position and to
move FS between two tables.
Co-Author: Tim Hildering <hilderingt@posteo.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/expected/libmount/tabfiles-find-fs | 1 | ||||
-rwxr-xr-x | tests/ts/libmount/tabfiles | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/expected/libmount/tabfiles-find-fs b/tests/expected/libmount/tabfiles-find-fs new file mode 100644 index 000000000..0c67fb8f2 --- /dev/null +++ b/tests/expected/libmount/tabfiles-find-fs @@ -0,0 +1 @@ +/home/kzak index is 27 diff --git a/tests/ts/libmount/tabfiles b/tests/ts/libmount/tabfiles index ec0eae8e1..716fed8cb 100755 --- a/tests/ts/libmount/tabfiles +++ b/tests/ts/libmount/tabfiles @@ -77,4 +77,9 @@ ts_run $TESTPROG --find-pair "$TS_SELF/files/mtab" /dev/mapper/kzak-home /home/k sed -i -e 's/fs: 0x.*/fs:/g' $TS_OUTPUT ts_finalize_subtest +ts_init_subtest "find-fs" +ts_run $TESTPROG --find-fs "$TS_SELF/files/mountinfo" /home/kzak &> $TS_OUTPUT +sed -i -e 's/fs: 0x.*/fs:/g' $TS_OUTPUT +ts_finalize_subtest + ts_finalize |