blockdev-util: add fd-based flavour of get_block_device()

This commit is contained in:
Lennart Poettering
2021-07-08 09:29:18 +02:00
parent 011d129cf4
commit 0bfef8b46f
2 changed files with 16 additions and 7 deletions
+1
View File
@@ -15,6 +15,7 @@
int block_get_whole_disk(dev_t d, dev_t *ret);
int block_get_originating(dev_t d, dev_t *ret);
int get_block_device_fd(int fd, dev_t *ret);
int get_block_device(const char *path, dev_t *dev);
int get_block_device_harder(const char *path, dev_t *dev);