From 87c25626c4bef0700c4b165ddc128061ea31bd58 Mon Sep 17 00:00:00 2001 From: Zhao Lei Date: Wed, 26 Aug 2015 17:04:22 +0800 Subject: 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 [renamed from open_btrfs_dir, adjusted error messages] Signed-off-by: David Sterba --- utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'utils.h') diff --git a/utils.h b/utils.h index 94606eda..10d68e9a 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)) -- cgit v1.2.3