mkfs-util: Pass sector size to mkfs.f2fs

Let's pass the sector size to mkfs.f2fs as well.
This commit is contained in:
Daan De Meyer
2023-08-12 13:29:50 +02:00
parent 89dfac6b8f
commit 1d117b068f
+8
View File
@@ -475,6 +475,14 @@ int make_filesystem(
if (quiet && strv_extend(&argv, "-q") < 0)
return log_oom();
if (sector_size > 0) {
if (strv_extend(&argv, "-w") < 0)
return log_oom();
if (strv_extendf(&argv, "%"PRIu64, sector_size) < 0)
return log_oom();
}
} else if (streq(fstype, "xfs")) {
const char *j;