linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] md - fix return code in set_disk_faulty()
@ 2003-11-04 20:04 Mike Tran
  0 siblings, 0 replies; only message in thread
From: Mike Tran @ 2003-11-04 20:04 UTC (permalink / raw)
  To: linux-raid

### 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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-04 20:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-04 20:04 [PATCH] md - fix return code in set_disk_faulty() Mike Tran

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).