]> git.proxmox.com Git - mirror_lxcfs.git/log
mirror_lxcfs.git
3 years agoMerge pull request #486 from brauner/2021-10-11.fixes
Stéphane Graber [Mon, 11 Oct 2021 14:30:23 +0000 (10:30 -0400)]
Merge pull request #486 from brauner/2021-10-11.fixes

cpuview: log non-fatal error in verbose mode only

3 years agocpuview: log non-fatal error in verbose mode only
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>
3 years agoMerge pull request #485 from mtstickney/proc_meminfo_slab_padding
Christian Brauner [Mon, 11 Oct 2021 08:12:50 +0000 (10:12 +0200)]
Merge pull request #485 from mtstickney/proc_meminfo_slab_padding

Fix padding for Slab entry in /proc/meminfo

3 years agoFix padding for Slab entry in /proc/meminfo
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>
3 years agoMerge pull request #484 from brauner/2021-10-07.fixes
Stéphane Graber [Thu, 7 Oct 2021 15:48:38 +0000 (11:48 -0400)]
Merge pull request #484 from brauner/2021-10-07.fixes

lxcfs: fix version and usage handling

3 years agobuild: generate lxcfs.spec file
Christian Brauner [Thu, 7 Oct 2021 13:21:52 +0000 (15:21 +0200)]
build: generate lxcfs.spec file

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agolxcfs: fix version and usage handling
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>
3 years agoMerge pull request #483 from Sn0rt/bugfix/version-loss
Christian Brauner [Thu, 7 Oct 2021 08:30:09 +0000 (10:30 +0200)]
Merge pull request #483 from Sn0rt/bugfix/version-loss

Bugfix: fix lxcfs --version or -v loss

3 years agolxcfs: fix lxcfs CLI -v and no arg output
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>
3 years agoMerge pull request #481 from brauner/2021-09-23.fixes
Stéphane Graber [Thu, 23 Sep 2021 09:46:48 +0000 (05:46 -0400)]
Merge pull request #481 from brauner/2021-09-23.fixes

README: update build instructions

3 years agoREADME: update build instructions
Christian Brauner [Thu, 23 Sep 2021 09:10:52 +0000 (11:10 +0200)]
README: update build instructions

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agoMerge pull request #479 from moweiraul/master
Stéphane Graber [Mon, 20 Sep 2021 10:29:07 +0000 (06:29 -0400)]
Merge pull request #479 from moweiraul/master

fix  package name

3 years agoREADME: Fix package name
moweiraul [Mon, 20 Sep 2021 09:48:33 +0000 (17:48 +0800)]
README: Fix package name

Signed-off-by: Mowei Jiang <moweiraul@gmail.com>
3 years agoMerge pull request #477 from brauner/2021-09-14.fixes
Stéphane Graber [Tue, 14 Sep 2021 13:17:10 +0000 (09:17 -0400)]
Merge pull request #477 from brauner/2021-09-14.fixes

build: improvements

3 years agobuild: remove pointless prefixdir validation
Christian Brauner [Tue, 14 Sep 2021 08:32:31 +0000 (10:32 +0200)]
build: remove pointless prefixdir validation

Meson will handle this internall and treat a non-absolute path as an
error.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agobuild: require fuse >= 2.6
Christian Brauner [Tue, 14 Sep 2021 08:26:28 +0000 (10:26 +0200)]
build: require fuse >= 2.6

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agobuild: use correct minimal meson version requirement
Christian Brauner [Tue, 14 Sep 2021 08:23:10 +0000 (10:23 +0200)]
build: use correct minimal meson version requirement

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agobuild: introduce common dependency variable
Christian Brauner [Tue, 14 Sep 2021 08:17:45 +0000 (10:17 +0200)]
build: introduce common dependency variable

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agobuild: remove -shared
Christian Brauner [Tue, 14 Sep 2021 08:16:09 +0000 (10:16 +0200)]
build: remove -shared

This is already handled by the shared_library() method.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agobuild: use dependency() for fuse detection
Christian Brauner [Tue, 14 Sep 2021 08:14:39 +0000 (10:14 +0200)]
build: use dependency() for fuse detection

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agobuild: remove -std=gnu11
Christian Brauner [Tue, 14 Sep 2021 08:05:48 +0000 (10:05 +0200)]
build: remove -std=gnu11

It is already set in default_options.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agoMerge pull request #476 from brauner/2021-09-13.fixes
Stéphane Graber [Mon, 13 Sep 2021 12:39:54 +0000 (08:39 -0400)]
Merge pull request #476 from brauner/2021-09-13.fixes

build: fixes

3 years agobuild: fix data directories
Christian Brauner [Mon, 13 Sep 2021 08:38:47 +0000 (10:38 +0200)]
build: fix data directories

Fixes: #475
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agobuild: move some options to default_options
Christian Brauner [Mon, 13 Sep 2021 08:27:07 +0000 (10:27 +0200)]
build: move some options to default_options

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agoMerge pull request #474 from brauner/2021-09-01.meson
Stéphane Graber [Thu, 2 Sep 2021 15:42:26 +0000 (11:42 -0400)]
Merge pull request #474 from brauner/2021-09-01.meson

meson: add meson support

3 years agobuild: remove autotools
Christian Brauner [Thu, 2 Sep 2021 14:46:00 +0000 (16:46 +0200)]
build: remove autotools

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agogithub: fix workflows for meson
Christian Brauner [Thu, 2 Sep 2021 15:15:17 +0000 (17:15 +0200)]
github: fix workflows for meson

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agobuild: add meson
Christian Brauner [Thu, 2 Sep 2021 15:06:10 +0000 (17:06 +0200)]
build: add meson

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agotests: fix build warnings
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>
3 years agotests: rely on config.h only for fuse versioning
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>
3 years agoproc_cpuview: fix unused variable warning
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>
3 years agomacro: fix bracket warnings in non-debug mode
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>
3 years agotree-wide: fix some ifdef checks
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>
3 years agotree-wide: fix type comparisons
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>
3 years agotree-wide: fix prototypes
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>
3 years agotree-wide: fix fuse header inclusion
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>
3 years agotree-wide: include own header file first
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>
3 years agosrc: rely on config.h for fuse version
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>
3 years agoMerge pull request #473 from brauner/2021-08-31.fixes
Stéphane Graber [Tue, 31 Aug 2021 14:03:33 +0000 (10:03 -0400)]
Merge pull request #473 from brauner/2021-08-31.fixes

proc_cpuview: unlock mutex in all error paths

3 years agoproc_cpuview: unlock mutex in all error paths
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>
3 years agoMerge pull request #468 from brauner/2021-06-15.fixes
Wolfgang Bumiller [Tue, 15 Jun 2021 08:27:11 +0000 (10:27 +0200)]
Merge pull request #468 from brauner/2021-06-15.fixes

cgroup_fuse: replace potentially problematic terminology

3 years agocgroup_fuse: replace potentially problematic terminology
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>
3 years agoMerge pull request #467 from simondeziel/shellcheck
Christian Brauner [Wed, 2 Jun 2021 13:00:31 +0000 (15:00 +0200)]
Merge pull request #467 from simondeziel/shellcheck

lxc.mount.hook: shellcheck fixes

3 years agolxc.mount.hook: reduce calls to basename
Simon Deziel [Wed, 2 Jun 2021 12:54:08 +0000 (08:54 -0400)]
lxc.mount.hook: reduce calls to basename

Signed-off-by: Simon Deziel <simon@sdeziel.info>
3 years agolxc.mount.hook: make shellcheck clean
Simon Deziel [Wed, 2 Jun 2021 12:50:16 +0000 (08:50 -0400)]
lxc.mount.hook: make shellcheck clean

Signed-off-by: Simon Deziel <simon@sdeziel.info>
3 years agoMerge pull request #466 from brauner/2021-05-31.fixes
Stéphane Graber [Mon, 31 May 2021 15:13:03 +0000 (11:13 -0400)]
Merge pull request #466 from brauner/2021-05-31.fixes

proc_fuse: don't spam log needlessly

3 years agoproc_fuse: don't spam log needlessly
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>
3 years agoMerge pull request #465 from brauner/2021-05-26.sysfs.cpu
Stéphane Graber [Thu, 27 May 2021 18:50:20 +0000 (14:50 -0400)]
Merge pull request #465 from brauner/2021-05-26.sysfs.cpu

sys: virtualize /sys/devices/system/cpu/cpu*

