dmraid ./dmraid.spec lib/format/ataraid/pdc.h ...
CVSROOT: /cvs/dm
Module name: dmraid
Changes by: [email protected] 2010-01-12 12:15:59
Modified files:
. : dmraid.spec
lib/format/ataraid: pdc.h
lib/metadata : metadata.c
logwatch : dmeventd
tools : commands.c commands.h dmraid.c
Log message:
Move pattern file to /var/cache/ and update changelog
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/dmraid.spec.diff?cvsroot=dm&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/lib/format/ataraid/pdc.h.diff?cvsroot=dm&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/lib/metadata/metadata.c.diff?cvsroot=dm&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/logwatch/dmeventd.diff?cvsroot=dm&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/tools/commands.c.diff?cvsroot=dm&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/tools/commands.h.diff?cvsroot=dm&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/tools/dmraid.c.diff?cvsroot=dm&r1=1.2&r2=1.3
dmraid.spec +8 -4
@@ -7,7 +7,7 @@ Summary: dmraid (Device-mapper RAID tool and library) Name: dmraid Version: 1.0.0.rc16 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ Group: System Environment/Base URL: http://people.redhat.com/heinzm/sw/dmraid
@@ -77,7 +77,7 @@ %install rm -rf $RPM_BUILD_ROOT -install -m 755 -d $RPM_BUILD_ROOT{%{_libdir},/sbin,%{_sbindir},%{_bindir},%{_libdir},%{_includedir}/dmraid/,/var/lock/dmraid,/etc/cron.d/,/etc/logwatch/conf/services/,/etc/logwatch/scripts/services/} +install -m 755 -d $RPM_BUILD_ROOT{%{_libdir},/sbin,%{_sbindir},%{_bindir},%{_libdir},%{_includedir}/dmraid/,/var/lock/dmraid,/etc/cron.d/,/etc/logwatch/conf/services/,/etc/logwatch/scripts/services/,/var/cache/logwatch/dmeventd/} make DESTDIR=$RPM_BUILD_ROOT install ln -s dmraid $RPM_BUILD_ROOT/sbin/dmraid.static
@@ -99,7 +99,7 @@ install -m 644 logwatch/dmeventd.conf $RPM_BUILD_ROOT/etc/logwatch/conf/services/dmeventd.conf install -m 755 logwatch/dmeventd $RPM_BUILD_ROOT/etc/logwatch/scripts/services/dmeventd install -m 644 logwatch/dmeventd_cronjob.txt $RPM_BUILD_ROOT/etc/cron.d/dmeventd-logwatch -install -m 0700 /dev/null $RPM_BUILD_ROOT/etc/logwatch/scripts/services/dmeventd_syslogpattern.txt +install -m 0700 /dev/null $RPM_BUILD_ROOT/var/cache/logwatch/dmeventd/syslogpattern.txt rm -f $RPM_BUILD_ROOT/%{_libdir}/libdmraid.a
@@ -136,9 +136,13 @@ %defattr(-,root,root) %config(noreplace) /etc/logwatch/* %config(noreplace) /etc/cron.d/dmeventd-logwatch -%ghost /etc/logwatch/scripts/services/dmeventd_syslogpattern.txt +%dir /var/cache/logwatch/dmeventd +%ghost /var/cache/logwatch/dmeventd/syslogpattern.txt %changelog +* Tue Jan 12 2010 Heinz Mauelshagen <[email protected]> - 1.0.0.rc16-3 +- Add logwatch files and move pattern file to /var/cache + * Mon Nov 2 2009 Heinz Mauelshagen <[email protected]> - 1.0.0.rc16-2 - Fix manual path in specfile - fix manual pages for dmraid.static and dm_dso_reg_tool
lib/format/ataraid/pdc.h +1 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2004,2005 Heinz Mauelshagen, Red Hat GmbH. +* Copyright (C) 2004-2010 Heinz Mauelshagen, Red Hat GmbH. * All rights reserved. * * See file LICENSE at the top of this source tree for license information.
lib/metadata/metadata.c +2 -2
@@ -82,8 +82,8 @@enum args args;/* Arguments allowed ? */ /* Function to call on hit or NULL */ -int (*f_set) (struct lib_context * lc,int arg); -int arg;/* Argument for above function call */ +int (*f_set) (struct lib_context * lc,struct actions *action); +int arg;/* Argument for above function call. */ };/*************************************/
logwatch/dmeventd +1 -2
@@ -36,8 +36,7 @@ # Set the location of the folder to store last time stamp # (This is used to record the last log sent out so repeats # are not mailed in error.) -$syslogpattern_file = - "/etc/logwatch/scripts/services/dmeventd_syslogpattern.txt"; +$syslogpattern_file = "/var/cache/logwatch/dmeventd/syslogpattern.txt"; if (-e $syslogpattern_file) { open(FD, "+<", $syslogpattern_file) or die $!;
tools/commands.c +45 -22
179 lines not on this page · raw message
tools/commands.h +2 -2
@@ -33,8 +33,8 @@enum args args;/* Arguments allowed ? */ /* Function to call on hit or NULL */ -int (*f_set) (struct lib_context * lc,int arg); -int arg;/* Argument for above function call */ +int (*f_set) (struct lib_context * lc,struct actions *action); +int arg;/* Argument for above function call. */ };int handle_args (struct lib_context *lc,int argc,char ***argv);
tools/dmraid.c +2 -1
@@ -33,7 +33,8 @@* If both are ok -> perform the required action. */ ret =handle_args (lc, argc, &argv) && -init_locking (lc) &&perform (lc, argv); +init_locking (lc) && +perform (lc, argv);/* Cleanup the library context. */ libdmraid_exit (lc);