diff options
author | Karel Zak | 2013-03-25 13:56:31 +0100 |
---|---|---|
committer | Karel Zak | 2013-03-25 13:56:31 +0100 |
commit | dcc15ce5afc7a5f86f65f9084a780f9509e15613 (patch) | |
tree | 72f1d4ee94f8f840598eacaf305107d3bf92b7f4 /libmount/src/libmount.h.in | |
parent | libmount: make libmount.h consistent with code (diff) | |
download | kernel-qcow2-util-linux-dcc15ce5afc7a5f86f65f9084a780f9509e15613.tar.gz kernel-qcow2-util-linux-dcc15ce5afc7a5f86f65f9084a780f9509e15613.tar.xz kernel-qcow2-util-linux-dcc15ce5afc7a5f86f65f9084a780f9509e15613.zip |
libmount: add mnt_table_find_mountpoint()
This is more robust implementation of mnt_get_mountpoint() that does
not ignore bind mountpoints (mount --bind /mnt /mnt) as it does not
depend on st_dev numbers.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/libmount.h.in')
-rw-r--r-- | libmount/src/libmount.h.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in index 739f5daee..1b5df82ac 100644 --- a/libmount/src/libmount.h.in +++ b/libmount/src/libmount.h.in @@ -462,6 +462,8 @@ extern int mnt_table_get_root_fs(struct libmnt_table *tb, struct libmnt_fs **roo extern int mnt_table_set_iter(struct libmnt_table *tb, struct libmnt_iter *itr, struct libmnt_fs *fs); +extern struct libmnt_fs *mnt_table_find_mountpoint(struct libmnt_table *tb, + const char *path, int direction); extern struct libmnt_fs *mnt_table_find_target(struct libmnt_table *tb, const char *path, int direction); extern struct libmnt_fs *mnt_table_find_srcpath(struct libmnt_table *tb, |