On Mon, 06 Nov 2023 12:41:27 -0500 Andres Salomon <dilin...@queued.net> wrote:
On Thu, 2 Nov 2023 13:54:44 +0300 Michael Tokarev <m...@tls.msk.ru>
wrote:
> Control: retitle -1 lsof does not work correctly with btrfs
subvolumes
>
> So it turned out the whole thing is about btrfs subvolumes.
>
I'm wondering if this is a regression in lsof (ie, did it begin with
bookworm's lsof), or has it been there all along? An easy way to test
this would be to rebuild bullseye/oldstable's lsof on bookworm, install
it on your machine with that subvolume, and see if it does the same
thing.
No, this is not a regression. It is a property of btrfs and zfs - both
support multiple devices behind a single filesystem and both support
multiple filesystem roots, so there's no 1:1 device:filesystem mapping
anymore. It's been this way for multiple debian releases.
See also:
https://unix.stackexchange.com/questions/345220/btrfs-how-to-get-real-device-id
http://www.sabi.co.uk/blog/21-two.html?210804#210804 (linked to from above)
https://github.com/util-linux/util-linux/issues/2349#issuecomment-1615854709
/mjt