device-mapper ./WHATS_NEW dmsetup/dmsetup.c
CVSROOT: /cvs/dm
Module name: device-mapper
Changes by: [email protected] 2007-01-29 17:45:32
Modified files:
. : WHATS_NEW
dmsetup : dmsetup.c
Log message:
reorder report field definitions
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/WHATS_NEW.diff?cvsroot=dm&r1=1.163&r2=1.164
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/dmsetup/dmsetup.c.diff?cvsroot=dm&r1=1.80&r2=1.81
WHATS_NEW +1 -1
@@ -1,6 +1,6 @@ Version 1.02.17 - =================================== - Use fixed-size fields in report interface. + Use fixed-size fields in report interface and reorder. Version 1.02.16 - 25th January 2007 ===================================
dmsetup/dmsetup.c +3 -3
@@ -1561,8 +1561,8 @@#define OFFSET_OF (strct, field) ((unsigned int) &((struct strct *)NULL)->field)#define STR (DM_REPORT_FIELD_TYPE_STRING)#define NUM (DM_REPORT_FIELD_TYPE_NUMBER) -#define FIELD_O (type, strct, sorttype, head, field, width, func, id, desc) {DR_ ## type, id, OFFSET_OF(strct, field), head, width, sorttype, &_ ## func ## _disp, desc}, -#define FIELD_F (type, sorttype, head, width, func, id, desc) {DR_ ## type, id, 0, head, width, sorttype, &_ ## func ## _disp, desc}, +#define FIELD_O (type, strct, sorttype, head, field, width, func, id, desc) {DR_ ## type, sorttype, OFFSET_OF(strct, field), width, id, head, &_ ## func ## _disp, desc}, +#define FIELD_F (type, sorttype, head, width, func, id, desc) {DR_ ## type, sorttype, 0, width, id, head, &_ ## func ## _disp, desc},static const struct dm_report_field_type _report_fields[] = {/* *INDENT-OFF* */
@@ -1574,7 +1574,7 @@ FIELD_O(INFO, dm_info, NUM, "Open", open_count, 4, int32, "open_count", "Number of references to open device, if requested.") FIELD_O(INFO, dm_info, NUM, "Targ", target_count, 4, int32, "target_count", "Number of segments in live table, if present.") FIELD_O(INFO, dm_info, NUM, "Event", event_nr, 6, uint32, "event_nr", "Current event number.") -{0, "", 0, "", 0, 0, NULL, NULL}, +{0, 0, 0, 0, "", "", NULL, NULL}, /* *INDENT-ON* */ };