diff options
author | David Howells <dhowells@redhat.com> | 2018-11-02 00:07:26 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-02-28 09:29:38 +0100 |
commit | 06a2ae56b5b88fa57cd56e0b99bd874135efdf58 (patch) | |
tree | d6fdcf9c7832198c307cce9242ef306ba20b5d8b /fs/super.c | |
parent | vfs: Implement logging through fs_context (diff) | |
download | linux-06a2ae56b5b88fa57cd56e0b99bd874135efdf58.tar.xz linux-06a2ae56b5b88fa57cd56e0b99bd874135efdf58.zip |
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 <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/super.c b/fs/super.c index 0ebb5c11fa56..583a0124bc39 100644 --- a/fs/super.c +++ b/fs/super.c @@ -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; |