blockdev-util: Introduce fd_get_whole_disk()

Extracted from find_devno() in udevadm-lock.c.
This commit is contained in:
Daan De Meyer
2022-08-03 20:55:00 +02:00
parent 2d2efed2ee
commit 26aa4800f8
3 changed files with 56 additions and 39 deletions
+3
View File
@@ -27,3 +27,6 @@ int blockdev_partscan_enabled(int fd);
int fd_is_encrypted(int fd);
int path_is_encrypted(const char *path);
int fd_get_whole_disk(int fd, bool backing, dev_t *ret);
int path_get_whole_disk(const char *path, bool backing, dev_t *ret);