3 years agosysfs_fuse: account for liblxcfs reload with identical lxcfs binary
Christian Brauner [Thu, 27 May 2021 15:23:06 +0000 (17:23 +0200)]
sysfs_fuse: account for liblxcfs reload with identical lxcfs binary

This makes LXCFS upgradable from the old-style
/sys/devices/system/cpu/online virtualization to the new full
/sys/devices/system/cpu virtualization.

The special case this is handling is an upgrade where the LXCFS binary
itself is not replaced, only the liblxcfs shared library is replaced.

The original patch earlier in this series added several new fuse methods
e.g. .readlink() and .opendir() that required changes in the lxcfs.c
code itself while also modifying existing ones like .open() and .read().
This leads to inconsistency as .open() would end up being resolved to
the modified sys_open() implementation whereas .readlink() doesn't exist
as .readlink() wasn't registered with fuse. This causes the
virtualization to be broken.

Abuse the .init() method of fuse to indicate the sys_cpu works and also
make it possible to version struct lxcfs_opts.

If liblxcfs is reloaded virtualization of /sys/devices/system/cpu/online
will continue to work as before. In order to gain access to the new full
/sys/devices/system/cpu/ virtualzation a restart is needed.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agobindings: fix struct lxcfs_opts by making it versioned
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>
3 years agocpuset_parse: drop unneeded dependencies
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>
3 years agosysfs_fuse: create proper directories
Christian Brauner [Wed, 26 May 2021 16:13:24 +0000 (18:13 +0200)]
sysfs_fuse: create proper directories

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agobindings: introduce lxcfs_has_opt() helper
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>
3 years agolxcfs: remove obsolete logging
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>
3 years agolxc.mount.hook: adapt to new /sys/devices/system/cpu virtualization
Christian Brauner [Wed, 26 May 2021 11:26:04 +0000 (13:26 +0200)]
lxc.mount.hook: adapt to new /sys/devices/system/cpu virtualization

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agosys: rework get_st_mode()
Christian Brauner [Wed, 26 May 2021 09:15:27 +0000 (11:15 +0200)]
sys: rework get_st_mode()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agosys: virtualize /sys/devices/system/cpu/cpu*
Zhiwei Li [Tue, 18 May 2021 07:03:01 +0000 (15:03 +0800)]
sys: virtualize /sys/devices/system/cpu/cpu*

Signed-off-by: Zhiwei Li <cyzz_a102@126.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
3 years agoMerge pull request #461 from brauner/2021-05-13.fixes
Stéphane Graber [Fri, 14 May 2021 12:55:27 +0000 (08:55 -0400)]
Merge pull request #461 from brauner/2021-05-13.fixes

lxcfs: rework option parsing

3 years agolxcfs: rework argument parsing
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>
3 years agoMerge pull request #451 from stgraber/master
Christian Brauner [Wed, 17 Mar 2021 21:35:30 +0000 (22:35 +0100)]
Merge pull request #451 from stgraber/master

Switch to Github Actions

3 years agoSwitch to Github Actions
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>
3 years agoMerge pull request #449 from alliedtelesis/fix_fuse3_file_size
Christian Brauner [Wed, 17 Mar 2021 14:56:02 +0000 (15:56 +0100)]
Merge pull request #449 from alliedtelesis/fix_fuse3_file_size

Determine the file size from the current system file size

3 years agoDetermine the file size from the current system file size
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>
3 years agoMerge pull request #443 from brauner/2021-01-28/fixes
Stéphane Graber [Thu, 28 Jan 2021 13:23:49 +0000 (08:23 -0500)]
Merge pull request #443 from brauner/2021-01-28/fixes

proc_cpuview: release lock before returning

3 years agoproc_cpuview: release lock before returning
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>
3 years agoMerge pull request #441 from timgates42/bugfix_typo_through
Christian Brauner [Fri, 18 Dec 2020 22:56:49 +0000 (23:56 +0100)]
Merge pull request #441 from timgates42/bugfix_typo_through

docs: fix simple typo, throuh -> through

3 years agodocs: fix simple typo, throuh -> through
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>
3 years agoMerge pull request #440 from loyou/master
Christian Brauner [Thu, 10 Dec 2020 17:51:58 +0000 (18:51 +0100)]
Merge pull request #440 from loyou/master

proc_fuse: add /proc/slabinfo with slab accounting memcg

