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/mountP.h | |
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/mountP.h')
-rw-r--r-- | libmount/src/mountP.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h index 1b4ba687b..065b815c1 100644 --- a/libmount/src/mountP.h +++ b/libmount/src/mountP.h @@ -132,6 +132,8 @@ extern int endswith(const char *s, const char *sx) extern int startswith(const char *s, const char *sx) __attribute__((nonnull)); +extern char *stripoff_last_component(char *path); + extern int is_file_empty(const char *name); extern int mkdir_p(const char *path, mode_t mode); |