From fee67d807bc36ff2cacb77286156798fd70e3f0c Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sun, 13 Apr 2025 08:33:40 -0400 Subject: 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 --- c_src/cmd_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c_src/cmd_device.c') diff --git a/c_src/cmd_device.c b/c_src/cmd_device.c index 40ac87c7..96c25310 100644 --- a/c_src/cmd_device.c +++ b/c_src/cmd_device.c @@ -104,7 +104,7 @@ static int cmd_device_add(int argc, char *argv[]) struct bchfs_handle fs = bcache_fs_open(fs_path); - int ret = open_for_format(&dev_opts, force); + int ret = open_for_format(&dev_opts, 0, force); if (ret) die("Error opening %s: %s", dev_opts.path, strerror(-ret)); -- cgit v1.2.3