[PATCH] md - 11 of 13 - Make the old-ioctl warning in md only complain about MD ioctls.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




### Comments for ChangeSet

..as some standard ioctls expect the per-device ioctl routine
to return EINVAL and then fall back on a standard implementation.

 ----------- Diffstat output ------------
 ./drivers/md/md.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

--- ./drivers/md/md.c	2002/08/21 23:14:39	1.10
+++ ./drivers/md/md.c	2002/08/21 23:18:17	1.11
@@ -2408,9 +2408,10 @@ static int md_ioctl(struct inode *inode,
 		}
 
 		default:
-			printk(KERN_WARNING "md: %s(pid %d) used obsolete MD ioctl, "
-			       "upgrade your software to use new ictls.\n",
-			       current->comm, current->pid);
+			if (_IOC_TYPE(cmd) == MD_MAJOR)
+				printk(KERN_WARNING "md: %s(pid %d) used obsolete MD ioctl, "
+				       "upgrade your software to use new ictls.\n",
+				       current->comm, current->pid);
 			err = -EINVAL;
 			goto abort_unlock;
 	}
-
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

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux