Mailing List Archive

blkfront unknown ioctl shoudl return EINVAL.
ChangeSet 1.1159.258.143, 2005/05/20 17:51:20+01:00, kaf24@firebug.cl.cam.ac.uk

blkfront unknown ioctl shoudl return EINVAL.
Signed-off-by: Keir Fraser <keir@xensource.com>



blkfront.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/blkfront.c b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/blkfront.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/blkfront.c 2005-05-20 13:03:25 -04:00
+++ b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/blkfront.c 2005-05-20 13:03:25 -04:00
@@ -247,9 +247,9 @@
return 0;

default:
- printk(KERN_ALERT "ioctl %08x not supported by Xen blkdev\n",
- command);
- return -ENOSYS;
+ /*printk(KERN_ALERT "ioctl %08x not supported by Xen blkdev\n",
+ command);*/
+ return -EINVAL; /* same return as native Linux */
}

return 0;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog
blkfront unknown ioctl shoudl return EINVAL. [ In reply to ]
ChangeSet 1.1877, 2005/05/20 17:51:20+01:00, kaf24@firebug.cl.cam.ac.uk

blkfront unknown ioctl shoudl return EINVAL.
Signed-off-by: Keir Fraser <keir@xensource.com>



blkfront.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/blkfront.c b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/blkfront.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/blkfront.c 2005-05-20 13:04:32 -04:00
+++ b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/blkfront.c 2005-05-20 13:04:32 -04:00
@@ -247,9 +247,9 @@
return 0;

default:
- printk(KERN_ALERT "ioctl %08x not supported by Xen blkdev\n",
- command);
- return -ENOSYS;
+ /*printk(KERN_ALERT "ioctl %08x not supported by Xen blkdev\n",
+ command);*/
+ return -EINVAL; /* same return as native Linux */
}

return 0;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog