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
In fact this function checks if a disk is mounted. If a filesystem is configured on it, we consider that we can use the disk, for DRBD it is perhaps a bit more restrictive. I suppose we could explicitly check if DRBDs are present. But in the case of a LVM VG we consider that the disk is free, which is not very symmetrical.
In fact this function checks if a disk is mounted. If a filesystem is configured on it, we consider that we can use the disk, for DRBD it is perhaps a bit more restrictive. I suppose we could explicitly check if DRBDs are present. But in the case of a LVM VG we consider that the disk is free, which is not very symmetrical.
I see that this function checks whether a disk is available for use (i.e., not mounted). The code further does not use the disks that have any mountpoint associated with them.
I was thinking to use blkid /dev/disk in here instead of lsblk. blkid returns 2 if there is nothing on the disk e.g. LVM, gpt, etc. hence marking disk_is_available.
In following case, disk_is_available('sdb') returns True which should not be the case.
xcp-ng-tests/lib/host.py
Line 467 in 358665a
The text was updated successfully, but these errors were encountered: