Hello community, here is the log from the commit of package lkcdutils checked in at Fri Jan 12 17:14:17 CET 2007. -------- --- lkcdutils/lkcdutils.changes 2007-01-11 10:50:59.000000000 +0100 +++ /mounts/work_src_done/STABLE/lkcdutils/lkcdutils.changes 2007-01-12 15:57:31.833006000 +0100 @@ -1,0 +2,7 @@ +Fri Jan 12 15:56:20 CET 2007 - bwalle@suse.de + +- polling/non-polling mode is now read from the dump configuration + also when using the sysfs-based configuration interface (which we + use on SLES10) + +------------------------------------------------------------------- New: ---- lkcdutils-fix-polling-config.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lkcdutils.spec ++++++ --- /var/tmp/diff_new_pack.j21524/_old 2007-01-12 17:14:04.000000000 +0100 +++ /var/tmp/diff_new_pack.j21524/_new 2007-01-12 17:14:04.000000000 +0100 @@ -15,7 +15,7 @@ BuildRequires: binutils-devel glib2-devel libelf popt-devel Summary: Linux Kernel Crash Dump (LKCD) Utilities Version: 7.0.1 -Release: 53 +Release: 54 License: GNU General Public License (GPL) Group: System/Kernel # Original source is from Sourceforge SVN @@ -47,6 +47,7 @@ Patch20: lkcdutils-incomplete-stack-traces Patch21: lkcdutils-ps.sial.patch Patch22: lkcdutils-fix-undefined-warning.diff +Patch23: lkcdutils-fix-polling-config.diff Patch71: lkcdutils-netdump-secure_mode.patch Patch75: lkcdutils-netdump-doc.patch Patch76: lkcdutils-savedump.patch @@ -102,6 +103,7 @@ #%patch20 -p4 %patch21 -p1 %patch22 -p1 +%patch23 -p1 %patch77 -p1 %patch80 -p1 cp %{S:4} PATCHES @@ -194,6 +196,10 @@ #/usr/sbin/netdump-login-client %changelog -n lkcdutils +* Fri Jan 12 2007 - bwalle@suse.de +- polling/non-polling mode is now read from the dump configuration + also when using the sysfs-based configuration interface (which we + use on SLES10) * Thu Jan 11 2007 - bwalle@suse.de - added BuildRequires binutils-devel since binutils doesn't contain header files any more ++++++ lkcdutils-fix-polling-config.diff ++++++ --- dumputils/configdump.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) Index: lkcdutils-svn-r1339/dumputils/configdump.c =================================================================== --- lkcdutils-svn-r1339.orig/dumputils/configdump.c +++ lkcdutils-svn-r1339/dumputils/configdump.c @@ -49,6 +49,10 @@ #define TOK_SIZE 132 +#define DUMP_FLAGS_DISKDUMP 0x80000000 +#define DUMP_FLAGS_POLL 0x00000004 +#define DUMP_FLAGS 0x80000000 + // Kernel 2.4 LKCD ioctrl's #define DIOSDUMPDEV_4 1 /* set the dump device */ #define DIOGDUMPDEV_4 2 /* get the dump device */ @@ -160,6 +164,7 @@ twoSix_One(int level_override, struct pc struct ether_addr *ether; char devstr[512]; struct stat devdump_buf; + int flags; printf("Configuring for 2.6 based kernel via sysfs\n"); @@ -267,6 +272,21 @@ twoSix_One(int level_override, struct pc fprintf(fp, "%lx\n", strtoul(conf->dump_compress, NULL, 0)); fclose(fp); + if ((fp = fopen("/sys/dump/polling", "w")) == NULL) { + fprintf(stderr, "%s: Error - can\'t open open /sys/dump/polling: ", prog); + perror(""); + exit(1); + } + + flags = atoi(conf->dump_flags); + + if (flags & DUMP_FLAGS_POLL) + fprintf(fp, "1\n"); + else + fprintf(fp, "0\n"); + + fclose(fp); + /* Put a timeout value in /proc PANIC_PATH, based * upon the PANIC_TIMEOUT value */ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org