Commit 0f1f7324 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Log mount failure error code

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 8ed58789
...@@ -2032,6 +2032,8 @@ static struct dentry *bch2_mount(struct file_system_type *fs_type, ...@@ -2032,6 +2032,8 @@ static struct dentry *bch2_mount(struct file_system_type *fs_type,
__bch2_fs_stop(c); __bch2_fs_stop(c);
deactivate_locked_super(sb); deactivate_locked_super(sb);
err: err:
if (ret)
pr_err("error: %s", bch2_err_str(ret));
/* /*
* On an inconsistency error in recovery we might see an -EROFS derived * On an inconsistency error in recovery we might see an -EROFS derived
* errorcode (from the journal), but we don't want to return that to * errorcode (from the journal), but we don't want to return that to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment