[dm-devel] bugs in handling of errors for SG_IO and SCSI_IOCT L_SEND_COMMAND ioctls to block device

goggin, edward egoggin at emc.com
Fri Jul 8 16:32:43 UTC 2005


On Thu, 07 Jul 2005 23:19:57 -0500
Mike Christie <michaelc at cs.wisc.edu> wrote

> > ...
> >
> > 	The bio handling for these REQ_BLOCK_PC requests shouldn't be
> > treated any
> > 	differently than the more typical REQ_CMD type block io request.
>

> what is meant by this last comment specifically?

Just trying to make a case that a device pass through read command
issued to a block device should transfer to user space only the
user requested number of bytes minus the residual from the transfer
(as is done for block device read and write requests) and not always
transfer the number of bytes requested by the user.




More information about the dm-devel mailing list