]>
git.proxmox.com Git - mirror_lxcfs.git/log
Stéphane Graber [Thu, 3 Feb 2022 02:47:48 +0000 (21:47 -0500)]
lxc.mount.hook: Fix bashism
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Tue, 1 Feb 2022 18:59:53 +0000 (13:59 -0500)]
Release LXCFS 4.0.12
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Nguyen Phan Huy [Thu, 27 Jan 2022 11:31:47 +0000 (19:31 +0800)]
Preseve cpu sum in /proc/stat when cpuset changes
Signed-off-by: Nguyen Phan Huy <phanhuy1502@gmail.com>
Wolfgang Bumiller [Mon, 17 Jan 2022 09:20:33 +0000 (10:20 +0100)]
fix and reformat format strings
Some of these missed the spaces in between and in order to
make this more readable and apparent, put one field per line
and add comments matching the field names.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Christian Brauner [Mon, 13 Dec 2021 15:35:10 +0000 (16:35 +0100)]
proc_loadavg: use PRIu64 to print uint64_t
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 13 Dec 2021 15:32:32 +0000 (16:32 +0100)]
proc_fuse: use PRIu64 to print uint64_t
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 13 Dec 2021 15:27:33 +0000 (16:27 +0100)]
proc_cpuview: use PRIu64 to print uint64_t
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 13 Dec 2021 15:18:08 +0000 (16:18 +0100)]
proc_fuse: use correct type for swap variables
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Wolfgang Bumiller [Thu, 9 Dec 2021 10:37:04 +0000 (11:37 +0100)]
make meminfo and swaps cgroupv2 aware
and deduplicate the corresponding code
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Guohao Wang [Sun, 5 Dec 2021 08:45:00 +0000 (16:45 +0800)]
empty cgroup dir if set unified_cgroup_hierarchy=1
Signed-off-by: Guohao Wang <wangguohao.2009@gmail.com>
Nguyen Phan Huy [Tue, 9 Nov 2021 10:58:28 +0000 (18:58 +0800)]
Skip cpu revise when cfs quota is disable
Signed-off-by: Nguyen Phan Huy <phanhuy1502@gmail.com>
Christian Brauner [Wed, 27 Oct 2021 08:20:59 +0000 (10:20 +0200)]
build: make sue _FILE_OFFSET_BITS is defined to 64bit
Fixes: #498
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Stéphane Graber [Thu, 21 Oct 2021 14:07:55 +0000 (10:07 -0400)]
Release LXCFS 4.0.11
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Christian Brauner [Thu, 21 Oct 2021 08:59:44 +0000 (10:59 +0200)]
build: fix lxcfs_fuse.h in release tarball
Fixes: #497
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Stéphane Graber [Tue, 19 Oct 2021 15:07:33 +0000 (11:07 -0400)]
Release LXCFS 4.0.10
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Christian Brauner [Thu, 14 Oct 2021 15:04:14 +0000 (17:04 +0200)]
tree-wide: set _GNU_SOURCE configure.ac
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 19 Oct 2021 08:19:38 +0000 (10:19 +0200)]
macro: cast to correct integer types
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
sn0rt [Tue, 19 Oct 2021 10:36:34 +0000 (18:36 +0800)]
doc: guide for reload share libary file
Signed-off-by: sn0rt <wangguohao.2009@gmail.com>
Stéphane Graber [Thu, 14 Oct 2021 16:52:56 +0000 (12:52 -0400)]
github: Drop 16.04
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Christian Brauner [Thu, 14 Oct 2021 15:13:15 +0000 (17:13 +0200)]
tree-wide: use a single fuse header
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 14 Oct 2021 14:58:22 +0000 (16:58 +0200)]
tree-wide: fix HAVE_FUSE3 checks
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 14 Oct 2021 14:51:24 +0000 (16:51 +0200)]
tree-wide: fix fuse version detection
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 2 Sep 2021 15:01:20 +0000 (17:01 +0200)]
tree-wide: fix type comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 11 Oct 2021 08:22:40 +0000 (10:22 +0200)]
cpuview: log non-fatal error in verbose mode only
Fixes: #482
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Matthew Stickney [Sat, 9 Oct 2021 04:14:27 +0000 (00:14 -0400)]
Fix padding for Slab entry in /proc/meminfo
The padding used for the 'Slab' entry of /proc/meminfo is three bytes
shorter than the padding used by the kernel. Since we report the host's
file size as the size of the lxcfs file, this means reads would be three
bytes short of the reported file length. In some cases this causes the
client to receive three additional NUL bytes at the end of the file,
which can cause various problems.
Signed-off-by: Matthew Stickney <fiendishlinux@gmail.com>
Christian Brauner [Thu, 7 Oct 2021 08:31:40 +0000 (10:31 +0200)]
lxcfs: fix version and usage handling
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
sn0rt [Tue, 5 Oct 2021 10:53:36 +0000 (18:53 +0800)]
lxcfs: fix lxcfs CLI -v and no arg output
Signed-off-by: sn0rt <wangguohao.2009@gmail.com>
moweiraul [Mon, 20 Sep 2021 09:48:33 +0000 (17:48 +0800)]
README: Fix package name
Signed-off-by: Mowei Jiang <moweiraul@gmail.com>
Christian Brauner [Thu, 2 Sep 2021 14:42:13 +0000 (16:42 +0200)]
tests: fix build warnings
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 2 Sep 2021 14:41:51 +0000 (16:41 +0200)]
tests: rely on config.h only for fuse versioning
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 2 Sep 2021 15:02:51 +0000 (17:02 +0200)]
proc_cpuview: fix unused variable warning
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 2 Sep 2021 15:02:24 +0000 (17:02 +0200)]
macro: fix bracket warnings in non-debug mode
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 2 Sep 2021 15:01:52 +0000 (17:01 +0200)]
tree-wide: fix some ifdef checks
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 2 Sep 2021 14:59:52 +0000 (16:59 +0200)]
tree-wide: fix prototypes
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 2 Sep 2021 14:58:35 +0000 (16:58 +0200)]
tree-wide: fix fuse header inclusion
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 2 Sep 2021 14:56:31 +0000 (16:56 +0200)]
tree-wide: include own header file first
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 2 Sep 2021 14:48:53 +0000 (16:48 +0200)]
src: rely on config.h for fuse version
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 31 Aug 2021 13:45:21 +0000 (15:45 +0200)]
proc_cpuview: unlock mutex in all error paths
Fixes: #472
Reported-by: ycaibb@gmail.com
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Stéphane Graber [Fri, 16 Jul 2021 20:24:13 +0000 (16:24 -0400)]
Release LXCFS 4.0.9
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Christian Brauner [Fri, 16 Jul 2021 14:30:27 +0000 (16:30 +0200)]
lxcfs: handle libfuse2 vs libfuse3
This is one of the reasons why symbol versioning doesn't work because
no-one does it but still happily changes function signatures. This
should've been a new method simply.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 16 Jul 2021 06:52:58 +0000 (08:52 +0200)]
lxcfs: handle libfuse2 vs libfuse3
Link: https://launchpadlibrarian.net/548643021/buildlog_snap_ubuntu_focal_s390x_lxd-4.0-edge_BUILDING.txt.gz
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 15 Jun 2021 08:00:13 +0000 (10:00 +0200)]
cgroup_fuse: replace potentially problematic terminology
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 31 May 2021 14:26:23 +0000 (16:26 +0200)]
proc_fuse: don't spam log needlessly
Fixes: https://discuss.linuxcontainers.org/t/lxcfs-spamming-syslog-with-logs-lxc-payload-container-has-unexpected-cpu-time-unable-to-determine-idle-time
Fixes: https://github.com/lxc/lxcfs/issues/464
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 27 May 2021 15:17:24 +0000 (17:17 +0200)]
bindings: fix struct lxcfs_opts by making it versioned
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Thu, 27 May 2021 15:02:40 +0000 (17:02 +0200)]
cpuset_parse: drop unneeded dependencies
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 26 May 2021 15:55:01 +0000 (17:55 +0200)]
bindings: introduce lxcfs_has_opt() helper
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 26 May 2021 12:30:20 +0000 (14:30 +0200)]
lxcfs: remove obsolete logging
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
hailin84 [Thu, 6 May 2021 08:18:06 +0000 (16:18 +0800)]
lxcfs: rework argument parsing
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Stéphane Graber [Thu, 29 Apr 2021 19:03:56 +0000 (15:03 -0400)]
Release LXCFS 4.0.8
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Wed, 17 Mar 2021 21:24:32 +0000 (17:24 -0400)]
Switch to Github Actions
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Scott Parlane [Tue, 16 Mar 2021 02:53:31 +0000 (15:53 +1300)]
Determine the file size from the current system file size
fixes: #448 caused by
25982f5d7e008e6ad13df28af3006ab8286f4c97
Signed-off-by: Scott Parlane <scott.parlane@alliedtelesis.co.nz>
Christian Brauner [Thu, 28 Jan 2021 10:07:16 +0000 (11:07 +0100)]
proc_cpuview: release lock before returning
Fixes: #442
Cc: stable-4.0
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Stéphane Graber [Fri, 8 Jan 2021 19:30:03 +0000 (14:30 -0500)]
Release LXCFS 4.0.7
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Tim Gates [Thu, 17 Dec 2020 09:13:31 +0000 (20:13 +1100)]
docs: fix simple typo, throuh -> through
There is a small typo in src/proc_cpuview.c.
Should read `through` rather than `throuh`.
Signed-off-by: tgates <tim.gates@iress.com>
Stéphane Graber [Thu, 5 Nov 2020 20:46:07 +0000 (15:46 -0500)]
swap: Remove now unused variable
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Thu, 5 Nov 2020 20:43:01 +0000 (15:43 -0500)]
swap: Make /proc/swaps match /proc/meminfo
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Thu, 5 Nov 2020 20:30:27 +0000 (15:30 -0500)]
swap: Tweak meminfo logic
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Thu, 5 Nov 2020 20:20:26 +0000 (15:20 -0500)]
swap: Only report usage when swappiness is 0
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Thu, 5 Nov 2020 20:17:40 +0000 (15:17 -0500)]
swap: Fix usage reporting
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Thu, 5 Nov 2020 20:17:02 +0000 (15:17 -0500)]
cgroups: Add get_memory_swappiness
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Thu, 5 Nov 2020 04:06:00 +0000 (23:06 -0500)]
README: clarify SWAP
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Christian Brauner [Tue, 3 Nov 2020 21:27:05 +0000 (22:27 +0100)]
meminfo: show host swap values when no limit or equal limits are set
Closes: #434
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Stéphane Graber [Mon, 19 Oct 2020 22:10:32 +0000 (18:10 -0400)]
LXCFS 4.0.6
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Christian Brauner [Tue, 8 Sep 2020 11:17:20 +0000 (13:17 +0200)]
diskstats: support new fields in 4.18+ kernels
Closes: #427.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Scott Parlane [Sun, 6 Sep 2020 20:45:23 +0000 (08:45 +1200)]
Set the file size to 4k
In fuse2, the apparant file size is always 4k, however in fuse3
the file size is actually obeyed, so we need to same something
bigger than 0 to get clients to be able to read the file contents.
Signed-off-by: Scott Parlane <scott.parlane@alliedtelesis.co.nz>
Scott Parlane [Thu, 3 Sep 2020 02:18:26 +0000 (14:18 +1200)]
rename fuse_compat.h to avoid conflict with system header
Signed-off-by: Scott Parlane <scott.parlane@alliedtelesis.co.nz>
Scott Parlane [Thu, 3 Sep 2020 02:16:02 +0000 (14:16 +1200)]
Update options passed to fuse_main
fuse3 doesn't support the direct_io option anymore
and nonempty has been dropped
Signed-off-by: Scott Parlane <scott.parlane@alliedtelesis.co.nz>
Jack O'Sullivan [Thu, 3 Sep 2020 21:39:05 +0000 (22:39 +0100)]
Fix `get_min_memlimit()` on non-glibc
Signed-off-by: Jack O'Sullivan <j@ckos.ie>
[christian.brauner@ubuntu.com: fix coding style]
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Scott Parlane [Thu, 3 Sep 2020 00:54:39 +0000 (12:54 +1200)]
Add support for fuse3
Signed-off-by: Scott Parlane <scott.parlane@alliedtelesis.co.nz>
Nick Cleaton [Wed, 2 Sep 2020 07:57:12 +0000 (08:57 +0100)]
fix epoll create socket error message
Signed-off-by: Nick Cleaton <nick@cleaton.net>
Stéphane Graber [Mon, 3 Aug 2020 21:31:43 +0000 (17:31 -0400)]
LXCFS 4.0.5
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Ruan Kunliang [Sat, 18 Jul 2020 12:16:12 +0000 (20:16 +0800)]
fix type mismatch
Signed-off-by: Ruan Kunliang <PeterRK@126.com>
Christian Brauner [Mon, 6 Jul 2020 09:18:28 +0000 (11:18 +0200)]
proc_fuse: remove unused variable
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 6 Jul 2020 09:11:52 +0000 (11:11 +0200)]
.travis: use RTLD_NOW for tests
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 6 Jul 2020 09:05:14 +0000 (11:05 +0200)]
bindings: provide lxcfs_clone() as wrapper around lxcfs_raw_clone()
Closes: #420.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Sun, 5 Jul 2020 08:19:53 +0000 (10:19 +0200)]
cgroups: replace leftover reference to legacy terms
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Jul 2020 11:24:02 +0000 (13:24 +0200)]
cgroups: update terminology
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 3 Jul 2020 10:51:35 +0000 (12:51 +0200)]
bindings: update terminology
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 24 Jun 2020 11:13:25 +0000 (13:13 +0200)]
proc_fuse: provide host values when kernel does not support swap accounting
Link: https://discuss.linuxcontainers.org/t/invalid-swaptotal-in-proc-meminfo-swaptotal-0
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Stéphane Graber [Thu, 18 Jun 2020 19:56:31 +0000 (15:56 -0400)]
Release LXCFS 4.0.4
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 08:17:22 +0000 (10:17 +0200)]
proc_cpuview: cleanup cpuview_init_head()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 08:11:35 +0000 (10:11 +0200)]
proc_cpuview: cleanup cpuview_proc_stat()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 08:07:58 +0000 (10:07 +0200)]
proc_cpuview: fix max_cpu_count()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 08:06:36 +0000 (10:06 +0200)]
proc_cpuview: fix exact_cpu_count()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 08:05:26 +0000 (10:05 +0200)]
proc_cpuview: cleanup read_cpu_cfs_param()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 08:00:16 +0000 (10:00 +0200)]
proc_cpuview: cleanup add_cpu_usage()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:59:01 +0000 (09:59 +0200)]
proc_cpuview: clean up find_or_create_proc_stat_node()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:56:31 +0000 (09:56 +0200)]
proc_cpuview: clean up prune_proc_stat_list()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:52:53 +0000 (09:52 +0200)]
proc_cpuview: clean up expand_proc_stat_node()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:50:18 +0000 (09:50 +0200)]
proc_cpuview: use correct comment style
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:48:55 +0000 (09:48 +0200)]
proc_cpuview: cleanup add_proc_stat_node()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:35:37 +0000 (09:35 +0200)]
proc_cpuview: reduce variable scope in cpuview_free_head()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:35:16 +0000 (09:35 +0200)]
proc_cpuview: use more descriptive labels in add_proc_stat_node()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Wed, 10 Jun 2020 07:23:33 +0000 (09:23 +0200)]
proc_cpuview: cleanup new_proc_stat_node()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 9 Jun 2020 13:38:15 +0000 (15:38 +0200)]
proc_fuse: more swap tweaks
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 9 Jun 2020 12:30:04 +0000 (14:30 +0200)]
proc_cpuview: tweak cpuacct.percpu_usage fallback
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Tue, 9 Jun 2020 09:29:25 +0000 (11:29 +0200)]
proc_fuse: cap swap to global values
Closes: #412.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 8 Jun 2020 22:05:48 +0000 (00:05 +0200)]
proc_fuse: don't cause invalid swap values
Closes: #412.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Mon, 8 Jun 2020 21:31:35 +0000 (23:31 +0200)]
proc_fuse: improve swap calculation a little
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Christian Brauner [Fri, 5 Jun 2020 15:03:32 +0000 (17:03 +0200)]
utils: don't leak fds in in_same_namespace()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>