diff options
author | Alasdair Kergon <agk@redhat.com> | 2005-06-03 14:49:51 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2005-06-03 14:49:51 +0000 |
commit | 8211a13ce0180979257689175d2fe2d700389c1e (patch) | |
tree | 98681540e30645c3bf91186c8e50d18d5c369c8b /tools/lvdisplay.c | |
parent | 60f13f01d2af1cb1b05c20b11285c7c6c15acd6b (diff) | |
download | lvm2-8211a13ce0180979257689175d2fe2d700389c1e.tar.gz |
Always insert an intermediate layer for mirrors.
Suppress hidden LVs from reports unless --all is given.
Use square brackets for hidden LVs in reports.
Centralise restrictions on LV names.
Diffstat (limited to 'tools/lvdisplay.c')
-rw-r--r-- | tools/lvdisplay.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lvdisplay.c b/tools/lvdisplay.c index c6dbfa71f..2b8c8a11a 100644 --- a/tools/lvdisplay.c +++ b/tools/lvdisplay.c @@ -18,6 +18,9 @@ static int _lvdisplay_single(struct cmd_context *cmd, struct logical_volume *lv, void *handle) { + if (!arg_count(cmd, all_ARG) && !(lv->status & VISIBLE_LV)) + return ECMD_PROCESSED; + if (arg_count(cmd, colon_ARG)) lvdisplay_colons(lv); else { |