summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-06-07 23:03:47 +0000
committerNeil Brown <neilb@suse.de>2005-06-07 23:03:47 +0000
commit11484a635ade9a4e54c82ee1a182e8eba398c623 (patch)
tree49678780d36b329662c48ce4eabf0b552f7ba7db
parentdfe47e008e10d5640c6b3d0ae6de7ef6cefcb7b2 (diff)
downloadmdadm-11484a635ade9a4e54c82ee1a182e8eba398c623.tar.gz
mdadm-11484a635ade9a4e54c82ee1a182e8eba398c623.tar.xz
mdadm-11484a635ade9a4e54c82ee1a182e8eba398c623.zip
Fix a test that will allow arrays with bitmaps to be assembled.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
-rw-r--r--Assemble.c2
1 files changed, 1 insertions, 1 deletions
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;