summaryrefslogtreecommitdiff
path: root/tools-util.h
diff options
context:
space:
mode:
authorHunter Shaffer <huntershaffer182456@gmail.com>2023-08-29 18:05:09 -0400
committerHunter Shaffer <huntershaffer182456@gmail.com>2023-10-08 21:06:07 -0400
commit9f98746bfcd5159307237f7a491fd79db02d8bf3 (patch)
tree10af18e18b44adf4cb8456d254aa5e2c44df9216 /tools-util.h
parentb2ffa12074f1a6060b715e0891c1efb3ee64be68 (diff)
Change open_for_format to the block io api
Upcoming patch will add device benchmarking at format time, which needs the bio API. Signed-off-by: Hunter Shaffer <huntershaffer182456@gmail.com>
Diffstat (limited to 'tools-util.h')
-rw-r--r--tools-util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools-util.h b/tools-util.h
index dafd7916..7a04c108 100644
--- a/tools-util.h
+++ b/tools-util.h
@@ -64,7 +64,8 @@ ssize_t read_string_list_or_die(const char *, const char * const[],
u64 get_size(int);
unsigned get_blocksize(int);
-int open_for_format(const char *, bool);
+struct dev_opts;
+int open_for_format(struct dev_opts *, bool);
bool ask_yn(void);