Files
mirror_zfs/tests/zfs-tests/tests/functional
Rob N 804414aad2 tests/block_cloning: rename and document get_same_blocks helper
`get_same_blocks` is a helper to compare two files and return a list of
the blocks that are clones of each other. Its very necessary for block
cloning tests.

Previously it was incorrectly called `unique_blocks`, which is the
_inverse_ of what it does (an early version did list unique blocks; it
was changed but the name was not). So if nothing else, it should be
called `duplicate_blocks`.

But, keeping the details of a clone operation in your head is actually
quite difficult, without the additional overhead of wondering how the
tools work. So I've renamed it to better describe what it does, added a
usage note, and changed it to return block indexes from 0 instead of 1,
to match how L0 blocks are normally counted.

Reviewed-by: Umer Saleem <usaleem@ixsystems.com>
Reviewed-by:  Kay Pedersen <mail@mkwg.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #15181
2023-08-25 10:31:29 -07:00
..
2022-08-12 14:20:25 -07:00
2022-08-12 14:20:25 -07:00
2022-09-08 10:29:41 -07:00
2023-05-25 13:51:53 -07:00
2022-09-08 10:29:41 -07:00
2023-05-09 08:57:02 -07:00
2022-06-29 14:08:54 -07:00
2022-07-26 14:39:23 -07:00
2023-02-23 17:10:46 -08:00
2023-02-23 10:57:24 -08:00
2022-10-28 09:49:20 -07:00
2022-10-31 10:01:04 -07:00
2023-04-20 10:07:56 -07:00
2023-05-29 12:55:35 -07:00