Re: [PATCH 2 of 5] xn/blkfront: Add the CDROM_GET_CAPABILITY ioctlto blkfront

From: Jeff Garzik
Date: Fri May 30 2008 - 21:57:30 EST


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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/