Package: rstatd / 4.0.1-9

Metadata

Package Version Patches format
rstatd 4.0.1-9 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
01 legacy.patch | (download)

getdata.c | 2 2 + 0 - 0 !
rstat_main.c | 2 1 + 1 - 0 !
rsysinfo.c | 2 1 + 1 - 0 !
rup.1 | 4 2 + 2 - 0 !
rup.c | 149 78 + 71 - 0 !
5 files changed, 84 insertions(+), 75 deletions(-)

---
02 654276 get_disk26.patch | (download)

getdata.c | 5 5 + 0 - 0 !
1 file changed, 5 insertions(+)

 rstatd: does not work with kernel 3.0/3.1 or any other 3.x kernel
Date: Mon, 2 Jan 2012 19:18:34 +0100

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.

In syslog I can see

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

The problem is in getdata.c, were a function get_diskXX is called
depending on the version of the kernel (e.g. get_disk24, get_disk26)
For a 3.X kernel no function is defined. The attached patch calls the
get_disk26 function for every 3.x kernel. This works nicely, since the
same interface is used for getting the disks statistics.


04 fix no format.patch | (download)

rsysinfo.c | 4 2 + 2 - 0 !
rup.c | 2 1 + 1 - 0 !
2 files changed, 3 insertions(+), 3 deletions(-)

---