• Alex Elder's avatar
    libceph: fix inverted crc option logic · 37675b0f
    Alex Elder authored
    CRC's are computed for all messages between ceph entities.  The CRC
    computation for the data portion of message can optionally be
    disabled using the "nocrc" (common) ceph option.  The default is
    for CRC computation for the data portion to be enabled.
    
    Unfortunately, the code that implements this feature interprets the
    feature flag wrong, meaning that by default the CRC's have *not*
    been computed (or checked) for the data portion of messages unless
    the "nocrc" option was supplied.
    
    Fix this, in write_partial_msg_pages() and read_partial_message().
    Also change the flag variable in write_partial_msg_pages() to be
    "no_datacrc" to match the usage elsewhere in the file.
    
    This fixes http://tracker.newdream.net/issues/2064Signed-off-by: default avatarAlex Elder <elder@dreamhost.com>
    Reviewed-by: default avatarSage Weil <sage@newdream.net>
    37675b0f
messenger.c 63.6 KB