Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06a2ae56 authored by David Howells's avatar David Howells Committed by Al Viro
Browse files

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: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e7582e16
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@

#include <trace/events/cgroup.h>

#define cg_invalf(fc, fmt, ...) ({ pr_err(fmt, ## __VA_ARGS__); -EINVAL; })
#define cg_invalf(fc, fmt, ...) invalf(fc, fmt, ## __VA_ARGS__)

/*
 * pidlists linger the following amount before being destroyed.  The goal