summaryrefslogtreecommitdiff
path: root/cmds-subvolume.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2013-11-04 15:17:41 +0800
committerChris Mason <clm@fb.com>2014-01-31 08:22:03 -0800
commit1ecefced86538306d581b05105a93d1268ce0028 (patch)
tree2c056cfa051e67a6773add9f2b5b550470f1fdcd /cmds-subvolume.c
parent457b1286dd9976efbfec25bb286ddc8cec410aa1 (diff)
btrfs-progs: define BTRFS_UUID_UNPARSE_SIZE for uuid unparse buf size
we use 37 as the allocation size to hold the uuid_unparse, here it defines BTRFS_UUID_UNPARSE_SIZE for the same. Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r--cmds-subvolume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index f57694a1..c6a5284a 100644
--- a/cmds-subvolume.c
+++ b/cmds-subvolume.c
@@ -826,7 +826,7 @@ static int cmd_subvol_show(int argc, char **argv)
struct root_info get_ri;
struct btrfs_list_filter_set *filter_set;
char tstr[256];
- char uuidparse[37];
+ char uuidparse[BTRFS_UUID_UNPARSED_SIZE];
char *fullpath = NULL, *svpath = NULL, *mnt = NULL;
char raw_prefix[] = "\t\t\t\t";
u64 sv_id, mntid;