summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-08-31 19:38:31 +0200
committerDavid Sterba <dsterba@suse.com>2016-09-21 13:44:24 +0200
commit7aaa1a92f621eec59a4ef834afefd831915a3521 (patch)
tree3fa23165d53ebdaad1cc71200f01e9c37295ac26 /utils.h
parent90e3e630c2f641f3ceca32672e8e3a8ac0ceae8a (diff)
btrfs-progs: mkfs: use preallocated buffers for config uuids
No need for dynamic allocation, the buffers are small, remove the now-useless error conditions. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.h b/utils.h
index da23bfcc..f4e11bf3 100644
--- a/utils.h
+++ b/utils.h
@@ -112,8 +112,8 @@ void btrfs_parse_features_to_string(char *buf, u64 flags);
struct btrfs_mkfs_config {
char *label;
- char *fs_uuid;
- char *chunk_uuid;
+ char fs_uuid[BTRFS_UUID_UNPARSED_SIZE];
+ char chunk_uuid[BTRFS_UUID_UNPARSED_SIZE];
u64 blocks[8];
u64 num_bytes;
u32 nodesize;