Message ID | 20211005062305.549871-2-naohiro.aota@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs-progs: use direct-IO for zoned device | expand |
diff --git a/mkfs/main.c b/mkfs/main.c index 8a4c9523d601..314d608a5cc5 100644 --- a/mkfs/main.c +++ b/mkfs/main.c @@ -1357,7 +1357,10 @@ int BOX_MAIN(mkfs)(int argc, char **argv) mkfs_cfg.features = features; mkfs_cfg.runtime_features = runtime_features; mkfs_cfg.csum_type = csum_type; - mkfs_cfg.zone_size = zone_size(file); + if (zoned) + mkfs_cfg.zone_size = zone_size(file); + else + mkfs_cfg.zone_size = 0; ret = make_btrfs(fd, &mkfs_cfg); if (ret) {