lkml.org 
[lkml]   [2008]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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




\
 
 \ /
  Last update: 2008-05-31 03:59    [W:0.093 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site