### 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. - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html