From: Neil Brown Date: Tue, 7 Jun 2005 23:03:47 +0000 (+0000) Subject: Fix a test that will allow arrays with bitmaps to be assembled. X-Git-Tag: mdadm-2.0-devel-1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11484a635ade9a4e54c82ee1a182e8eba398c623;p=thirdparty%2Fmdadm.git Fix a test that will allow arrays with bitmaps to be assembled. Signed-off-by: Neil Brown --- diff --git a/Assemble.c b/Assemble.c index 71aaa60c..080cfacc 100644 --- a/Assemble.c +++ b/Assemble.c @@ -531,7 +531,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd, mddev, strerror(errno)); return 1; } - if (ident->bitmap_fd) { + if (ident->bitmap_fd >= 0) { if (ioctl(mdfd, SET_BITMAP_FILE, ident->bitmap_fd) != 0) { fprintf(stderr, Name ": SET_BITMAP_FILE failed.\n"); return 1;