mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-28 00:52:17 +00:00
263184c7d2
For snapshot shared tree blocks with source subvolume, the keyed backref counter only counts the exclusive owned references. In the following case, 258 is a snapshot of 257, which inherits all the reference to this data extent. ------ item 4 key (12582912 EXTENT_ITEM 524288) itemoff 3741 itemsize 140 refs 179 gen 9 flags DATA extent data backref root 257 objectid 258 offset 0 count 49 extent data backref root 257 objectid 257 offset 0 count 1 extent data backref root 256 objectid 258 offset 0 count 128 extent data backref root 256 objectid 257 offset 0 count 1 ------ However lowmem mode used to iterate the whole inode to find all references, and doesn't care if a reference is already counted by the shared tree block. Add the test case to check it. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> |
||
---|---|---|
.. | ||
001-bad-file-extent-bytenr | ||
002-bad-transid | ||
003-shift-offsets | ||
004-no-dir-index | ||
005-bad-item-offset | ||
006-bad-root-items | ||
007-bad-offset-snapshots | ||
008-bad-dir-index-name | ||
009-no-dir-item-or-index | ||
010-no-rootdir-inode-item | ||
011-no-inode-item | ||
012-leaf-corruption | ||
013-extent-tree-rebuild | ||
014-no-extent-info | ||
016-wrong-inode-nbytes | ||
017-missing-all-file-extent | ||
018-leaf-crossing-stripes | ||
019-non-skinny-false-alert | ||
020-extent-ref-cases | ||
021-partially-dropped-snapshot-case | ||
022-qgroup-rescan-halfway | ||
023-qgroup-stack-overflow | ||
024-clear-space-cache | ||
025-file-extents | ||
026-bad-dir-item-name | ||
027-bad-extent-inline-ref-type | ||
028-unaligned-super-dev-sizes |