[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4840B077.70705@pobox.com>
Date: Fri, 30 May 2008 21:57:11 -0400
From: Jeff Garzik <jgarzik@...ox.com>
To: Jeremy Fitzhardinge <jeremy@...p.org>
CC: Jens Axboe <jens.axboe@...cle.com>,
LKML <linux-kernel@...r.kernel.org>
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists