]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Fix a test that will allow arrays with bitmaps to be assembled.
authorNeil Brown <neilb@suse.de>
Tue, 7 Jun 2005 23:03:47 +0000 (23:03 +0000)
committerNeil Brown <neilb@suse.de>
Tue, 7 Jun 2005 23:03:47 +0000 (23:03 +0000)
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Assemble.c

index 71aaa60c1df9f321db1203492824331fa261d1af..080cfacc26ae0e974bada8194f29a9282fbf3565 100644 (file)
@@ -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;