OSDN Git Service

vfs: Introduce logging functions
authorDavid Howells <dhowells@redhat.com>
Thu, 1 Nov 2018 23:07:23 +0000 (23:07 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 30 Jan 2019 22:44:28 +0000 (17:44 -0500)
commitc6b82263f9c6e745eb4c5dfc2578d147c4cd7604
treeea5b8ed22b446c4a23f81e07e1d8e23ae7da6702
parentf3a09c92018a91ad0981146a4ac59414f814d801
vfs: Introduce logging functions

Introduce a set of logging functions through which informational messages,
warnings and error messages incurred by the mount procedure can be logged
and, in a future patch, passed to userspace instead by way of the
filesystem configuration context file descriptor.

There are four functions:

 (1) infof(const char *fmt, ...);

     Logs an informational message.

 (2) warnf(const char *fmt, ...);

     Logs a warning message.

 (3) errorf(const char *fmt, ...);

     Logs an error message.

 (4) invalf(const char *fmt, ...);

     As errof(), but returns -EINVAL so can be used on a return statement.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/fs_context.h