1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 01:55:10 +03:00

lvscan -a

This commit is contained in:
Alasdair Kergon 2005-10-17 16:41:38 +00:00
parent 2262b32057
commit 191abde97e
3 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.00 -
===================================
Add -a to lvscan.
Move mknodes into libdevmapper.
Move bitset, hash, pool and dbg_malloc into libdevmapper.

View File

@ -343,6 +343,7 @@ xx(lvs,
xx(lvscan,
"List all logical volumes in all volume groups",
"lvscan " "\n"
"\t[-a|--all]\n"
"\t[-b|--blockdevice] " "\n"
"\t[-d|--debug] " "\n"
"\t[-h|-?|--help] " "\n"
@ -351,7 +352,7 @@ xx(lvscan,
"\t[-v|--verbose] " "\n"
"\t[--version]\n",
blockdevice_ARG, disk_ARG, ignorelockingfailure_ARG, partial_ARG)
all_ARG, blockdevice_ARG, disk_ARG, ignorelockingfailure_ARG, partial_ARG)
xx(pvchange,
"Change attributes of physical volume(s)",

View File

@ -24,8 +24,13 @@ 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)))
return ECMD_PROCESSED;
/* FIXME Add -D arg to skip this! */
if (lv_info(lv, &info, 0) && info.exists)
if (lv_info(cmd, lv, &info, 0) && info.exists)
active_str = "ACTIVE ";
else
active_str = "inactive ";