btrfs-progs: path-utils: rename is_reg_file

Add path_ prefix and update callers.

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2019-07-02 00:03:32 +02:00
parent c3b0e6970b
commit 89ad5e9dba
3 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ int is_mount_point(const char *path)
return ret; return ret;
} }
int is_reg_file(const char *path) int path_is_reg_file(const char *path)
{ {
struct stat statbuf; struct stat statbuf;

View File

@ -31,7 +31,7 @@ char *__strncpy_null(char *dest, const char *src, size_t n);
int path_is_block_device(const char *file); int path_is_block_device(const char *file);
int is_mount_point(const char *file); int is_mount_point(const char *file);
int is_path_exist(const char *file); int is_path_exist(const char *file);
int 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);
int is_existing_blk_or_reg_file(const char *filename); int is_existing_blk_or_reg_file(const char *filename);

View File

@ -437,7 +437,7 @@ int check_arg_type(const char *input)
if (is_mount_point(path) == 1) if (is_mount_point(path) == 1)
return BTRFS_ARG_MNTPOINT; return BTRFS_ARG_MNTPOINT;
if (is_reg_file(path)) if (path_is_reg_file(path))
return BTRFS_ARG_REG; return BTRFS_ARG_REG;
return BTRFS_ARG_UNKNOWN; return BTRFS_ARG_UNKNOWN;