On Tue, 2006-12-05 at 15:52 -0500, Alan Stern wrote: > I decided to do this by email instead of bugzilla so that it would be > visible to everyone on the linux-scsi mailing list. > > Re: http://bugzilla.kernel.org/show_bug.cgi?id=7026 > > To recap: Joerg Schilling needs to be able to retrieve the max_sectors > value for a SCSI device's request queue. Doing it via sysfs is rather > clumsy, especially when only a file descriptor is available and not the > device name. He has asked for an ioctl interface to provide the > information. But how did he get the file descriptor? He opened a device name, which could have been used to get the sysfs file. > Is the patch below acceptable? Really, no. The parameter you're fishing for is a block parameter, not a SCSI parameter ... it should really be a block ioctl if we have to have an ioctl at all. James - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html