• N
    target: Fix SYNCHRONIZE_CACHE zero LBA + range breakage · 7abbe7f3
    Nicholas Bellinger 提交于
    This patch fixes a SYNCHRONIZE_CACHE CDB handling bug with IBLOCK/FILEIO
    backends where transport_cmd_get_valid_sectors() was incorrectly rejecting
    a zero LBA + range CDB from being processed, and returning CHECK_CONDITION.
    
    This includes changing transport_cmd_get_valid_sectors() to return '0' on
    success and '-EINVAL' on failure (this makes more sense than sectors),
    and to only check transport_cmd_get_valid_sectors() when a non zero LBA +
    range SYNCHRONIZE_CACHE operation has been receieved for the non passthrough
    case.
    Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
    7abbe7f3
target_core_transport.c 142.0 KB