]> git.proxmox.com Git - lxcfs.git/commitdiff
bump version to 2.0.7-1
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 12 May 2017 13:04:03 +0000 (15:04 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 12 May 2017 13:04:03 +0000 (15:04 +0200)
Makefile
debian/changelog
debian/patches/0001-Limit-memswlimit-by-TotalSwap.patch [deleted file]
debian/patches/series
lxcfs.tgz

index d0455a4e6f0909c72834225bd8ff76083cd0b04a..24054d345ae58c780906e7f7f3da4b89384e4877 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 PACKAGE=lxcfs
-PKGVER=2.0.6
-DEBREL=pve500
+PKGVER=2.0.7
+DEBREL=1
 
 SRCDIR=${PACKAGE}
 SRCTAR=${SRCDIR}.tgz
index 0cb008e2296ad3bb8c8c01cf83924dba06ae6afb..dce6f9c9b1857b85fb4611065fa09b67dc6d727b 100644 (file)
@@ -1,3 +1,9 @@
+lxcfs (2.0.7-1) unstable; urgency=medium
+
+  * update to lxcfs-2.0.7
+
+ -- Proxmox Support Team <support@proxmox.com>  Fri, 12 May 2017 15:03:30 +0200
+
 lxcfs (2.0.6-pve500) unstable; urgency=medium
 
   * bump version for stretch upgrade
diff --git a/debian/patches/0001-Limit-memswlimit-by-TotalSwap.patch b/debian/patches/0001-Limit-memswlimit-by-TotalSwap.patch
deleted file mode 100644 (file)
index b0d292f..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-From f4f2e7852fab28ec01b0634f6f2063a6e321e5e6 Mon Sep 17 00:00:00 2001
-From: Wolfgang Bumiller <w.bumiller@proxmox.com>
-Date: Thu, 2 Feb 2017 09:36:46 +0100
-Subject: [PATCH lxcfs] Limit memswlimit by TotalSwap
-
-We do this for the memlimit when hitting MemTotal which
-means if neither is limited we end up subtracting the
-hosts's total memory from the 'unlimited' swap value in the
-SwapTotal and SwapFree lines.
-
-Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
----
- bindings.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/bindings.c b/bindings.c
-index 2d4c36a..e116ff6 100644
---- a/bindings.c
-+++ b/bindings.c
-@@ -3086,7 +3086,8 @@ static int proc_meminfo_read(char *buf, size_t size, off_t offset,
-               *memswlimit_str = NULL, *memswusage_str = NULL;
-       unsigned long memlimit = 0, memusage = 0, memswlimit = 0, memswusage = 0,
-               cached = 0, hosttotal = 0, active_anon = 0, inactive_anon = 0,
--              active_file = 0, inactive_file = 0, unevictable = 0;
-+              active_file = 0, inactive_file = 0, unevictable = 0,
-+              hostswtotal = 0;
-       char *line = NULL;
-       size_t linelen = 0, total_len = 0, rv = 0;
-       char *cache = d->buf;
-@@ -3148,7 +3149,7 @@ static int proc_meminfo_read(char *buf, size_t size, off_t offset,
-               memset(lbuf, 0, 100);
-               if (startswith(line, "MemTotal:")) {
--                      sscanf(line+14, "%lu", &hosttotal);
-+                      sscanf(line+sizeof("MemTotal:")-1, "%lu", &hosttotal);
-                       if (hosttotal < memlimit)
-                               memlimit = hosttotal;
-                       snprintf(lbuf, 100, "MemTotal:       %8lu kB\n", memlimit);
-@@ -3160,6 +3161,9 @@ static int proc_meminfo_read(char *buf, size_t size, off_t offset,
-                       snprintf(lbuf, 100, "MemAvailable:   %8lu kB\n", memlimit - memusage);
-                       printme = lbuf;
-               } else if (startswith(line, "SwapTotal:") && memswlimit > 0) {
-+                      sscanf(line+sizeof("SwapTotal:")-1, "%lu", &hostswtotal);
-+                      if (hostswtotal < memswlimit - memlimit)
-+                              memswlimit = hostswtotal + memlimit;
-                       snprintf(lbuf, 100, "SwapTotal:      %8lu kB\n", memswlimit - memlimit);
-                       printme = lbuf;
-               } else if (startswith(line, "SwapFree:") && memswlimit > 0 && memswusage > 0) {
--- 
-2.1.4
-
index bb288895548dec497168b11c0eb3bb8db416b967..bf650b42b1037ca3c7f99c19421c9e1728402554 100644 (file)
@@ -1,2 +1 @@
 do-not-start-without-lxcfs.patch
-0001-Limit-memswlimit-by-TotalSwap.patch
index 410279025b066382d714c7cd66f780bb5def4fc3..da7415b9dcb203719bf983fd8b31ab20de8c3604 100644 (file)
Binary files a/lxcfs.tgz and b/lxcfs.tgz differ