btrfs-progs: path-utils: rename is_mount_point
Add path_ prefix and update callers. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
89ad5e9dba
commit
facc0b130e
|
@ -52,7 +52,7 @@ int path_is_block_device(const char *path)
|
|||
* check if given path is a mount point
|
||||
* return 1 if yes. 0 if no. -1 for error
|
||||
*/
|
||||
int is_mount_point(const char *path)
|
||||
int path_is_mount_point(const char *path)
|
||||
{
|
||||
FILE *f;
|
||||
struct mntent *mnt;
|
||||
|
|
|
@ -29,7 +29,7 @@ char *__strncpy_null(char *dest, const char *src, size_t n);
|
|||
#define strncpy_null(dest, src) __strncpy_null(dest, src, sizeof(dest))
|
||||
|
||||
int path_is_block_device(const char *file);
|
||||
int is_mount_point(const char *file);
|
||||
int path_is_mount_point(const char *file);
|
||||
int is_path_exist(const char *file);
|
||||
int path_is_reg_file(const char *path);
|
||||
int is_same_loop_file(const char *a, const char *b);
|
||||
|
|
|
@ -434,7 +434,7 @@ int check_arg_type(const char *input)
|
|||
if (path_is_block_device(path) == 1)
|
||||
return BTRFS_ARG_BLKDEV;
|
||||
|
||||
if (is_mount_point(path) == 1)
|
||||
if (path_is_mount_point(path) == 1)
|
||||
return BTRFS_ARG_MNTPOINT;
|
||||
|
||||
if (path_is_reg_file(path))
|
||||
|
|
Loading…
Reference in New Issue