LVM2 ./WHATS_NEW lib/activate/activate.c lib/m ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2007-01-24 16:51:24
Modified files:
. : WHATS_NEW lib/activate : activate.c lib/metadata : segtype.h lib/mirror : mirrored.c lib/report : columns.h report.c
Log message:
Add field definitions to report help text. Remove unnecessary cmd arg from target_*monitor_events().
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.554&r2=1.555
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/activate/activate.c.diff?cvsroot=lvm2&r1=1.117&r2=1.118
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/segtype.h.diff?cvsroot=lvm2&r1=1.16&r2=1.17
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/mirror/mirrored.c.diff?cvsroot=lvm2&r1=1.44&r2=1.45
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/report/columns.h.diff?cvsroot=lvm2&r1=1.18&r2=1.19
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/report/report.c.diff?cvsroot=lvm2&r1=1.53&r2=1.54
WHATS_NEW +2 -0
@@ -1,5 +1,7 @@ Version 2.02.20 - =================================== + Add field definitions to report help text. + Remove unnecessary cmd arg from target_*monitor_events(). Add private variable to dmeventd shared library interface. Long-lived processes write out persistent dev cache in refresh_toolcontext(). Fix refresh_toolcontext() always to wipe persistent device filter cache.
lib/activate/activate.c +1 -1
@@ -697,7 +697,7 @@log_verbose ("%sonitoring %s/%s" , monitor ?"M" :"Not m" , lv->vg->name, lv->name);/* FIXME specify events */ -if (!monitor_fn (cmd, seg,0 )) { +if (!monitor_fn (seg,0 )) {log_error ("%s/%s: %s segment monitoring function failed." , lv->vg->name, lv->name, seg->segtype->name);return 0 ;
lib/metadata/segtype.h +2 -4
@@ -84,10 +84,8 @@ struct list *modules);void (*destroy) (const struct segment_type * segtype);int (*target_monitored) (struct lv_segment *seg,int *pending); -int (*target_monitor_events) (struct cmd_context *cmd, -struct lv_segment *seg,int events); -int (*target_unmonitor_events) (struct cmd_context *cmd, -struct lv_segment *seg,int events); +int (*target_monitor_events) (struct lv_segment *seg,int events); +int (*target_unmonitor_events) (struct lv_segment *seg,int events); }; struct segment_type *get_segtype_from_string(struct cmd_context *cmd,
lib/mirror/mirrored.c +7 -13
@@ -449,9 +449,7 @@ }/* FIXME This gets run while suspended and performs banned operations. */ -static int _target_set_events (struct cmd_context *cmd, -struct lv_segment *seg, -int evmask,int set) +static int _target_set_events (struct lv_segment *seg,int evmask,int set) {char *dso, *name;struct logical_volume *lv;
@@ -462,10 +460,10 @@ lv = seg->lv; vg = lv->vg; -if (!_get_mirror_dso_path (cmd, &dso)) +if (!_get_mirror_dso_path (vg->cmd, &dso)) return_0; -if (!(name =build_dm_name (cmd->mem, vg->name, lv->name,NULL ))) +if (!(name =build_dm_name (vg->cmd->mem, vg->name, lv->name,NULL ))) return_0;if (!(dmevh =_create_dm_event_handler (name, dso,DM_EVENT_ALL_ERRORS )))
@@ -481,18 +479,14 @@ return 1; } -static int _target_monitor_events (struct cmd_context *cmd, -struct lv_segment *seg, -int events) +static int _target_monitor_events (struct lv_segment *seg,int events) { -return _target_set_events (cmd, seg, events,1 ); +return _target_set_events (seg, events,1 ); } -static int _target_unmonitor_events (struct cmd_context *cmd, -struct lv_segment *seg, -int events) +static int _target_unmonitor_events (struct lv_segment *seg,int events) { -return _target_set_events (cmd, seg, events,0 ); +return _target_set_events (seg, events,0 ); }#endif /* DMEVENTD */
lib/report/columns.h +59 -59
126 lines not on this page · raw message
lib/report/report.c +2 -2
@@ -868,11 +868,11 @@#define STR DM_REPORT_FIELD_TYPE_STRING#define NUM DM_REPORT_FIELD_TYPE_NUMBER -#define FIELD (type, strct, sorttype, head, field, width, func, id) {type, id, (off_t)((void *)&_dummy._ ## strct.field - (void *)&_dummy._ ## strct), head, width, sorttype, &_ ## func ## _disp}, +#define FIELD (type, strct, sorttype, head, field, width, func, id, desc) {type, id, (off_t)((void *)&_dummy._ ## strct.field - (void *)&_dummy._ ## strct), head, width, sorttype, &_ ## func ## _disp, desc},static struct dm_report_field_type _fields[] = { #include "columns.h" -{0 ,"" ,0 ,"" ,0 ,0 ,NULL }, +{0 ,"" ,0 ,"" ,0 ,0 ,NULL ,NULL }, };#undef STR