diff options
author | NeilBrown <neilb@suse.de> | 2014-08-07 11:34:50 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2014-08-07 11:34:50 +1000 |
commit | f4dc5e9b7f4226217b534023c8ede3fd50c673b5 (patch) | |
tree | 07eed9af0f09c830a947d61a302bd5e1bc819b14 /super1.c | |
parent | c9f1cbc050eb52c058199c570864109afa0f1489 (diff) |
super: make sure to ignore disk state flags that we don't understand.
This make it easier to add new flags that some super-types
don't understand.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super1.c')
-rw-r--r-- | super1.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1557,7 +1557,7 @@ static int write_init_super1(struct supertype *st) unsigned long long data_offset; for (di = st->info; di; di = di->next) { - if (di->disk.state == 1) + if (di->disk.state & (1 << MD_DISK_FAULTY)) continue; if (di->fd < 0) continue; |