mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-27 15:30:44 +00:00
btrfs-progs: path-utils: rename is_reg_file
Add path_ prefix and update callers. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
c3b0e6970b
commit
89ad5e9dba
@ -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;
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user