diff options
Diffstat (limited to 'convert')
-rw-r--r-- | convert/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/convert/main.c b/convert/main.c index f5c560c4..42b69df3 100644 --- a/convert/main.c +++ b/convert/main.c @@ -1216,15 +1216,13 @@ static int do_convert(const char *devname, u32 convert_flags, u32 nodesize, printf("\tnodesize: %u\n", nodesize); printf("\tfeatures: %s\n", features_buf); + memset(&mkfs_cfg, 0, sizeof(mkfs_cfg)); mkfs_cfg.label = cctx.volume_name; mkfs_cfg.num_bytes = total_bytes; mkfs_cfg.nodesize = nodesize; mkfs_cfg.sectorsize = blocksize; mkfs_cfg.stripesize = blocksize; mkfs_cfg.features = features; - /* New convert need these space */ - memset(mkfs_cfg.chunk_uuid, 0, BTRFS_UUID_UNPARSED_SIZE); - memset(mkfs_cfg.fs_uuid, 0, BTRFS_UUID_UNPARSED_SIZE); ret = make_convert_btrfs(fd, &mkfs_cfg, &cctx); if (ret) { |