Files
linux/Documentation/filesystems
Jeff Layton 3cab951cf0 locks: print a warning when mount fails due to lack of "mand" support
[ Upstream commit df2474a22c ]

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
..
2014-01-24 10:55:21 -06:00
2017-05-12 15:57:15 -07:00
2005-04-16 15:20:36 -07:00
2017-10-15 00:47:23 -04:00
2018-01-28 17:00:36 +11:00
2015-07-23 20:59:40 +02:00
2018-08-13 10:48:17 -07:00
2018-03-20 17:11:45 +01:00
2012-05-10 11:45:31 +01:00
2011-11-04 12:01:48 -07:00
2008-07-26 12:00:05 -07:00
2018-04-04 14:05:48 -04:00
2016-03-09 15:33:06 -07:00
2006-11-30 04:58:40 +01:00
2006-12-07 08:39:44 -08:00
2007-02-12 09:48:40 -08:00
2018-08-30 17:08:35 +02:00