3 years agoproc_fuse: add /proc/slabinfo with slab accounting memcg
Feng Sun [Thu, 10 Dec 2020 09:30:54 +0000 (17:30 +0800)]
proc_fuse: add /proc/slabinfo with slab accounting memcg

Signed-off-by: Feng Sun <loyou85@gmail.com>
4 years agoMerge pull request #438 from stgraber/master
Christian Brauner [Thu, 5 Nov 2020 21:05:30 +0000 (22:05 +0100)]
Merge pull request #438 from stgraber/master

Rework swap memory management

4 years agoswap: Remove now unused variable
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>
4 years agoswap: Make /proc/swaps match /proc/meminfo
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>
4 years agoswap: Tweak meminfo logic
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>
4 years agoswap: Only report usage when swappiness is 0
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>
4 years agoswap: Fix usage reporting
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>
4 years agocgroups: Add get_memory_swappiness
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>
4 years agoMerge pull request #436 from stgraber/master
Christian Brauner [Thu, 5 Nov 2020 19:27:01 +0000 (20:27 +0100)]
Merge pull request #436 from stgraber/master

README: clarify SWAP

4 years agoREADME: clarify SWAP
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>
4 years agoMerge pull request #435 from brauner/2020-11-03/fixes
Stéphane Graber [Tue, 3 Nov 2020 22:44:59 +0000 (17:44 -0500)]
Merge pull request #435 from brauner/2020-11-03/fixes

meminfo: show host swap values when no limit or equal limits are set

4 years agomeminfo: show host swap values when no limit or equal limits are set
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>
4 years agoMerge pull request #431 from brauner/2020-09-08/diskstats
Stéphane Graber [Tue, 8 Sep 2020 22:16:52 +0000 (18:16 -0400)]
Merge pull request #431 from brauner/2020-09-08/diskstats

diskstats: support new fields in 4.18+ kernels

4 years agodiskstats: support new fields in 4.18+ kernels
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>
4 years agoMerge pull request #426 from alliedtelesis/add_fuse3_support
Christian Brauner [Mon, 7 Sep 2020 07:40:37 +0000 (09:40 +0200)]
Merge pull request #426 from alliedtelesis/add_fuse3_support

Add support for fuse3

4 years agoSet the file size to 4k
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>
4 years agorename fuse_compat.h to avoid conflict with system header
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>
4 years agoUpdate options passed to fuse_main
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>
4 years agoMerge pull request #428 from devplayer0/fix-dirname
Christian Brauner [Fri, 4 Sep 2020 15:39:26 +0000 (17:39 +0200)]
Merge pull request #428 from devplayer0/fix-dirname

Fix `get_min_memlimit()` on non-glibc

4 years agoFix `get_min_memlimit()` on non-glibc
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>
4 years agoAdd support for fuse3
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>
4 years agoMerge pull request #425 from ncleaton/master
Christian Brauner [Wed, 2 Sep 2020 10:33:37 +0000 (12:33 +0200)]
Merge pull request #425 from ncleaton/master

fix epoll create socket error message

4 years agofix epoll create socket error message
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>
4 years agoMerge pull request #423 from PeterRK/bugfix
Christian Brauner [Sat, 18 Jul 2020 12:28:42 +0000 (14:28 +0200)]
Merge pull request #423 from PeterRK/bugfix

fix type mismatch

4 years agofix type mismatch
Ruan Kunliang [Sat, 18 Jul 2020 12:16:12 +0000 (20:16 +0800)]
fix type mismatch

Signed-off-by: Ruan Kunliang <PeterRK@126.com>
4 years agoMerge pull request #421 from brauner/2020-07-06/fixes
Stéphane Graber [Mon, 6 Jul 2020 10:26:47 +0000 (06:26 -0400)]
Merge pull request #421 from brauner/2020-07-06/fixes

bindings: provide lxcfs_clone() as wrapper around lxcfs_raw_clone()

4 years agoproc_fuse: remove unused variable
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>
4 years ago.travis: use RTLD_NOW for tests
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>
4 years agobindings: provide lxcfs_clone() as wrapper around lxcfs_raw_clone()
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>
4 years agocgroups: replace leftover reference to legacy terms
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>
4 years agocgroups: update terminology
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>
4 years agobindings: update terminology
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>