]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Apply RAID5 checks to RAID4 too.
authorMartin K. Petersen <mkp@linuxcare.com>
Sat, 31 Mar 2001 23:07:57 +0000 (23:07 +0000)
committerMartin K. Petersen <mkp@linuxcare.com>
Sat, 31 Mar 2001 23:07:57 +0000 (23:07 +0000)
mkfs/xfs_mkfs.c

index b9005f23f5491dba334625da9befdb23bd6065b4..3a4650cfb8e57d6fc9adbc6a7f150c068150c207 100644 (file)
@@ -300,8 +300,8 @@ get_subvol_stripe_wrapper(char *dfile, int type, int *sunit, int *swidth)
                        usage();
                }
 
-               /* Deduct a disk from stripe width on RAID5 */
-               if (md.level == 5)
+               /* Deduct a disk from stripe width on RAID4/5 */
+               if (md.level == 4 || md.level == 5)
                        md.nr_disks--;
                        
                /* Update sizes */