ceph_crc32 null buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
    Does anyone know that why Ceph needs to calcualate the crc of "null"
    buffer?
    There's below code in Ceph:
        ceph_crc32c(rand(), nullptr, size);
        https://github.com/ceph/ceph/blob/master/src/test/common/test_crc32c.cc#L358

    For the "null" buffer case, doesn't Ceph think to be all zero value
    to calculate the crc value?

B.R.
Changcheng
_______________________________________________
Dev mailing list -- dev@xxxxxxx
To unsubscribe send an email to dev-leave@xxxxxxx



[Index of Archives]     [CEPH Users]     [Ceph Devel]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux