Propagate error instead of die()ing in bcache_fs_open_fallible

This commit is contained in:
beviu 2025-09-20 22:15:01 +02:00
parent 991fb55fc6
commit 454a6b9ade
No known key found for this signature in database
GPG Key ID: C6AAE70FD32E0112

View File

@ -559,7 +559,7 @@ read_super:
struct bch_sb_handle sb;
int ret = bch2_read_super(path, &opts, &sb);
if (ret)
die("Error opening %s: %s", path, strerror(-ret));
return ret;
fs->dev_idx = sb.sb->dev_idx;
uuid_str = buf;