Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote: > It turns out that for block device files we don't need to change anything. > The BLKSECTGET ioctl already does almost exactly what we want: > > int n; > > if (ioctl(fd, BLKSECTGET, &n) == 0) > max_transfer_size = n * 512; > > So only the legacy sg character-device files need attention, which means > that only the part of the patch affecting sg.c is necessary. The new > SG_GET_MAX_TRANSFER_LENGTH ioctl can remain unimplemented by the block > layer -- just as SG_[SG]ET_RESERVED_SIZE should be. > > How does that sound? libscg needs a unique ioctl that works for all used filedescriptors that may be a target for SG_IO. 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