diff options
author | Alasdair Kergon <agk@redhat.com> | 2004-06-19 19:27:00 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2004-06-19 19:27:00 +0000 |
commit | c29d24650dfb303e1e314f43095a907e0cdad498 (patch) | |
tree | 56012e94a6666737cee96b41d26dc8d753114240 /tools/pvchange.c | |
parent | 01c263e9fec9b57d244e022a9f6a03a1b4506ba8 (diff) | |
download | lvm2-c29d24650dfb303e1e314f43095a907e0cdad498.tar.gz lvm2-c29d24650dfb303e1e314f43095a907e0cdad498.tar.xz lvm2-c29d24650dfb303e1e314f43095a907e0cdad498.zip |
Display all filtered devices, not just PVs, with pvs -a.
Diffstat (limited to 'tools/pvchange.c')
-rw-r--r-- | tools/pvchange.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/pvchange.c b/tools/pvchange.c index 1056300f..71b9992b 100644 --- a/tools/pvchange.c +++ b/tools/pvchange.c @@ -107,7 +107,7 @@ static int _pvchange_single(struct cmd_context *cmd, struct physical_volume *pv, return 0; } - if (!(pv = pv_read(cmd, pv_name, &mdas, §or))) { + if (!(pv = pv_read(cmd, pv_name, &mdas, §or, 1))) { unlock_vg(cmd, ORPHAN); log_error("Unable to read PV \"%s\"", pv_name); return 0; @@ -236,10 +236,9 @@ int pvchange(struct cmd_context *cmd, int argc, char **argv) for (; opt < argc; opt++) { pv_name = argv[opt]; /* FIXME Read VG instead - pv_read will fail */ - if (!(pv = pv_read(cmd, pv_name, &mdas, NULL))) { - log_error - ("Failed to read physical volume \"%s\"", - pv_name); + if (!(pv = pv_read(cmd, pv_name, &mdas, NULL, 1))) { + log_error("Failed to read physical volume %s", + pv_name); continue; } total++; |