On Thu, Mar 13, 2008 at 07:22:06PM +0100, Flavio wrote:
> ioctl(3, CDROMEJECT, 0) = -1 EINVAL (Invalid argument)
Try the patch below - compile tested only.
Jeff
--
Work email - jdike at linux dot intel dot com
Index: linux-2.6.22/arch/um/drivers/ubd_kern.c
===================================================================
--- linux-2.6.22.orig/arch/um/drivers/ubd_kern.c 2008-03-06
08:57:08.000000000 -0500
+++ linux-2.6.22/arch/um/drivers/ubd_kern.c 2008-03-14 16:02:50.000000000
-0400
@@ -1162,6 +1162,10 @@ static int ubd_ioctl(struct inode * inod
if(copy_to_user((char __user *) arg, &volume, sizeof(volume)))
return -EFAULT;
return 0;
+ case CDROMEJECT:
+ if (ubd_dev->fd == -1)
+ return -ENXIO;
+ return os_ioctl_generic(ubd_dev->fd, CDROMEJECT, 0);
}
return -EINVAL;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user