loop-util: add new loop_device_make_by_path_memory() helper
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Dec 2022 11:45:48 +0000 (12:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Dec 2022 11:47:28 +0000 (12:47 +0100)
commitfcd8a19da8a4f6d24ad46fe4a11f8be50424e317
treeb053237f14e499fffea4c90d35619aa3123037ec
parent6bea3d8e0f076b27323daba89f46993cd1925f0d
loop-util: add new loop_device_make_by_path_memory() helper

This uses the new memfd_clone_fd() call to make an in-memory copy of
some file before setting up a loopback block device on it.
src/shared/loop-util.c
src/shared/loop-util.h