btrfs-progs/tests/convert-tests
David Sterba 02b06b3e8d btrfs-progs: convert: fix self-reference of directory
Creating a simple directory structure leads to the following error:

  $ btrfs check
  Checking filesystem on test.img
  UUID: 8f2292ad-c80e-4ab4-8a72-29aa3a83002c
  [1/7] checking root items
  [2/7] checking extents
  [3/7] checking free space cache
  [4/7] checking fs roots
	  unresolved ref dir 260 index 0 namelen 2 name .. filetype 0 errors 3, no dir item, no dir index
  ERROR: errors found in fs roots
  found 101085184 bytes used, error(s) found
  total csum bytes: 98460
  total tree bytes: 262144
  total fs tree bytes: 49152
  total extent tree bytes: 16384
  btree space waste bytes: 151864
  file data blocks allocated: 167931904
   referenced 167931904

The self-reference should exist for the toplevel directory, where the
parent directory points to itself.

Issue: #453
Author: tyan0
Signed-off-by: David Sterba <dsterba@suse.com>
2022-06-06 15:48:08 +02:00
..
001-ext2-basic
003-ext4-basic
004-ext2-backup-superblock-ranges
005-delete-all-rollback btrfs-progs: tests: switch mktemp to local helpers 2021-10-20 18:59:24 +02:00
006-large-hole-extent
007-unsupported-block-sizes
008-readonly-image
009-common-inode-flags
010-reiserfs-basic
011-reiserfs-delete-all-rollback btrfs-progs: tests: switch mktemp to local helpers 2021-10-20 18:59:24 +02:00
012-reiserfs-large-hole-extent
013-reiserfs-common-inode-flags
014-reiserfs-tail-handling
015-no-rollback-after-balance
016-invalid-large-inline-extent
017-fs-near-full btrfs-progs: tests: check that convert does not create extents beyond device boundary 2020-06-29 17:45:39 +02:00
018-fs-size-overflow btrfs-progs: tests: add convert test case for multiply overflow 2020-08-31 17:01:02 +02:00
019-ext4-copy-timestamps btrfs-progs: tests: verify that ext4 supports extra_isize 2021-03-23 17:04:22 +01:00
020-refuse-needs-recovery btrfs-progs: tests: add crafted image to test needs_recovery 2021-03-23 17:04:21 +01:00
021-uuid-fsid btrfs-progs: convert: allow to set a duplicate uuid 2021-09-20 16:58:13 +02:00
022-reiserfs-parent-ref btrfs-progs: convert: fix self-reference of directory 2022-06-06 15:48:08 +02:00