From 11484a635ade9a4e54c82ee1a182e8eba398c623 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 7 Jun 2005 23:03:47 +0000 Subject: [PATCH] Fix a test that will allow arrays with bitmaps to be assembled. Signed-off-by: Neil Brown --- Assemble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assemble.c b/Assemble.c index 71aaa60..080cfac 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;