btrfs-progs/tests/mkfs-tests
David Sterba 27207d651a btrfs-progs: dump-tree: print complete root_item
The output of root_item in the 'inspect dump-tree' command lacks some
items and some of them are printed conditionally. As the dump utility
is for debugging, it's better to print all the items, with names
matching the structure members and order.

Some values will inevitably be all zeros like uuids or various
timestamps, but that's a minor issue and affecting only a few trees.

Example:

  item 0 key (EXTENT_TREE ROOT_ITEM 0) itemoff 15844 itemsize 439
	  generation 5 root_dirid 0 bytenr 30523392 byte_limit 0 bytes_used 16384
	  last_snapshot 0 flags 0x0(none) refs 1
	  drop_progress key (0 UNKNOWN.0 0) drop_level 0
	  level 0 generation_v2 5
	  uuid 00000000-0000-0000-0000-000000000000
	  parent_uuid 00000000-0000-0000-0000-000000000000
	  received_uuid 00000000-0000-0000-0000-000000000000
	  ctransid 0 otransid 0 stransid 0 rtransid 0
	  ctime 0.0 (1970-01-01 01:00:00)
	  otime 0.0 (1970-01-01 01:00:00)
	  stime 0.0 (1970-01-01 01:00:00)
	  rtime 0.0 (1970-01-01 01:00:00)

  item 3 key (FS_TREE ROOT_ITEM 0) itemoff 14949 itemsize 439
	  generation 4 root_dirid 256 bytenr 30408704 byte_limit 0 bytes_used 16384
	  last_snapshot 0 flags 0x0(none) refs 1
	  drop_progress key (0 UNKNOWN.0 0) drop_level 0
	  level 0 generation_v2 4
	  uuid ec4669b6-6d21-46ab-857e-d60cafde45b3
	  parent_uuid 00000000-0000-0000-0000-000000000000
	  received_uuid 00000000-0000-0000-0000-000000000000
	  ctransid 0 otransid 0 stransid 0 rtransid 0
	  ctime 1633021823.0 (2021-09-30 19:10:23)
	  otime 1633021823.0 (2021-09-30 19:10:23)
	  stime 0.0 (1970-01-01 01:00:00)
	  rtime 0.0 (1970-01-01 01:00:00)

Signed-off-by: David Sterba <dsterba@suse.com>
2021-10-07 18:39:44 +02:00
..
001-basic-profiles btrfs-progs: tests: add mkfs test for raid0/1 and raid10/2 2021-08-27 15:40:53 +02:00
002-no-force-mixed-on-small-volume btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
003-mixed-with-wrong-nodesize btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
004-rootdir-keeps-size btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
005-long-device-name-for-ssd btrfs-progs: tests: wait for dm device in test mkfs/005 2021-02-19 15:18:39 +01:00
006-partitioned-loopdev btrfs-progs: tests: add shell quotes to mkfs test scripts 2018-03-30 22:15:55 +02:00
007-mix-nodesize-sectorsize btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
008-sectorsize-nodesize-combination btrfs-progs: tests: add shell quotes to mkfs test scripts 2018-03-30 22:15:55 +02:00
009-special-files-for-rootdir btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
010-minimal-size btrfs-progs: tests: switch messages to _log 2019-07-26 17:46:42 +02:00
011-rootdir-create-file btrfs-progs: tests: mkfs/011: Fix path for rootdir 2020-01-09 14:27:09 +01:00
012-rootdir-no-shrink btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
013-reserved-1M-for-single btrfs-progs: tests: switch messages to _log 2019-07-26 17:46:42 +02:00
014-rootdir-inline-extent btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
015-fstree-uuid-otime btrfs-progs: dump-tree: print complete root_item 2021-10-07 18:39:44 +02:00
016-rootdir-bad-symbolic-link btrfs-progs: tests: Test if mkfs.btrfs --rootdir can handle ng symlink 2018-03-30 22:15:55 +02:00
017-small-backing-size-thin-provision-device btrfs-progs: tests: properly load dm-thin in mkfs/017 2021-09-07 16:58:43 +02:00
018-multidevice-overflow btrfs-progs: tests: mkfs/018, fix check for truncate command failure 2020-05-04 20:48:35 +02:00
019-basic-checksums-mkfs btrfs-progs: mkfs-tests: only check supported checksums 2020-03-03 19:58:54 +01:00
020-basic-checksums-mount btrfs-progs: mkfs-tests: only check supported checksums 2020-03-03 19:58:54 +01:00
021-rfeatures-quota-rootdir btrfs-progs: tests: add test for quotas and --rootdir 2020-05-29 12:42:48 +02:00
022-rootdir-size btrfs-progs: tests: rename mkfs/021-rootdir-size to 022 2020-07-21 15:43:23 +02:00
023-free-space-tree btrfs-progs: mkfs: support free space tree as -R option 2020-09-08 22:06:04 +02:00