diff options
author | mwilck@arcor.de <mwilck@arcor.de> | 2013-08-02 00:35:15 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-08-05 03:31:56 +0200 |
commit | 9591a2de77fa405f7e7d728a8e6c623808f57432 (patch) | |
tree | 6e3c63d8eef8574c368f3b4ac66449eb2fd159e3 /super-ddf.c | |
parent | mdmon: always get layout from sysfs (diff) | |
download | mdadm-9591a2de77fa405f7e7d728a8e6c623808f57432.tar.xz mdadm-9591a2de77fa405f7e7d728a8e6c623808f57432.zip |
DDF: no need for GET_LAYOUT any more
With the previous patch, mdmon will provide the layout property for us.
Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/super-ddf.c b/super-ddf.c index 65472a28..7a7f5fe6 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -4697,16 +4697,10 @@ static int raid10_degraded(struct mdinfo *info) { int n_prim, n_bvds; int i; - struct mdinfo *d, *sra; + struct mdinfo *d; char *found; int ret = -1; - if (info->array.layout == 0) { - sra = sysfs_read(-1, info->sys_name, GET_LAYOUT); - info->array.layout = sra->array.layout; - free(sra); - } - n_prim = info->array.layout & ~0x100; n_bvds = info->array.raid_disks / n_prim; found = xmalloc(n_bvds); |