Re: btrfs device detection bug util-linux 2.39.4 to 2.41

Karel Zak <[email protected]> Mon, 7 Jul 2025 13:24:49 +0200
Newsgroups org.kernel.vger.util-linux
Message-ID <s23tlsariqhzuo6zstmuuaoya64y5jehhtgzrbpkbynbmlwpix@hdbxx4cd4bgq>
HI Mio,

On Thu, Jul 03, 2025 at 03:05:52PM +1200, Mio wrote:
> 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.

It would be nice to make your bug report a little more detailed.

The command "blkid" without any option can return cached information, 
etc. The ideal is to call "blkid -p <devname>" and provide output from 
the command. You can also use "LIBBLKID_DEBUG=all blkid -p <devname>" 
to get debug output.

Were your disks used for ZFS before btrfs? If yes, you're probably 
affected by https://github.com/util-linux/util-linux/issues/3613

Try "wipefs <device>" to get more information (don't worry, it does 
not wipe anything from the device by default).

    Karel

-- 
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com