• F
    scsi-generic: Merge block max xfer len in INQUIRY response · 063143d5
    Fam Zheng 提交于
    The rationale is similar to the above mode sense response interception:
    this is practically the only channel to communicate restraints from
    elsewhere such as host and block driver.
    
    The scsi bus we attach onto can have a larger max xfer len than what is
    accepted by the host file system (guarding between the host scsi LUN and
    QEMU), in which case the SG_IO we generate would get -EINVAL.
    Signed-off-by: NFam Zheng <famz@redhat.com>
    Message-Id: <1464243305-10661-3-git-send-email-famz@redhat.com>
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    063143d5
scsi-generic.c 17.0 KB