diff options
author | David Teigland <teigland@redhat.com> | 2021-03-03 12:07:57 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-03-03 12:07:57 -0600 |
commit | e9d10f371199055e9ed0c2715b5353491cb759b0 (patch) | |
tree | 1ee3ce22476ac5c1fb9707ef68bd342f18b103ff /lib/cache | |
parent | d0b0c20077affbd9671f89c7eab685ee3315e8d8 (diff) | |
download | lvm2-e9d10f371199055e9ed0c2715b5353491cb759b0.tar.gz |
filters: better message for excluding LV
Make the generic "device is not usable" message from filter-usable
more specific in case the device is not usable because it's an LV.
(i.e. when scan_lvs=0)
Diffstat (limited to 'lib/cache')
-rw-r--r-- | lib/cache/lvmcache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c index 04f6fe0a5..b78262b65 100644 --- a/lib/cache/lvmcache.c +++ b/lib/cache/lvmcache.c @@ -2909,6 +2909,8 @@ const char *dev_filtered_reason(struct device *dev) return "device is not in devices file"; if (dev->filtered_flags & DEV_FILTERED_DEVICES_LIST) return "device is not in devices list"; + if (dev->filtered_flags & DEV_FILTERED_IS_LV) + return "device is an LV"; /* flag has not been added here */ if (dev->filtered_flags) |