From f3ce273f23d5eeae8f7f8cb2240327774d86bc13 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 23 Nov 2005 16:16:39 +0000 Subject: [PATCH] Fix lvdisplay cmdline to accept snapshots. --- WHATS_NEW | 1 + tools/lvdisplay.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index c7260ebdb..7fc4f1e57 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.01 - ==================================== + Fix lvdisplay cmdline to accept snapshots. Fix open RO->RW promotion. Fix missing vg_revert in lvcreate error path. diff --git a/tools/lvdisplay.c b/tools/lvdisplay.c index 2b8c8a11a..0dd2a1408 100644 --- a/tools/lvdisplay.c +++ b/tools/lvdisplay.c @@ -18,7 +18,8 @@ static int _lvdisplay_single(struct cmd_context *cmd, struct logical_volume *lv, void *handle) { - if (!arg_count(cmd, all_ARG) && !(lv->status & VISIBLE_LV)) + if (!arg_count(cmd, all_ARG) && !(lv->status & VISIBLE_LV) && + !(lv_is_cow(lv))) return ECMD_PROCESSED; if (arg_count(cmd, colon_ARG))