linux/Documentation
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
..
2016-05-31 16:41:55 +08:00
2016-10-07 20:19:31 -07:00
2016-10-11 15:06:33 -07:00
2016-07-26 10:35:31 +02:00
2021-06-03 08:23:27 +02:00
2021-06-03 08:23:27 +02:00
2021-06-03 08:23:27 +02:00
2016-10-14 15:17:12 -07:00
2016-06-30 13:07:33 -06:00
2019-06-11 12:22:43 +02:00
2016-06-07 22:57:10 +02:00
2016-06-07 22:57:10 +02:00
2016-09-20 18:46:36 -06:00
2016-05-17 14:48:04 +02:00
2016-04-28 08:02:36 -06:00