diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-12-31 16:56:14 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-12-02 10:05:38 +0100 |
commit | 9dabc4fda57438c4f8d427cb7987b24503c83f5a (patch) | |
tree | 76df87cc272dc9b2d5997a1aebbb3dfb727c3b6a /src/shared/loop-util.h | |
parent | loop-util: accept loopback flags when creating loopback device (diff) | |
download | systemd-9dabc4fda57438c4f8d427cb7987b24503c83f5a.tar.xz systemd-9dabc4fda57438c4f8d427cb7987b24503c83f5a.zip |
loop-util: add API to refresh loopback device size and opening existing loopback block devices
Diffstat (limited to 'src/shared/loop-util.h')
-rw-r--r-- | src/shared/loop-util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/loop-util.h b/src/shared/loop-util.h index c881a43cdc..80a114f9d9 100644 --- a/src/shared/loop-util.h +++ b/src/shared/loop-util.h @@ -16,8 +16,11 @@ struct LoopDevice { 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); +int loop_device_open(const char *loop_path, int open_flags, LoopDevice **ret); LoopDevice* loop_device_unref(LoopDevice *d); DEFINE_TRIVIAL_CLEANUP_FUNC(LoopDevice*, loop_device_unref); void loop_device_relinquish(LoopDevice *d); + +int loop_device_refresh_size(LoopDevice *d); |