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)));