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/utils.c | |
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/utils.c')
-rw-r--r-- | libmount/src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/utils.c b/libmount/src/utils.c index 1d4fd0e4b..5453789e3 100644 --- a/libmount/src/utils.c +++ b/libmount/src/utils.c @@ -94,7 +94,7 @@ static int fstype_cmp(const void *v1, const void *v2) /* returns basename and keeps dirname in the @path, if @path is "/" (root) * then returns empty string */ -static char *stripoff_last_component(char *path) +char *stripoff_last_component(char *path) { char *p = path ? strrchr(path, '/') : NULL; |