summaryrefslogtreecommitdiff
path: root/src/shared/blockdev-util.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-09-06 04:46:04 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-09-07 20:45:20 +0900
commit46c3a288454a45a7fefb8615188e61f6ce62490f (patch)
tree3aa6655334d90ee3b2d90d8f5cb53713501b3431 /src/shared/blockdev-util.h
parentcc5bae6cc27ba85a6efa5331fabb4c7447186e52 (diff)
downloadsystemd-46c3a288454a45a7fefb8615188e61f6ce62490f.tar.gz
blockdev-util: make block_device_remove_all_partitions() take sd_device object
Then, it is not necessary to recreate sd_device object when we already have.
Diffstat (limited to 'src/shared/blockdev-util.h')
-rw-r--r--src/shared/blockdev-util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/blockdev-util.h b/src/shared/blockdev-util.h
index 2f1f347d09..e63c447331 100644
--- a/src/shared/blockdev-util.h
+++ b/src/shared/blockdev-util.h
@@ -3,6 +3,8 @@
#include <sys/types.h>
+#include "sd-device.h"
+
#include "macro.h"
#include "stdio-util.h"
#include "string-util.h"
@@ -34,4 +36,4 @@ int path_get_whole_disk(const char *path, bool backing, dev_t *ret);
int block_device_add_partition(int fd, const char *name, int nr, uint64_t start, uint64_t size);
int block_device_remove_partition(int fd, const char *name, int nr);
int block_device_resize_partition(int fd, int nr, uint64_t start, uint64_t size);
-int block_device_remove_all_partitions(int fd);
+int block_device_remove_all_partitions(sd_device *dev, int fd);