Package: htop / 2.0.2-1


Package Version Patches format
htop 2.0.2-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
601 openvz new ctid vpid.patch | (download)

linux/LinuxProcess.c | 9 6 + 3 - 0 !
linux/LinuxProcess.h | 2 1 + 1 - 0 !
linux/LinuxProcessList.c | 38 23 + 15 - 0 !
3 files changed, 30 insertions(+), 19 deletions(-)

 [patch] add support of uuid ctid used in the new version of openvz

In the new version of OpenVZ (Virtuozzo 7), containers could be identified by UUIDs and integer numbers like before (so called legacy CTID). Existing support of OpenVZ can't work with UUIDs. This patch fix it.

CTIDs and VPIDs are now read from /proc/[id]/status instead of /proc/[id]/stat because of the following reasons:
* the /proc/[id]/status has named fields and OpenVZ kernel writes either CTID or UUID to envID field (depending on which type is used);
* OpenVZ kernel appends own data to /proc/[id]/stat file, a change in parameters reported by vanilla kernel would also shift the position of OpenVZ data so it would not be read correctly.

As UUIDs are much longer than old numerical CTIDs, the UUID strings will get truncated in output (although sorting is still done using complete UUIDs).