* [PATCH] md - 1 of 10 - fix return code in set_disk_faulty()
@ 2004-01-16 1:19 NeilBrown
0 siblings, 0 replies; only message in thread
From: NeilBrown @ 2004-01-16 1:19 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-raid
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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-01-16 1:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-16 1:19 [PATCH] md - 1 of 10 - fix return code in set_disk_faulty() NeilBrown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox