Alan Stern <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to