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_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c_src/cmd_format.c') diff --git a/c_src/cmd_format.c b/c_src/cmd_format.c index 6534469f..ac48454f 100644 --- a/c_src/cmd_format.c +++ b/c_src/cmd_format.c @@ -275,7 +275,7 @@ int cmd_format(int argc, char *argv[]) } darray_for_each(devices, dev) { - int ret = open_for_format(dev, force); + int ret = open_for_format(dev, 0, force); if (ret) die("Error opening %s: %s", dev->path, strerror(-ret)); } -- cgit v1.2.3