Messages in this thread | | | Date | Fri, 30 May 2008 21:57:11 -0400 | From | Jeff Garzik <> | Subject | Re: [PATCH 2 of 5] xn/blkfront: Add the CDROM_GET_CAPABILITY ioctl to blkfront |
| |
Jeremy Fitzhardinge wrote: > + case CDROM_GET_CAPABILITY: { > + struct gendisk *gd = info->gd; > + if (gd->flags & GENHD_FL_CD) > + return 0; > + return -EINVAL; > + }
Surely you can come up with a better implementation than this? It's just a bitmask returned to userspace...
Jeff
| |