Jeff Layton c5e63107d1 locks: print a warning when mount fails due to lack of "mand" support
[ Upstream commit df2474a22c42ce419b67067c52d71da06c385501 ]

Since 9e8925b67a ("locks: Allow disabling mandatory locking at compile
time"), attempts to mount filesystems with "-o mand" will fail.
Unfortunately, there is no other indiciation of the reason for the
failure.

Change how the function is defined for better readability. When
CONFIG_MANDATORY_FILE_LOCKING is disabled, printk a warning when
someone attempts to mount with -o mand.

Also, add a blurb to the mandatory-locking.txt file to explain about
the "mand" option, and the behavior one should expect when it is
disabled.

Reported-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-08-26 08:37:29 -04:00
..
2014-01-24 10:55:21 -06:00
2015-07-23 20:59:40 +02:00
2015-07-23 20:59:40 +02:00
2015-10-29 12:57:48 -05:00
2016-08-02 15:39:14 -04:00
2016-09-01 11:12:00 +02:00
2015-05-18 11:23:07 +02:00
2014-12-29 15:40:18 -07:00
2016-03-09 15:33:06 -07:00
2016-09-19 09:38:25 +10:00