Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tcmur: fix check_iovec_length #481

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

tcmur: fix check_iovec_length #481

wants to merge 1 commit into from

Commits on Sep 29, 2018

  1. tcmur: fix check_iovec_length

    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]>
    lxbsz committed Sep 29, 2018
    1 Configuration menu
    Copy the full SHA
    7a6d967 View commit details
    Browse the repository at this point in the history