mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
If the lv_info call fails for whatever reason/INFO dm ioctl fails or the dm driver communication is disabled (--driverloaded n), make sure we always display "unknown" for LVSINFO fields as that's exactly what happens - we don't know the state. Before the patch: $ lvs -o name,device_open --driverloaded n WARNING: Activation disabled. No device-mapper interaction will be attempted. Command failed with status code 5. With this patch applied: $ lvs -o name,device_open --driverloaded n WARNING: Activation disabled. No device-mapper interaction will be attempted. LV DevOpen lvol1 unknown