On 07/09/2012 07:15 AM, Christoph Hellwig wrote: > On Mon, Jul 09, 2012 at 10:26:13AM +0200, Ferry wrote: >> Hi, >> >> as an additional note, I've adjusted the rtslib python thingy now >> and added 259 (major number of md partitions) to the list. Could add >> it just fine then. >> >> One does wonder why it checks major numbers in the first place ;). I >> would prefer it'd just accept any block device (b---------), but I >> don't know if some might have issues. If I were to export a tape >> drive or the likes I'd use another backstore anyways. > > Oh, I can't see any good reason why it should, the kernel even has > an option to basically use random majors. It looks like it only wants to allow the use of TYPE_DISK block devices for iblock. Is there another way from userspace to know if a block device is a disk vs. tape or optical? -- Andy -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html