mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
vfs: Add some logging to the core users of the fs_context log
Add some logging to the core users of the fs_context log so that information can be extracted from them as to the reason for failure. Signed-off-by: David Howells <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
e7582e16a1
commit
06a2ae56b5
2 changed files with 4 additions and 2 deletions
|
|
@ -1467,8 +1467,10 @@ int vfs_get_tree(struct fs_context *fc)
|
|||
struct super_block *sb;
|
||||
int error;
|
||||
|
||||
if (fc->fs_type->fs_flags & FS_REQUIRES_DEV && !fc->source)
|
||||
if (fc->fs_type->fs_flags & FS_REQUIRES_DEV && !fc->source) {
|
||||
errorf(fc, "Filesystem requires source device");
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
if (fc->root)
|
||||
return -EBUSY;
|
||||
|
|
|
|||
Loading…
Reference in a new issue