]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount-util: add a helper that can add an idmap to an existing mount
authorLennart Poettering <lennart@poettering.net>
Tue, 27 Apr 2021 15:27:45 +0000 (17:27 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 May 2021 20:43:52 +0000 (22:43 +0200)
commit35fd355842f1764556da1988f4cca4a0d2cc6264
tree3253291e18f434c9c006918618ac235be5256581
parent58e13de5398c4b882e0dd45259d9d2d87adbcc5d
mount-util: add a helper that can add an idmap to an existing mount

This makes use of the new kernel 5.12 APIs to add an idmap to a mount
point. It does so by cloning the mountpoint, changing it, and then
unmounting the old mountpoint, replacing it later with the new one.
src/shared/mount-util.c
src/shared/mount-util.h