BTRFS:列出文件块的 Crc

BTRFS:列出文件块的 Crc

如何输出文件块的 Crc?

我使用 reflink 复制了一个文件,我想验证原始内容和复制内容是否仍然相同。我的目的是比较两个文件的 Crc。

答案1

我无法找到通过 CRC 比较它们的方法,但似乎可以使用filefrag -e

sudo filefrag -e ORIGINAL COPY
Filesystem type is: 9123683e
File size of ORIGINAL is 2545747541 (621521 blocks of 4096 bytes)
 ext:     logical_offset:        physical_offset: length:   expected: flags:
   0:        0..  143487: 1337824475..1337967962: 143488:             shared
   1:   143488..  390015: 1337466112..1337712639: 246528: 1337967963: shared
   2:   390016..  621520: 1337203968..1337435472: 231505: 1337712640: last,shared,eof
ORIGINAL: 3 extents found
File size of COPY is 2545747541 (621521 blocks of 4096 bytes)
 ext:     logical_offset:        physical_offset: length:   expected: flags:
   0:        0..  143487: 1337824475..1337967962: 143488:             shared
   1:   143488..  390015: 1337466112..1337712639: 246528: 1337967963: shared
   2:   390016..  621520: 1337203968..1337435472: 231505: 1337712640: last,shared,eof
COPY: 3 extents found

相关内容