From: Nathan Scott Date: Fri, 3 Jun 2005 06:08:37 +0000 (+0000) Subject: Do not do stripe alignment in mkfs for raid0/1 MD devices. X-Git-Tag: v2.7.0~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d8ace9acb04aec4697df134b263b752af5a329e;p=thirdparty%2Fxfsprogs-dev.git Do not do stripe alignment in mkfs for raid0/1 MD devices. Merge of master-melb:xfs-cmds:22794a by kenmcd. --- diff --git a/libdisk/md.c b/libdisk/md.c index 0dc516327..c3eed2ef0 100644 --- a/libdisk/md.c +++ b/libdisk/md.c @@ -68,6 +68,10 @@ md_get_subvol_stripe( } close(fd); + /* Ignore concat and mirror volumes */ + if (md.level == 0 || md.level == 1) + return 0; + /* Deduct a disk from stripe width on RAID4/5 */ if (md.level == 4 || md.level == 5) md.nr_disks--;