11 Commits

Author SHA1 Message Date
Andrei Gherzan
cb91bc9930
utils: Add missing include on limits.h
This happens to not be an issue with glibc because it gets indirectly
included via dirent.h:

.. /usr/include/dirent.h
[...]
..... /usr/include/linux/limits.h

When using the musl libc implementation, that is not the case anymore
and the build fails.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
2022-07-13 12:05:29 +02:00
Andrei Gherzan
acbeef1bdf
utils: Deduplicate and reorder includes in utils.h
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
2022-07-13 12:04:13 +02:00
Giuseppe Scrivano
446e99e4c6
utils: fix double definition for _GNU_SOURCE
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2021-03-04 11:02:03 +01:00
Giuseppe Scrivano
3cb30d4c11
main: honor user.containers.override_stat
also honor user.containers.override_stat to override containers stat
override as it is set by containers/storage.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-11-06 13:19:51 +01:00
Giuseppe Scrivano
b8086b58fa
main: support writing uid/gid/mode to xattr
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-08-21 19:52:28 +02:00
Giuseppe Scrivano
5c7fc2856a
direct: move override_mode to utils
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-08-21 16:52:26 +02:00
Giuseppe Scrivano
fb8eb3300e
main: use openat2 where available
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-21 18:33:33 +02:00
Giuseppe Scrivano
9f6f90a6da
direct: use statx when available
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-10-20 22:06:40 +02:00
Giuseppe Scrivano
c2c2ac5b82
main: split the code in multiple files
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-10-20 19:44:20 +02:00
Giuseppe Scrivano
a4ebbc8361
main: give hint on debugging being disabled
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-07-23 16:14:34 +02:00
Giuseppe Scrivano
37d91db36e
fuse-overlayfs: start using GCC autocleanup
let's start using __attribute__((cleanup)), it helps to simplify
a lot of code, and hopefully avoid some bugs.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-02-17 20:44:50 +01:00