diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-05-21 18:04:04 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-12-02 10:06:12 +0100 |
commit | 441ec80468d17a548c8c85e39a0b0e74b75f2650 (patch) | |
tree | 2fecfd97547074e3ed6d0118066288ed9c13fd54 /src/shared/loop-util.h | |
parent | c37878fcedd9c767db766ddfdeefc3f5281377ef (diff) | |
download | systemd-441ec80468d17a548c8c85e39a0b0e74b75f2650.tar.gz |
loop-util: add api for locking the block device with flock()
Diffstat (limited to 'src/shared/loop-util.h')
-rw-r--r-- | src/shared/loop-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/loop-util.h b/src/shared/loop-util.h index e5a0ae75b8..5156b46ad6 100644 --- a/src/shared/loop-util.h +++ b/src/shared/loop-util.h @@ -28,3 +28,5 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(LoopDevice*, loop_device_unref); void loop_device_relinquish(LoopDevice *d); int loop_device_refresh_size(LoopDevice *d, uint64_t offset, uint64_t size); + +int loop_device_flock(LoopDevice *d, int operation); |