diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-10-28 18:55:31 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-10-28 18:55:31 +0100 |
commit | 032e9e29538f42deec84841bc684e7b3964f8504 (patch) | |
tree | 3b559ade8f4627015e1799e43f54a4e501ad5509 /Examine.c | |
parent | imsm: update metadata immediately on "add spare" events (diff) | |
download | mdadm-032e9e29538f42deec84841bc684e7b3964f8504.tar.xz mdadm-032e9e29538f42deec84841bc684e7b3964f8504.zip |
Examine: fix MD_DISK_SYNC is a bit not a flag
Examine() is actually looking at the ACTIVE bit. This happened to work for
imsm spares but now it needs to be fixed up.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'Examine.c')
-rw-r--r-- | Examine.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -123,7 +123,7 @@ int Examine(mddev_dev_t devlist, int brief, int export, int scan, st->ss->getinfo_super(st, &ap->info); st->ss->free_super(st); } - if (!(ap->info.disk.state & MD_DISK_SYNC)) + if (!(ap->info.disk.state & (1<<MD_DISK_SYNC))) ap->spares++; d = dl_strdup(devlist->devname); dl_add(ap->devs, d); |