summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2016-03-21 15:21:04 +0800
committerDavid Sterba <dsterba@suse.com>2016-03-30 16:25:28 +0200
commite494f5790fcbe401b4b0d171ae5575991670b790 (patch)
tree62b7de7e8bba68bc7778ae4df5621df08c24a133 /utils.h
parent8cec21a7ed91e0d4c49f1fbe188622af0586602c (diff)
btrfs-progs: create get_subvol_info()
get_subvol_info() is useful as we are adding more features around subvolume. This function was inline with the function cmd_subvol_show(). Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index c6395b03..09bd3b37 100644
--- a/utils.h
+++ b/utils.h
@@ -24,6 +24,7 @@
#include <dirent.h>
#include <stdarg.h>
#include "internal.h"
+#include "btrfs-list.h"
#define BTRFS_MKFS_SYSTEM_GROUP_SIZE (4 * 1024 * 1024)
#define BTRFS_MKFS_SMALL_VOLUME_SIZE (1024 * 1024 * 1024)
@@ -198,6 +199,7 @@ int test_issubvolume(const char *path);
int test_isdir(const char *path);
char *get_subvol_name(char *mnt, char *full_path);
+int get_subvol_info(char *fullpath, struct root_info *get_ri);
/*
* Btrfs minimum size calculation is complicated, it should include at least: