[Pkg-sysvinit-commits] r683 - in sysvinit/trunk/debian: . patches

Thomas Hood jdthood-guest at costa.debian.org
Mon Jan 23 10:27:25 UTC 2006


Author: jdthood-guest
Date: 2006-01-23 10:27:24 +0000 (Mon, 23 Jan 2006)
New Revision: 683

Added:
   sysvinit/trunk/debian/patches/51_bootlogd_syncalot.dpatch
Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/patches/00list
Log:
Add -s option to bootlogd

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2006-01-22 21:28:12 UTC (rev 682)
+++ sysvinit/trunk/debian/changelog	2006-01-23 10:27:24 UTC (rev 683)
@@ -1,3 +1,11 @@
+sysvinit (2.86.ds1-12~1) unstable; urgency=low
+
+  [ Thomas Hood ]
+  * bootlogd: Don't sync after each line unless (new) -s option given
+    (Closes: #205724)
+
+ -- Thomas Hood <jdthood at yahoo.co.uk>  Mon, 23 Jan 2006 11:24:47 +0100
+
 sysvinit (2.86.ds1-11) unstable; urgency=low
 
   [ Thomas Hood ]

Modified: sysvinit/trunk/debian/patches/00list
===================================================================
--- sysvinit/trunk/debian/patches/00list	2006-01-22 21:28:12 UTC (rev 682)
+++ sysvinit/trunk/debian/patches/00list	2006-01-23 10:27:24 UTC (rev 683)
@@ -12,6 +12,7 @@
 40_selinux
 45_pidof_symlink
 50_bootlogd_exitcode
+51_bootlogd_syncalot
 60_init_race
 61_init_msg
 62_init_freebsdterm

Added: sysvinit/trunk/debian/patches/51_bootlogd_syncalot.dpatch
===================================================================
--- sysvinit/trunk/debian/patches/51_bootlogd_syncalot.dpatch	2006-01-22 21:28:12 UTC (rev 682)
+++ sysvinit/trunk/debian/patches/51_bootlogd_syncalot.dpatch	2006-01-23 10:27:24 UTC (rev 683)
@@ -0,0 +1,76 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 51_bootlogd_syncalot.dpatch by Thomas Hood <jdthood at yahoo.co.uk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Only fdatasync() if -s option given
+
+ at DPATCH@
+diff -urNad --exclude=CVS --exclude=.svn ./man/bootlogd.8 /tmp/dpep-work.bY0gSg/trunk/man/bootlogd.8
+--- ./man/bootlogd.8	2006-01-23 11:17:20.000000000 +0100
++++ /tmp/dpep-work.bY0gSg/trunk/man/bootlogd.8	2006-01-23 11:23:47.000000000 +0100
+@@ -5,6 +5,7 @@
+ .B /sbin/bootlogd
+ .RB [ \-d ]
+ .RB [ \-r ]
++.RB [ \-s ]
+ .RB [ \-v ]
+ .RB [ " -l logfile " ]
+ .RB [ " -p pidfile " ]
+@@ -18,6 +19,12 @@
+ .IP \fB\-r\fP
+ If there is an existing logfile called \fIlogfile\fP rename it to
+ \fIlogfile~\fP unless \fIlogfile~\fP already exists.
++.IP \fB\-s\fP
++Ensure that the data is written to the file after each line by calling
++.BR fdatasync (3).
++This will slow down a
++.BR fsck (8)
++process running in parallel.
+ .IP \fB\-v\fP
+ Show version.
+ .IP "\fB\-l\fP \fIlogfile\fP"
+@@ -38,4 +45,4 @@
+ .SH AUTHOR
+ Miquel van Smoorenburg, miquels at cistron.nl
+ .SH "SEE ALSO"
+-.BR dmesg (8)
++.BR dmesg (8), fdatasync (3).
+diff -urNad --exclude=CVS --exclude=.svn ./src/bootlogd.c /tmp/dpep-work.bY0gSg/trunk/src/bootlogd.c
+--- ./src/bootlogd.c	2006-01-23 11:17:21.000000000 +0100
++++ /tmp/dpep-work.bY0gSg/trunk/src/bootlogd.c	2006-01-23 11:19:23.000000000 +0100
+@@ -56,6 +56,7 @@
+ 
+ int got_signal = 0;
+ int didnl = 1;
++int syncalot = 0;
+ 
+ struct line {
+ 	char buf[256];
+@@ -337,7 +338,7 @@
+ 				break;
+ 			case '\n':
+ 				didnl = 1;
+-				dosync = 1;
++				dosync = syncalot;
+ 				break;
+ 			case '\t':
+ 				line.pos += (line.pos / 8 + 1) * 8;
+@@ -446,7 +447,7 @@
+ 	rotate = 0;
+ 	dontfork = 0;
+ 
+-	while ((i = getopt(argc, argv, "dl:p:rv")) != EOF) switch(i) {
++	while ((i = getopt(argc, argv, "dsl:p:rv")) != EOF) switch(i) {
+ 		case 'l':
+ 			logfile = optarg;
+ 			break;
+@@ -463,6 +464,9 @@
+ 		case 'd':
+ 			dontfork = 1;
+ 			break;
++		case 's':
++			syncalot = 1;
++			break;
+ 		default:
+ 			usage();
+ 			break;


Property changes on: sysvinit/trunk/debian/patches/51_bootlogd_syncalot.dpatch
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-sysvinit-commits mailing list