From ace652e673e8f97cd5f2c24925a6e0d1dd9b4c15 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 7 Apr 2006 17:41:56 +0000 Subject: lv_is_visible() --- tools/lvscan.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tools/lvscan.c') diff --git a/tools/lvscan.c b/tools/lvscan.c index 1bd467d3..2faeac7d 100644 --- a/tools/lvscan.c +++ b/tools/lvscan.c @@ -27,9 +27,7 @@ static int lvscan_single(struct cmd_context *cmd, struct logical_volume *lv, const char *active_str, *snapshot_str; - /* FIXME Avoid snapshot special-case */ - if (!arg_count(cmd, all_ARG) && !(lv->status & VISIBLE_LV) && - !(lv_is_cow(lv))) + if (!arg_count(cmd, all_ARG) && !lv_is_visible(lv)) return ECMD_PROCESSED; inkernel = lv_info(cmd, lv, &info, 1) && info.exists; -- cgit