diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-02-24 18:45:57 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-02-24 18:45:57 -0700 |
commit | 7da80e6faa16e09eb557c5d66ba34c8f29b0072e (patch) | |
tree | ea8aaea9c34f6c4f41feb37d9f65b29eae833f6e /mdmon.c | |
parent | dab4a5134e8d946f3809163af6abb80a945c904c (diff) |
mdmon: fix removed disk handling
Use SKIP_GONE_DEVS when reading the container, and correct some confused
logic in manage_new().
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'mdmon.c')
-rw-r--r-- | mdmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -400,7 +400,7 @@ int mdmon(char *devname, int devnum, int scan, char *switchroot) } mdi = sysfs_read(mdfd, container->devnum, - GET_VERSION|GET_LEVEL|GET_DEVS); + GET_VERSION|GET_LEVEL|GET_DEVS|SKIP_GONE_DEVS); if (!mdi) { fprintf(stderr, "mdmon: failed to load sysfs info for %s\n", |