From: Mike Tran <mhtran@us.ibm.com>
To: linux-raid <linux-raid@vger.kernel.org>
Subject: [PATCH] md - fix return code in set_disk_faulty()
Date: 04 Nov 2003 14:04:50 -0600 [thread overview]
Message-ID: <1067976289.11698.17.camel@dyn95395183> (raw)
### Comment
If cannot find the device, return error (ENODEV)
Otherwise, return success (0)
--- a/linux-2.6.0-test9/drivers/md/md.c 2003-10-25 13:43:16.000000000 -0500
+++ b/linux-2.6.0-test9/drivers/md/md.c 2003-11-04 13:48:24.000000000 -0600
@@ -2354,10 +2354,10 @@
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,
Regards,
-- Mike T.
reply other threads:[~2003-11-04 20:04 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=1067976289.11698.17.camel@dyn95395183 \
--to=mhtran@us.ibm.com \
--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