From: Nathan Scott Date: Thu, 6 May 2004 07:22:23 +0000 (+0000) Subject: Remove MD clean superblock bit check, on Neil Browns advice. X-Git-Tag: v2.7.0~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4aaa3e9bd9eca9ff80323dd217baefa2d5171a0e;p=thirdparty%2Fxfsprogs-dev.git Remove MD clean superblock bit check, on Neil Browns advice. --- diff --git a/doc/CHANGES b/doc/CHANGES index 2cfc4bb12..e120a16af 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -3,6 +3,8 @@ a log from beginning to end showing ondisk log record (-d). - Fix logprint handling of -f option - shouldn't be doing the UUID check in that case, since we don't have the SB. + - Remove MD device superblock "clean" check, following Neil + Brown's advice. xfsprogs-2.6.13 (03 May 2004) - Zero out more at beginning and end of device at mkfs time diff --git a/libdisk/md.c b/libdisk/md.c index 36f9d91fb..0dc516327 100644 --- a/libdisk/md.c +++ b/libdisk/md.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved. + * Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as @@ -68,14 +68,6 @@ md_get_subvol_stripe( } close(fd); - /* Check state */ - if (md.state & (1 << MD_SB_ERRORS)) { - fprintf(stderr, - _("warning - MD array %s in error state\n"), - dfile); - exit(1); - } - /* Deduct a disk from stripe width on RAID4/5 */ if (md.level == 4 || md.level == 5) md.nr_disks--;