21 lines
564 B
Diff
21 lines
564 B
Diff
--- linux-3.4.1.orig/drivers/block/xen-blkfront.c 2012-06-01 09:18:44.000000000 +0200
|
|
+++ linux-3.4.1/drivers/block/xen-blkfront.c 2012-07-15 15:54:31.350255623 +0200
|
|
@@ -44,6 +44,7 @@
|
|
#include <linux/scatterlist.h>
|
|
#include <linux/bitmap.h>
|
|
#include <linux/list.h>
|
|
+#include <linux/fd.h>
|
|
|
|
#include <xen/xen.h>
|
|
#include <xen/xenbus.h>
|
|
@@ -241,6 +264,9 @@
|
|
return 0;
|
|
return -EINVAL;
|
|
}
|
|
+ case FDEJECT:
|
|
+ xenbus_switch_state(info->xbdev, XenbusStateClosing);
|
|
+ return 0;
|
|
|
|
default:
|
|
/*printk(KERN_ALERT "ioctl %08x not supported by Xen blkdev\n",
|