public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/tools pvdisplay.c
@ 2004-05-05 18:39 agk
0 siblings, 0 replies; 2+ messages in thread
From: agk @ 2004-05-05 18:39 UTC (permalink / raw)
To: lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk@sourceware.org 2004-05-05 18:39:30
Modified files:
tools : pvdisplay.c
Log message:
fix return code
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/tools/pvdisplay.c.diff?cvsroot=lvm2&r1=1.20&r2=1.21
^ permalink raw reply [flat|nested] 2+ messages in thread
* LVM2/tools pvdisplay.c
@ 2007-06-05 18:23 wysochanski
0 siblings, 0 replies; 2+ messages in thread
From: wysochanski @ 2007-06-05 18:23 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski@sourceware.org 2007-06-05 18:23:18
Modified files:
tools : pvdisplay.c
Log message:
make code consistent with pvresize code - good candidate for common code cleanup
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/pvdisplay.c.diff?cvsroot=lvm2&r1=1.27&r2=1.28
--- LVM2/tools/pvdisplay.c 2007/05/31 20:10:25 1.27
+++ LVM2/tools/pvdisplay.c 2007/06/05 18:23:17 1.28
@@ -19,10 +19,10 @@
struct volume_group *vg __attribute((unused)),
struct physical_volume *pv, void *handle)
{
+ struct pv_list *pvl;
int consistent = 0;
int ret = ECMD_PROCESSED;
uint64_t size;
- struct physical_volume *pv_temp;
const char *pv_name = dev_name(pv->dev);
@@ -49,15 +49,14 @@
* Replace possibly incomplete PV structure with new one
* allocated in vg_read() path.
*/
- pv_temp = find_pv(vg, pv->dev);
- if (!pv_temp) {
- log_error("Unable to find physical volume %s "
- "in volume group %s",
- pv_name, pv->vg_name);
+ if (!(pvl = find_pv_in_vg(vg, pv_name))) {
+ log_error("Unable to find \"%s\" in volume group \"%s\"",
+ pv_name, vg->name);
ret = ECMD_FAILED;
- goto out;
+ goto out;
}
- pv = pv_temp;
+
+ pv = pvl->pv;
}
if (!*pv->vg_name)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-05 18:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-05 18:39 LVM2/tools pvdisplay.c agk
2007-06-05 18:23 wysochanski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).