opt_set(opts, nochanges, true);
opt_set(opts, norecovery, true);
+ opt_set(opts, read_only, true);
opt_set(opts, degraded, true);
opt_set(opts, errors, BCH_ON_ERROR_continue);
opt_set(opts, fix_errors, FSCK_FIX_yes);
if (!argc)
die("Please supply device(s) to open");
- struct bch_fs *c = bch2_fs_open(argv, argc, opts);
+ darray_str devs = get_or_split_cmdline_devs(argc, argv);
+
+ struct bch_fs *c = bch2_fs_open(devs.data, devs.nr, opts);
if (IS_ERR(c))
die("error opening %s: %s", argv[0], bch2_err_str(PTR_ERR(c)));