From: mwilck@arcor.de
To: neilb@suse.de, linux-raid@vger.kernel.org
Cc: mwilck@arcor.de
Subject: [PATCH 1/6] DDF: err_bad_md_layout: fix return value
Date: Fri, 19 Jul 2013 21:04:10 +0200 [thread overview]
Message-ID: <1374260655-5788-2-git-send-email-mwilck@arcor.de> (raw)
In-Reply-To: <1374260655-5788-1-git-send-email-mwilck@arcor.de>
This function must use -1 to indicate failure. Fix it.
---
super-ddf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/super-ddf.c b/super-ddf.c
index 8c6fa6d..e23291f 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -500,7 +500,7 @@ static int err_bad_md_layout(const mdu_array_info_t *array)
{
pr_err("RAID%d layout %x with %d disks is unsupported for DDF\n",
array->level, array->layout, array->raid_disks);
- return DDF_INVALID_LEVEL;
+ return -1;
}
static int layout_md2ddf(const mdu_array_info_t *array,
--
1.7.1
next prev parent reply other threads:[~2013-07-19 19:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-19 19:04 [PATCH 0/6] More DDF fixes and unit tests mwilck
2013-07-19 19:04 ` mwilck [this message]
2013-07-19 19:04 ` [PATCH 2/6] DDF: kill_subarray_ddf: fix case without mdmon running mwilck
2013-07-19 19:04 ` [PATCH 3/6] DDF: getinfo_super_ddf_bvd: fix offset calculation for SVDs mwilck
2013-07-19 19:04 ` [PATCH 4/6] tests/10ddf-create: create RAID5 first mwilck
2013-07-19 19:04 ` [PATCH 5/6] test: increase number of devices to 13 mwilck
2013-07-19 19:04 ` [PATCH 6/6] tests/10ddf-geometry: 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=1374260655-5788-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).