1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-03 17:47:44 +03:00

Fix lvdisplay cmdline to accept snapshots.

This commit is contained in:
Alasdair Kergon 2005-11-23 16:16:39 +00:00
parent 465b6e613e
commit 699e1c75ce
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.01 - Version 2.02.01 -
==================================== ====================================
Fix lvdisplay cmdline to accept snapshots.
Fix open RO->RW promotion. Fix open RO->RW promotion.
Fix missing vg_revert in lvcreate error path. Fix missing vg_revert in lvcreate error path.

View File

@ -18,7 +18,8 @@
static int _lvdisplay_single(struct cmd_context *cmd, struct logical_volume *lv, static int _lvdisplay_single(struct cmd_context *cmd, struct logical_volume *lv,
void *handle) 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; return ECMD_PROCESSED;
if (arg_count(cmd, colon_ARG)) if (arg_count(cmd, colon_ARG))