Jeff Layton 3cab951cf0 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:36:49 -04:00
..
2018-06-09 10:32:39 -07:00
2017-05-12 15:57:15 -07:00
2017-10-15 00:47:23 -04:00
2018-01-28 17:00:36 +11:00
2018-08-13 10:48:17 -07:00
2018-03-20 17:11:45 +01:00
2018-08-21 18:19:09 -07:00
2018-04-04 14:05:48 -04:00
2018-08-30 17:08:35 +02:00