summaryrefslogtreecommitdiff
path: root/c_src/tools-util.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-04-13 08:33:40 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-04-21 18:46:30 -0400
commitfee67d807bc36ff2cacb77286156798fd70e3f0c (patch)
tree3c05bd1237a6cdd731e651f8a9635b880e7bdfa7 /c_src/tools-util.h
parent8fae948d60dbdc53278013c8103651578aee8c12 (diff)
linux shim: implement BLK_OPEN_CREAT
this allows O_CREAT to be passed through, for the new image creation tool. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src/tools-util.h')
-rw-r--r--c_src/tools-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_src/tools-util.h b/c_src/tools-util.h
index d3d6b14b..27652b62 100644
--- a/c_src/tools-util.h
+++ b/c_src/tools-util.h
@@ -98,7 +98,7 @@ ssize_t read_string_list_or_die(const char *, const char * const[],
u64 get_size(int);
unsigned get_blocksize(int);
struct dev_opts;
-int open_for_format(struct dev_opts *, bool);
+int open_for_format(struct dev_opts *, blk_mode_t, bool);
bool ask_yn(void);