Patchwork ureadahead Maverick patch for buffer_size_kb

login
register
mail settings
Submitter Tim Gardner
Date July 12, 2010, 2:50 p.m.
Message ID <4C3B2BCF.4010703@canonical.com>
Download mbox | patch
Permalink /patch/58618/
State Accepted
Headers show

Comments

Tim Gardner - July 12, 2010, 2:50 p.m.
Scott,

Is this the right changelog version for Maverick? Since you're upstream, 
are you keeping changes in an SCM repository somewhere?

rtg

Patch

diff -u ureadahead-0.100.0/debian/changelog ureadahead-0.100.0/debian/changelog
--- ureadahead-0.100.0/debian/changelog
+++ ureadahead-0.100.0/debian/changelog
@@ -1,3 +1,10 @@ 
+ureadahead (0.100.0-5ubuntu1) maverick; urgency=low
+
+  * Restore buffer_size_kb upon exit.
+    - #LP: 501715 
+
+ -- Tim Gardner <tim.gardner@canonical.com>  Mon, 12 Jul 2010 14:39:48 +0000
+
 ureadahead (0.100.0-5) maverick; urgency=low
 
   * src/pack.c: Amend mount point detection logic to stat the mount point
only in patch2:
unchanged:
--- ureadahead-0.100.0.orig/src/trace.c
+++ ureadahead-0.100.0/src/trace.c
@@ -122,6 +122,7 @@ 
 	int                 old_open_exec_enabled = 0;
 	int                 old_uselib_enabled = 0;
 	int                 old_tracing_enabled = 0;
+	int                 old_buffer_size_kb = 0;
 	struct sigaction    act;
 	struct sigaction    old_sigterm;
 	struct sigaction    old_sigint;
@@ -165,7 +166,7 @@ 
 
 		old_uselib_enabled = -1;
 	}
-	if (set_value (dfd, "buffer_size_kb", 128000, NULL) < 0)
+	if (set_value (dfd, "buffer_size_kb", 128000, &old_buffer_size_kb) < 0)
 		goto error;
 	if (set_value (dfd, "tracing_enabled",
 		       TRUE, &old_tracing_enabled) < 0)
@@ -217,6 +218,9 @@ 
 	if (set_value (dfd, "events/fs/do_sys_open/enable",
 		       old_sys_open_enabled, NULL) < 0)
 		goto error;
+	if (set_value (dfd, "buffer_size_kb",
+		       old_buffer_size_kb, NULL) < 0)
+		goto error;
 
 	/* Be nicer */
 	if (nice (15))