Skip to content

Commit 0f1f732

Browse files
author
Kent Overstreet
committed
bcachefs: Log mount failure error code
Signed-off-by: Kent Overstreet <[email protected]>
1 parent 8ed5878 commit 0f1f732

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/bcachefs/fs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,6 +2032,8 @@ static struct dentry *bch2_mount(struct file_system_type *fs_type,
20322032
__bch2_fs_stop(c);
20332033
deactivate_locked_super(sb);
20342034
err:
2035+
if (ret)
2036+
pr_err("error: %s", bch2_err_str(ret));
20352037
/*
20362038
* On an inconsistency error in recovery we might see an -EROFS derived
20372039
* errorcode (from the journal), but we don't want to return that to

0 commit comments

Comments
 (0)