[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

rstatd: does not work with kernel 3.0/3.1 or any other 3.x kernel (s-p-u possible?)



Hi Release Team, Hi Anibal

There is [1] for rstatd "does not work with kernel 3.0/3.1 or any
other 3.x kernel". With the kernel from backports thus rstatd will not
work at all, writing into syslog only:

rpc.rstatd: dummy function, should never be called!

I'm not the maintainer of this package, but would like to ask, and if
too Anibal agree, if it would be possible to have this minimal patch
in Squeeze applied.

Attached is a local debdiff for it, taken from the already patched
version in unstable. The version in unstable is now for some months
already uploaded.

 [1]: http://bugs.debian.org/654276

What do you think, is this possible?

Many thanks in advance, and regards,

Salvatore
diff -u rstatd-4.0.1/getdata.c rstatd-4.0.1/getdata.c
--- rstatd-4.0.1/getdata.c
+++ rstatd-4.0.1/getdata.c
@@ -289,6 +289,10 @@
 		getdata.disk = get_disk26;
 		getdata.vm = get_vm26;
 	}
+	if (0 == strncmp(u.release, "3", 1)) {
+		getdata.disk = get_disk26;
+		getdata.vm = get_vm26;
+	}
 
 	/* prepare the disk patterns */
 	for (i = 0; i < PATTERNS; i++) {
diff -u rstatd-4.0.1/debian/changelog rstatd-4.0.1/debian/changelog
--- rstatd-4.0.1/debian/changelog
+++ rstatd-4.0.1/debian/changelog
@@ -1,3 +1,15 @@
+rstatd (4.0.1-4+squeeze1~local1) stable; urgency=low
+
+  * Non-maintainer upload.
+  * Patch getdata.c. Work with 3.x Linux kernels. A machine running
+    kernel 3.x an the rpc.rstatd does not reply to any rup or rusers
+    request from remote or even from local host. This renders the
+    package unusable.
+    Patch by Thomas Lange
+    Closes: #654276
+
+ -- Salvatore Bonaccorso <carnil@debian.org>  Wed, 06 Jun 2012 09:40:37 +0200
+
 rstatd (4.0.1-4) unstable; urgency=low
 
   * Reduce log verbosity; closes: #418969 
@@ -131 +142,0 @@
-

Attachment: signature.asc
Description: Digital signature


Reply to: