diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-12-23 19:23:58 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-12-02 10:05:09 +0100 |
commit | e08f94acf589203b12cf6c058422916d3e4186bb (patch) | |
tree | f9120aa9cd7fb5389b7b36d961de0b850a1823cc /src/shared/loop-util.h | |
parent | cb515608030fe05f4a46ed32e1cd30aaca6e3381 (diff) | |
download | systemd-e08f94acf589203b12cf6c058422916d3e4186bb.tar.gz |
loop-util: accept loopback flags when creating loopback device
This way callers can choose if they want partition scanning or not.
Diffstat (limited to 'src/shared/loop-util.h')
-rw-r--r-- | src/shared/loop-util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/loop-util.h b/src/shared/loop-util.h index d78466c5ee..c881a43cdc 100644 --- a/src/shared/loop-util.h +++ b/src/shared/loop-util.h @@ -14,8 +14,8 @@ struct LoopDevice { bool relinquished; }; -int loop_device_make(int fd, int open_flags, LoopDevice **ret); -int loop_device_make_by_path(const char *path, int open_flags, LoopDevice **ret); +int loop_device_make(int fd, int open_flags, uint32_t loop_flags, LoopDevice **ret); +int loop_device_make_by_path(const char *path, int open_flags, uint32_t loop_flags, LoopDevice **ret); LoopDevice* loop_device_unref(LoopDevice *d); DEFINE_TRIVIAL_CLEANUP_FUNC(LoopDevice*, loop_device_unref); |