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:
David Sterba 2019-07-02 00:04:18 +02:00
parent 89ad5e9dba
commit facc0b130e
3 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ int path_is_block_device(const char *path)
* check if given path is a mount point * check if given path is a mount point
* return 1 if yes. 0 if no. -1 for error * 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; FILE *f;
struct mntent *mnt; struct mntent *mnt;

View File

@ -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)) #define strncpy_null(dest, src) __strncpy_null(dest, src, sizeof(dest))
int path_is_block_device(const char *file); 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 is_path_exist(const char *file);
int path_is_reg_file(const char *path); int path_is_reg_file(const char *path);
int is_same_loop_file(const char *a, const char *b); int is_same_loop_file(const char *a, const char *b);

View File

@ -434,7 +434,7 @@ int check_arg_type(const char *input)
if (path_is_block_device(path) == 1) if (path_is_block_device(path) == 1)
return BTRFS_ARG_BLKDEV; return BTRFS_ARG_BLKDEV;
if (is_mount_point(path) == 1) if (path_is_mount_point(path) == 1)
return BTRFS_ARG_MNTPOINT; return BTRFS_ARG_MNTPOINT;
if (path_is_reg_file(path)) if (path_is_reg_file(path))