Error: Btrfs filesystem damaged. Test only: This chunk has more than 1 stripes!
Hi there,
i have created a dd image formatted it with BTRFS and eventhough I can access successfuly mount it and use in Linux, when I try to access it with btrfsc or with any other tool from your kit I get "Error: Btrfs filesystem damaged. Test only: This chunk has more than 1 stripes!"
i.e.
./btrfrsc /dev/loop6
Error: Btrfs filesystem damaged.
Test only: This chunk has more than 1 stripes!
losetup
NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO LOG-SEC /dev/loop6 0 1048576 0 0 /DISK-APSY.TEST 0 512
btrfs inspect-internal dump-super /dev/loop6 [13:52:50] superblock: bytenr=65536, device=/dev/loop6
csum_type 0 (crc32c) csum_size 4 csum 0x2539a6b0 [match] bytenr 65536 flags 0x1 ( WRITTEN ) magic _BHRfS_M [match] fsid b4d21d5d-866d-41e2-979c-0edc229757da label generation 9 root 30408704 sys_array_size 129 chunk_root_generation 7 root_level 0 chunk_root 22020096 chunk_root_level 0 log_root 0 log_root_transid 0 log_root_level 0 total_bytes 17178820608 bytes_used 1509437440 sectorsize 4096 nodesize 16384 leafsize (deprecated) 16384 stripesize 4096 root_dir 6 num_devices 1 compat_flags 0x0 compat_ro_flags 0x0 incompat_flags 0x161 ( MIXED_BACKREF | BIG_METADATA | EXTENDED_IREF | SKINNY_METADATA ) cache_generation 9 uuid_tree_generation 9 dev_item.uuid 0f617fce-ef63-4a0a-9d24-47e2a0fb491e dev_item.fsid b4d21d5d-866d-41e2-979c-0edc229757da [match] dev_item.type 0 dev_item.total_bytes 17178820608 dev_item.bytes_used 4320133120 dev_item.io_align 4096 dev_item.io_width 4096 dev_item.sector_size 4096 dev_item.devid 1 dev_item.dev_group 0 dev_item.seek_speed 0 dev_item.bandwidth 0 dev_item.generation 0
Ok, seems that I have found the reasons. With a recent version of btrfs btrfs-progs v4.15.1 by default, the Metadata and System is created as DUP, while Data is create as single eventhough only one device is specified. Thus there is app senses more then one stripe.
i.e.
mkfs.btrfs /dev/loop6
btrfs-progs v4.15.1 See http://btrfs.wiki.kernel.org for more information.
Label: (null) UUID: 9ed644fd-3ab7-4d67-8ce6-d1626f49f412 Node size: 16384 Sector size: 4096 Filesystem size: 4.00GiB Block group profiles: Data: single 8.00MiB Metadata: DUP 204.75MiB System: DUP 8.00MiB SSD detected: no Incompat features: extref, skinny-metadata Number of devices: 1 Devices: ID SIZE PATH 1 4.00GiB /dev/loop6
mkfs.btrfs -f -m single /dev/loop6
btrfs-progs v4.15.1 See http://btrfs.wiki.kernel.org for more information.
Label: (null) UUID: e4fc3e07-a835-4243-bef2-ec7445f0ff08 Node size: 16384 Sector size: 4096 Filesystem size: 4.00GiB Block group profiles: Data: single 8.00MiB Metadata: single 8.00MiB System: single 4.00MiB SSD detected: no Incompat features: extref, skinny-metadata Number of devices: 1 Devices: ID SIZE PATH 1 4.00GiB /dev/loop6