[lxc-devel] [lxc/lxc] ec74f3: lxccontainer: fix F_OFD_GETLK checks
GitHub
noreply at github.com
Tue Aug 14 13:49:25 UTC 2018
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: ec74f3f859dbe04a62e7dcb169ce6a5baf81841b
https://github.com/lxc/lxc/commit/ec74f3f859dbe04a62e7dcb169ce6a5baf81841b
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2018-08-14 (Tue, 14 Aug 2018)
Changed paths:
M src/lxc/lxccontainer.c
Log Message:
-----------
lxccontainer: fix F_OFD_GETLK checks
When we check whether an open file description lock has been taken on a file we
need to set the l_pid field to 0 otherwise the kernel will send back EINVAL.
Additionally, the kernel will not do pid translation and simply set the l_pid
value to -1.
Fixes https://discuss.linuxcontainers.org/t/container-deleted-or-stopped-when-lxc-ls-executed-concurrently/2439
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 27f39efa5d3cb4407668aa3a547b20d20783e793
https://github.com/lxc/lxc/commit/27f39efa5d3cb4407668aa3a547b20d20783e793
Author: Stéphane Graber <stgraber at stgraber.org>
Date: 2018-08-14 (Tue, 14 Aug 2018)
Changed paths:
M src/lxc/lxccontainer.c
Log Message:
-----------
Merge pull request #2526 from brauner/2018-08-14/fix_ongoing_create_check
lxccontainer: fix F_OFD_GETLK checks
Compare: https://github.com/lxc/lxc/compare/375121e4e082...27f39efa5d3c
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the lxc-devel
mailing list