btrfs-progs: convert remaining uuid buffer declarations to BTRFS_UUID_UNPARSED_SIZE
authorDavid Sterba <dsterba@suse.cz>
Tue, 10 Dec 2013 17:17:10 +0000 (18:17 +0100)
committerChris Mason <clm@fb.com>
Fri, 31 Jan 2014 16:22:13 +0000 (08:22 -0800)
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
cmds-receive.c
print-tree.c
send-test.c

index 95dc3ec..ed44107 100644 (file)
@@ -78,7 +78,7 @@ static int finish_subvol(struct btrfs_receive *r)
        int ret;
        int subvol_fd = -1;
        struct btrfs_ioctl_received_subvol_args rs_args;
-       char uuid_str[128];
+       char uuid_str[BTRFS_UUID_UNPARSED_SIZE];
        u64 flags;
 
        if (r->cur_subvol == NULL)
@@ -149,7 +149,7 @@ static int process_subvol(const char *path, const u8 *uuid, u64 ctransid,
        int ret;
        struct btrfs_receive *r = user;
        struct btrfs_ioctl_vol_args args_v1;
-       char uuid_str[128];
+       char uuid_str[BTRFS_UUID_UNPARSED_SIZE];
 
        ret = finish_subvol(r);
        if (ret < 0)
@@ -196,7 +196,7 @@ static int process_snapshot(const char *path, const u8 *uuid, u64 ctransid,
 {
        int ret;
        struct btrfs_receive *r = user;
-       char uuid_str[128];
+       char uuid_str[BTRFS_UUID_UNPARSED_SIZE];
        struct btrfs_ioctl_vol_args_v2 args_v2;
        struct subvol_info *parent_subvol = NULL;
 
index 716f4d3..9b90f9b 100644 (file)
@@ -378,7 +378,7 @@ static void print_root(struct extent_buffer *leaf, int slot)
        struct btrfs_root_item *ri;
        struct btrfs_root_item root_item;
        int len;
-       char uuid_str[128];
+       char uuid_str[BTRFS_UUID_UNPARSED_SIZE];
 
        ri = btrfs_item_ptr(leaf, slot, struct btrfs_root_item);
        len = btrfs_item_size_nr(leaf, slot);
index a37b7fd..5f7c311 100644 (file)
@@ -72,7 +72,7 @@ static int print_subvol(const char *path, const u8 *uuid, u64 ctransid,
                        void *user)
 {
        struct recv_args *r = user;
-       char uuid_str[128];
+       char uuid_str[BTRFS_UUID_UNPARSED_SIZE];
 
        r->full_subvol_path = path_cat(r->root_path, path);
        uuid_unparse(uuid, uuid_str);
@@ -88,8 +88,8 @@ static int print_snapshot(const char *path, const u8 *uuid, u64 ctransid,
                          void *user)
 {
        struct recv_args *r = user;
-       char uuid_str[128];
-       char parent_uuid_str[128];
+       char uuid_str[BTRFS_UUID_UNPARSED_SIZE];
+       char parent_uuid_str[BTRFS_UUID_UNPARSED_SIZE];
 
        r->full_subvol_path = path_cat(r->root_path, path);
        uuid_unparse(uuid, uuid_str);