]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Do not do stripe alignment in mkfs for raid0/1 MD devices.
authorNathan Scott <nathans@sgi.com>
Fri, 3 Jun 2005 06:08:37 +0000 (06:08 +0000)
committerNathan Scott <nathans@sgi.com>
Fri, 3 Jun 2005 06:08:37 +0000 (06:08 +0000)
Merge of master-melb:xfs-cmds:22794a by kenmcd.

libdisk/md.c

index 0dc516327520dd2b2f3b55889d8a28a597fa901c..c3eed2ef07be8ab558e65eaabf3808df3d5dd2b1 100644 (file)
@@ -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--;