]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Fix type - MD_SB_CLEAN is a bit number, not a bitmask.
authorNeil Brown <neilb@suse.de>
Tue, 7 Jun 2005 23:03:46 +0000 (23:03 +0000)
committerNeil Brown <neilb@suse.de>
Tue, 7 Jun 2005 23:03:46 +0000 (23:03 +0000)
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
super1.c

index 1f6cbe2e5b05aeac4016b2c80564a56246b96c4a..13859a7f84cc2c53f0c05421a1009a3255174677 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -411,7 +411,7 @@ static int init_super1(void **sbp, mdu_array_info_t *info)
 
        sb->utime = sb->ctime;
        sb->events = __cpu_to_le64(1);
-       if (info->state & MD_SB_CLEAN)
+       if (info->state & (1<<MD_SB_CLEAN))
                sb->resync_offset = ~0ULL;
        else
                sb->resync_offset = 0;