@gamezelda: Yes that is a known limitation. I didn't add a note here, because:
- It's a very special usecase.
- It is included in the top of the LXD forum post that I link to directly, so it's like reading the manual first (if you know what I mean).
Still I will clarify the original comment an bit.
For those interested in using overlayfs on top of shiftfs inside your container: It is also likely possible to put a patched version of the overlayfs-module into a dkms-package, so you don't have to rebuild the whole kernel.
Regarding the -git suffix: The situation here is not so easy. Essentially I use a specific file as a source, not the whole git repo. There are methods such as git-sparse-checkout etc., but:
- It's experimental.
- I don't know (haven't tested) whether it works with makepkg (I doubt it for now).
This leads to the situation that:
- I can't link to a specific commit (for stable version approach)
- The user will not be notified about updates (that are checked via the commit id) (for git approach).
Maybe this information is wrong and maybe there is a solution I don't know.
Assuming that it is correct, one could still argue that I should name it "shiftfs-dkms-git" etc. anyway; I will think about that some more.
Pinned Comments
G3ro commented on 2021-07-25 19:23 (UTC) (edited on 2022-07-18 21:10 (UTC) by G3ro)
Notes:
5.19.x is untested for now though.
For kernel version 5.15.x, see shiftfs-lts-dkms instead.
G3ro commented on 2020-09-29 20:07 (UTC) (edited on 2022-07-18 21:10 (UTC) by G3ro)
Details: shiftfs is a kernel filesystem for uid/gid-shifting.
It is used by LXD for example.
Note: The successor for shiftfs is available, see https://github.com/toby63/shiftfs-dkms#about for more information.
You find more details (including limitations etc.) in the official LXD forum:
https://discuss.linuxcontainers.org/t/trying-out-shiftfs/5155
https://discuss.linuxcontainers.org/t/lxd-usecases-of-shiftfs-volume-disk-share/7735
and in my Github repo: https://github.com/toby63/shiftfs-dkms
Report on the initial implementation in the Ubuntu Kernel repo:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1823186
Usage in LXD:
If you use the LXD package from the Arch Repos, shiftfs will be enabled by default.
You can check whether it is enabled with "lxc info" (look for:
shiftfs: "true"
).