Fix a test that will allow arrays with bitmaps to be assembled.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
This commit is contained in:
Neil Brown 2005-06-07 23:03:47 +00:00
parent dfe47e008e
commit 11484a635a
1 changed files with 1 additions and 1 deletions

View 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;