Hello util-linux mailing list
I found a bug affecting device detection of my btrfs filesystem with 3
devices. My test system is currently running NixOS 25.05 with util-linux
2.41. I am able to run a older version of util-linux with the command
`nix shell github:NixOS/nixpkgs/nixos-24.11#util-linux` which doesn't
have the bug.
The filesystem is called HDDPool-data
The output where only one device is detected
$ blkid
/dev/sdf: LABEL="Rescue3" UUID="623630d3-64d8-4917-ade8-412101d23b40"
UUID_SUB="fa8bf8cb-a856-4ab3-9bbd-7e91aa2f5c7d" BLOCK_SIZE="4096"
TYPE="btrfs"
/dev/sdd: LABEL="Rescue3" UUID="623630d3-64d8-4917-ade8-412101d23b40"
UUID_SUB="13536110-8eaf-4d0c-bef5-6dac628c9e4f" BLOCK_SIZE="4096"
TYPE="btrfs"
/dev/sdb4: LABEL="ssdpool" UUID="119c2a64-e46c-4e63-87f9-3aa3161bec03"
UUID_SUB="6e5fac53-ae6a-465b-9f7b-cc36f584e3d3" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="c2ae79a1-1e90-42a9-896b-007df274a07e"
/dev/sdb2: LABEL="RootFS" UUID="b66ce927-d4e1-4237-982a-e924c0cfde15"
UUID_SUB="a80d43a7-cd54-4579-8720-d4c8e1563891" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="fe7a32da-c3b1-4b97-80c3-3cb63b5fd8dd"
/dev/sdb9: LABEL="ssdpool" UUID="119c2a64-e46c-4e63-87f9-3aa3161bec03"
UUID_SUB="231ab628-74ce-4e0b-a3a5-f467dfd9e11d" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="b9709f1a-0676-4da2-81b5-7e10aaa599e8"
/dev/sdb7: LABEL="ssdpool" UUID="119c2a64-e46c-4e63-87f9-3aa3161bec03"
UUID_SUB="c2339d28-19ed-4515-b230-44d697269deb" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="f137692a-bae0-4d9b-9ac6-e0e5e5394df2"
/dev/sdb5: LABEL="ssdpool" UUID="119c2a64-e46c-4e63-87f9-3aa3161bec03"
UUID_SUB="c1aff881-f902-4d68-b8f5-13751fad06b4" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="3bcde9d0-728f-4989-a230-b4f26554f203"
/dev/sdb3: UUID="f2e0b6c8-d683-4a51-b2bc-7af13b7d100a" TYPE="swap"
PARTUUID="1691a4f1-67ac-40e8-944c-55b103eafc5b"
/dev/sdb1: UUID="1EF4-5E59" BLOCK_SIZE="512" TYPE="vfat"
PARTUUID="2ebac8c4-2714-4f2b-bb09-e2981e77ce5e"
/dev/sdb8: LABEL="ssdpool" UUID="119c2a64-e46c-4e63-87f9-3aa3161bec03"
UUID_SUB="a3e7378e-ecee-45af-a980-c8b17d332f01" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="6d991377-7202-4689-9564-6ea09cbe9445"
/dev/sdb6: LABEL="ssdpool" UUID="119c2a64-e46c-4e63-87f9-3aa3161bec03"
UUID_SUB="b8646ac0-1010-4a20-83cb-d0e3c6e9e92d" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="fe349a2d-4e8a-4f7e-9f15-90d6a02c9404"
/dev/sdg1: LABEL="HDDPool-data"
UUID="cae95f27-f8c3-48c5-96d6-e263458efda2"
UUID_SUB="2e280995-52c7-4e41-b0aa-11a22dd0187d" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="65a68c39-46e9-e94a-9603-878003ef85c9"
/dev/sde: LABEL="Rescue3" UUID="623630d3-64d8-4917-ade8-412101d23b40"
UUID_SUB="de2d0690-2b18-48ab-8262-66a767c389e5" BLOCK_SIZE="4096"
TYPE="btrfs"
The output on util-linux 2.39.4 where all 3 devices are detected
$ sudo blkid
/dev/sdf: LABEL="Rescue3" UUID="623630d3-64d8-4917-ade8-412101d23b40"
UUID_SUB="fa8bf8cb-a856-4ab3-9bbd-7e91aa2f5c7d" BLOCK_SIZE="4096"
TYPE="btrfs"
/dev/sdd: LABEL="Rescue3" UUID="623630d3-64d8-4917-ade8-412101d23b40"
UUID_SUB="13536110-8eaf-4d0c-bef5-6dac628c9e4f" BLOCK_SIZE="4096"
TYPE="btrfs"
/dev/sdb4: LABEL="ssdpool" UUID="119c2a64-e46c-4e63-87f9-3aa3161bec03"
UUID_SUB="6e5fac53-ae6a-465b-9f7b-cc36f584e3d3" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="c2ae79a1-1e90-42a9-896b-007df274a07e"
/dev/sdb2: LABEL="RootFS" UUID="b66ce927-d4e1-4237-982a-e924c0cfde15"
UUID_SUB="a80d43a7-cd54-4579-8720-d4c8e1563891" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="fe7a32da-c3b1-4b97-80c3-3cb63b5fd8dd"
/dev/sdb9: LABEL="ssdpool" UUID="119c2a64-e46c-4e63-87f9-3aa3161bec03"
UUID_SUB="231ab628-74ce-4e0b-a3a5-f467dfd9e11d" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="b9709f1a-0676-4da2-81b5-7e10aaa599e8"
/dev/sdb7: LABEL="ssdpool" UUID="119c2a64-e46c-4e63-87f9-3aa3161bec03"
UUID_SUB="c2339d28-19ed-4515-b230-44d697269deb" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="f137692a-bae0-4d9b-9ac6-e0e5e5394df2"
/dev/sdb5: LABEL="ssdpool" UUID="119c2a64-e46c-4e63-87f9-3aa3161bec03"
UUID_SUB="c1aff881-f902-4d68-b8f5-13751fad06b4" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="3bcde9d0-728f-4989-a230-b4f26554f203"
/dev/sdb3: UUID="f2e0b6c8-d683-4a51-b2bc-7af13b7d100a" TYPE="swap"
PARTUUID="1691a4f1-67ac-40e8-944c-55b103eafc5b"
/dev/sdb1: UUID="1EF4-5E59" BLOCK_SIZE="512" TYPE="vfat"
PARTUUID="2ebac8c4-2714-4f2b-bb09-e2981e77ce5e"
/dev/sdb8: LABEL="ssdpool" UUID="119c2a64-e46c-4e63-87f9-3aa3161bec03"
UUID_SUB="a3e7378e-ecee-45af-a980-c8b17d332f01" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="6d991377-7202-4689-9564-6ea09cbe9445"
/dev/sdb6: LABEL="ssdpool" UUID="119c2a64-e46c-4e63-87f9-3aa3161bec03"
UUID_SUB="b8646ac0-1010-4a20-83cb-d0e3c6e9e92d" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="fe349a2d-4e8a-4f7e-9f15-90d6a02c9404"
/dev/sdg1: LABEL="HDDPool-data"
UUID="cae95f27-f8c3-48c5-96d6-e263458efda2"
UUID_SUB="2e280995-52c7-4e41-b0aa-11a22dd0187d" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="65a68c39-46e9-e94a-9603-878003ef85c9"
/dev/sde: LABEL="Rescue3" UUID="623630d3-64d8-4917-ade8-412101d23b40"
UUID_SUB="de2d0690-2b18-48ab-8262-66a767c389e5" BLOCK_SIZE="4096"
TYPE="btrfs"
/dev/sdc2: PARTUUID="42c6b5c0-3869-4c8f-8112-b277660321cd"
/dev/sdc3: LABEL="HDDPool-data"
UUID="cae95f27-f8c3-48c5-96d6-e263458efda2"
UUID_SUB="6481359c-d118-4a87-8d92-32d9c205362b" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="47439aab-c752-c348-bc53-47c69dcdd3b6"
/dev/sdc1: PARTUUID="5048125b-8e2d-4558-b528-17a8f6e5cd0e"
/dev/sda2: PARTUUID="3363e8af-efc0-44c7-9062-287e8fd54eb1"
/dev/sda3: LABEL="HDDPool-data"
UUID="cae95f27-f8c3-48c5-96d6-e263458efda2"
UUID_SUB="c33bc5b0-2e12-459a-ac95-8638e02bce67" BLOCK_SIZE="4096"
TYPE="btrfs" PARTUUID="d3e471d0-41e4-8641-8ea0-97b469f16698"
/dev/sda1: PARTUUID="96c699ea-4e75-4ae4-8f42-bd656438bcd1"
I previously reported this problem on
https://lore.kernel.org/linux-btrfs/TY4PR01MB13853B64BF6DB7BEA98170AE99240A@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/T/#u
https://bbs.archlinux.org/viewtopic.php?id=306625 and
https://github.com/NixOS/nixpkgs/issues/408631
Mio