summaryrefslogtreecommitdiffstats
path: root/libmount/src/libmount.h.in
diff options
context:
space:
mode:
authorKarel Zak2019-02-21 13:49:39 +0100
committerKarel Zak2019-02-21 13:49:39 +0100
commit911e694528618b52ce23e4e29a7a85ee9f4edf05 (patch)
tree9defd927b8e8b12ad9101992b53b8e14b9ae03c1 /libmount/src/libmount.h.in
parentlscpu: document --hex output regression (since v2.30) (diff)
downloadkernel-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 'libmount/src/libmount.h.in')
-rw-r--r--libmount/src/libmount.h.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in
index a14bb6f3d..fb86aaff9 100644
--- a/libmount/src/libmount.h.in
+++ b/libmount/src/libmount.h.in
@@ -560,6 +560,11 @@ extern int mnt_table_append_trailing_comment(struct libmnt_table *tb, const char
extern int mnt_table_set_cache(struct libmnt_table *tb, struct libmnt_cache *mpc);
extern struct libmnt_cache *mnt_table_get_cache(struct libmnt_table *tb);
extern int mnt_table_add_fs(struct libmnt_table *tb, struct libmnt_fs *fs);
+extern int mnt_table_find_fs(struct libmnt_table *tb, struct libmnt_fs *fs);
+extern int mnt_table_insert_fs(struct libmnt_table *tb, int before,
+ struct libmnt_fs *pos, struct libmnt_fs *fs);
+extern int mnt_table_move_fs(struct libmnt_table *src, struct libmnt_table *dst,
+ int before, struct libmnt_fs *pos, struct libmnt_fs *fs);
extern int mnt_table_remove_fs(struct libmnt_table *tb, struct libmnt_fs *fs);
extern int mnt_table_first_fs(struct libmnt_table *tb, struct libmnt_fs **fs);
extern int mnt_table_last_fs(struct libmnt_table *tb, struct libmnt_fs **fs);