summaryrefslogtreecommitdiff
path: root/tools/lvscan.c
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2008-12-04 15:54:26 +0000
committerPeter Rajnoha <prajnoha@redhat.com>2008-12-04 15:54:26 +0000
commitb47952641ae481341886969e9986427ea707cea7 (patch)
treec7e2e5eadab4fa8d0922a8a99167aaea0c38fdf3 /tools/lvscan.c
parent9d9589d173ae67329e419a99b8155f44ca7525c8 (diff)
downloadlvm2-b47952641ae481341886969e9986427ea707cea7.tar.gz
Added displayable_lvs_in_vg and lv_is_displayable functions to deal with
the counts of visible LVs from user's perspective consistently throughout the code.
Diffstat (limited to 'tools/lvscan.c')
-rw-r--r--tools/lvscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lvscan.c b/tools/lvscan.c
index a286fe17f..1186b3bce 100644
--- a/tools/lvscan.c
+++ b/tools/lvscan.c
@@ -27,7 +27,7 @@ static int lvscan_single(struct cmd_context *cmd, struct logical_volume *lv,
const char *active_str, *snapshot_str;
- if (!arg_count(cmd, all_ARG) && !lv_is_visible(lv))
+ if (!arg_count(cmd, all_ARG) && !lv_is_displayable(lv))
return ECMD_PROCESSED;
inkernel = lv_info(cmd, lv, &info, 1, 0) && info.exists;