summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-08-26 17:04:22 +0800
committerDavid Sterba <dsterba@suse.com>2015-08-31 19:25:14 +0200
commit87c25626c4bef0700c4b165ddc128061ea31bd58 (patch)
treec52cffe9e9a7d4b7a5d30f88e9a4969e2bf4e10b /utils.h
parent64650e13bba21c325a1ca6ea584a3250e9203b8a (diff)
downloadbtrfs-progs-87c25626c4bef0700c4b165ddc128061ea31bd58.tar.gz
btrfs-progs: Introduce btrfs_open_dir wrapper
This patch introduce open_btrfs_dir() to open a dir in btrfs filesystem. It can be used for several tools in btrfs-progs. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> [renamed from open_btrfs_dir, adjusted error messages] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 94606ed..10d68e9 100644
--- a/utils.h
+++ b/utils.h
@@ -158,6 +158,7 @@ int is_block_device(const char *file);
int is_mount_point(const char *file);
int check_arg_type(const char *input);
int open_path_or_dev_mnt(const char *path, DIR **dirstream);
+int btrfs_open_dir(const char *path, DIR **dirstream, int verbose);
u64 btrfs_device_size(int fd, struct stat *st);
/* Helper to always get proper size of the destination string */
#define strncpy_null(dest, src) __strncpy__null(dest, src, sizeof(dest))