• Sage Weil's avatar
    ceph: make page alignment explicit in osd interface · b7495fc2
    Sage Weil authored
    We used to infer alignment of IOs within a page based on the file offset,
    which assumed they matched.  This broke with direct IO that was not aligned
    to pages (e.g., 512-byte aligned IO).  We were also trusting the alignment
    specified in the OSD reply, which could have been adjusted by the server.
    
    Explicitly specify the page alignment when setting up OSD IO requests.
    Signed-off-by: default avatarSage Weil <sage@newdream.net>
    b7495fc2
file.c 22.1 KB