Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> 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. Thank you, this is a more convenient way of having a discussion. > 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. > > Is the patch below acceptable? If the number in "sectors" is not a value in sectors but a value in 512 byte units, it looks OK. Is this value correct for all "host adaptors"? Jörg -- EMail:joerg@xxxxxxxxxxxxxxxxxxxxxxxxxxx (home) Jörg Schilling D-13353 Berlin js@xxxxxxxxxxxxxxx (uni) schilling@xxxxxxxxxxxxxxxxxxx (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily - 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