Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
readsector0 checker for multipath is not working, and the log like: [DEBUG_SCSI_CMD] tcmu_print_cdb_info:1069 glfs/block0: 28 0 0 0 0 0 0 0 1 0 [ERROR] check_lba_and_length:107: iov len mismatch: iov len 4096, xfer len 1, block size 512 check_lba_and_length:107: iov len mismatch: iov len 4096, xfer len 1, block size 512 This is because in kernel space the sg->length is aligned to the page size, and also the ringbufer data area's block size. So here we need to make sure that the iov len is not less than the scsi command's require. Signed-off-by: Xiubo Li <[email protected]>
- Loading branch information
7a6d967
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me