You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
If having a partition "hidden" behind a luks2 encryption, psutil won't be able to show the actual partition list of said luks volume. Instead, psutil will show the resulting mapper-device instead.
I'm sure this is fine for most use cases, but if you want to use psutil in order to find/target a parition for formatting, this won't cut it. Surely, umount:ing the device will probably solve the problem - but it's still a slightly strange behavior.
Here's the disk setup shown with lsblk:
[anton@Arcinstall ~]$ lsblk -o name -n
sda
├─sda1
└─sda2
└─luksdev
/dev/mapper/luksdev is there, but /dev/sda2 is not (where as /dev/mapper/luksdev is a sub-resource of /dev/sda2. Maybe I'm just confused and this is exactly how Linux intended it to behave, and psutil follows suit.
But perhaps list_partitions(all=True) could show the /dev/sda2 device as well?
The text was updated successfully, but these errors were encountered:
Platform
Bug description
If having a partition "hidden" behind a luks2 encryption,
psutil
won't be able to show the actual partition list of said luks volume. Instead, psutil will show the resulting mapper-device instead.I'm sure this is fine for most use cases, but if you want to use
psutil
in order to find/target a parition for formatting, this won't cut it. Surely, umount:ing the device will probably solve the problem - but it's still a slightly strange behavior.Here's the disk setup shown with
lsblk
:Test results
/dev/mapper/luksdev
is there, but/dev/sda2
is not (where as/dev/mapper/luksdev
is a sub-resource of/dev/sda2
. Maybe I'm just confused and this is exactly how Linux intended it to behave, and psutil follows suit.But perhaps
list_partitions(all=True)
could show the/dev/sda2
device as well?The text was updated successfully, but these errors were encountered: