From: NeilBrown <neilb@cse.unsw.edu.au>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-raid@vger.kernel.org
Subject: [PATCH] md - 1 of 10 - fix return code in set_disk_faulty()
Date: Fri, 16 Jan 2004 12:19:37 +1100 [thread overview]
Message-ID: <E1AhIe9-0002Tv-00@notabene> (raw)
From: Mike Tran <mhtran@us.ibm.com>
If cannot find the device, return error (ENODEV)
Otherwise, return success (0)
----------- Diffstat output ------------
./drivers/md/md.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff ./drivers/md/md.c~current~ ./drivers/md/md.c
--- ./drivers/md/md.c~current~ 2004-01-16 11:58:51.000000000 +1100
+++ ./drivers/md/md.c 2004-01-16 11:59:05.000000000 +1100
@@ -2354,10 +2354,10 @@ static int set_disk_faulty(mddev_t *mdde
rdev = find_rdev(mddev, dev);
if (!rdev)
- return 0;
+ return -ENODEV;
md_error(mddev, rdev);
- return 1;
+ return 0;
}
static int md_ioctl(struct inode *inode, struct file *file,
reply other threads:[~2004-01-16 1:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=E1AhIe9-0002Tv-00@notabene \
--to=neilb@cse.unsw.edu.au \
--cc=akpm@osdl.org \
--cc=linux-raid@vger.kernel.org \
/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