public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 ./WHATS_NEW tools/polldaemon.h tools/pvmove.c
@ 2008-04-09 12:45 agk
0 siblings, 0 replies; only message in thread
From: agk @ 2008-04-09 12:45 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk@sourceware.org 2008-04-09 12:45:33
Modified files:
. : WHATS_NEW
tools : polldaemon.h pvmove.c
Log message:
Fix some pvmove error status codes.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.835&r2=1.836
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/polldaemon.h.diff?cvsroot=lvm2&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/pvmove.c.diff?cvsroot=lvm2&r1=1.50&r2=1.51
--- LVM2/WHATS_NEW 2008/04/08 22:02:16 1.835
+++ LVM2/WHATS_NEW 2008/04/09 12:45:32 1.836
@@ -1,5 +1,6 @@
Version 2.02.34 -
===================================
+ Fix some pvmove error status codes.
Fix vgsplit error paths to release vg_to lock.
Indicate whether or not VG is clustered in vgcreate log message.
Mention default --clustered setting in vgcreate man page.
--- LVM2/tools/polldaemon.h 2007/12/22 12:13:29 1.4
+++ LVM2/tools/polldaemon.h 2008/04/09 12:45:32 1.5
@@ -19,21 +19,21 @@
#include "metadata-exported.h"
struct poll_functions {
- const char *(*get_copy_name_from_lv) (struct logical_volume * lv_mirr);
- struct volume_group *(*get_copy_vg) (struct cmd_context * cmd,
+ const char *(*get_copy_name_from_lv) (struct logical_volume *lv_mirr);
+ struct volume_group *(*get_copy_vg) (struct cmd_context *cmd,
const char *name);
- struct logical_volume *(*get_copy_lv) (struct cmd_context * cmd,
- struct volume_group * vg,
+ struct logical_volume *(*get_copy_lv) (struct cmd_context *cmd,
+ struct volume_group *vg,
const char *name,
uint32_t lv_type);
- int (*update_metadata) (struct cmd_context * cmd,
- struct volume_group * vg,
- struct logical_volume * lv_mirr,
- struct list * lvs_changed, int first_time);
- int (*finish_copy) (struct cmd_context * cmd,
- struct volume_group * vg,
- struct logical_volume * lv_mirr,
- struct list * lvs_changed);
+ int (*update_metadata) (struct cmd_context *cmd,
+ struct volume_group *vg,
+ struct logical_volume *lv_mirr,
+ struct list *lvs_changed, int first_time);
+ int (*finish_copy) (struct cmd_context *cmd,
+ struct volume_group *vg,
+ struct logical_volume *lv_mirr,
+ struct list *lvs_changed);
};
struct daemon_parms {
--- LVM2/tools/pvmove.c 2008/04/07 10:23:47 1.50
+++ LVM2/tools/pvmove.c 2008/04/09 12:45:32 1.51
@@ -565,8 +565,10 @@
char *colon;
int ret;
- if (!pvmove_target_present(cmd, 0))
- return 0;
+ if (!pvmove_target_present(cmd, 0)) {
+ stack;
+ return ECMD_FAILED;
+ }
if (argc) {
pv_name = argv[0];
@@ -577,7 +579,7 @@
(unsigned) (colon -
pv_name)))) {
log_error("Failed to clone PV name");
- return 0;
+ return ECMD_FAILED;
}
}
@@ -587,7 +589,6 @@
stack;
return ret;
}
-
}
return pvmove_poll(cmd, pv_name,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-09 12:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-09 12:45 LVM2 ./WHATS_NEW tools/polldaemon.h tools/pvmove.c agk
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).