From: mwilck@arcor.de
To: neilb@suse.de, linux-raid@vger.kernel.org
Cc: mwilck@arcor.de
Subject: [PATCH 2/4] DDF: no need for GET_LAYOUT any more
Date: Fri, 2 Aug 2013 00:35:15 +0200 [thread overview]
Message-ID: <1375396517-8479-2-git-send-email-mwilck@arcor.de> (raw)
In-Reply-To: <1375396517-8479-1-git-send-email-mwilck@arcor.de>
With the previous patch, mdmon will provide the layout property for us.
Signed-off-by: Martin Wilck <mwilck@arcor.de>
---
super-ddf.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/super-ddf.c b/super-ddf.c
index 65472a2..7a7f5fe 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);
--
1.7.1
next prev parent reply other threads:[~2013-08-01 22:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 22:35 [PATCH 1/4] mdmon: always get layout from sysfs mwilck
2013-08-01 22:35 ` mwilck [this message]
2013-08-01 22:35 ` [PATCH 3/4] DDF: ddf_process_update: delete removed disks from dlist mwilck
2013-08-02 19:32 ` Martin Wilck
2013-08-05 5:11 ` NeilBrown
2013-08-01 22:35 ` [PATCH 4/4] tests/10ddf-fail-twice: New unit test mwilck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1375396517-8479-2-git-send-email-mwilck@arcor.de \
--to=mwilck@arcor.de \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).