blockdev: add helper for locking whole block device

This commit is contained in:
Lennart Poettering
2020-05-18 18:41:56 +02:00
parent 58dfbfbdd6
commit ac83e5aeca
2 changed files with 29 additions and 0 deletions
+2
View File
@@ -18,3 +18,5 @@ int block_get_originating(dev_t d, dev_t *ret);
int get_block_device(const char *path, dev_t *dev);
int get_block_device_harder(const char *path, dev_t *dev);
int lock_whole_block_device(dev_t devt, int operation);