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