Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'locks-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux

Pull mandatory file locking deprecation warning from Jeff Layton:
"As discussed on the list, this patch just adds a new warning for folks
who still have mandatory locking enabled and actually mount with '-o
mand'. I'd like to get this in for v5.14 so we can push this out into
stable kernels and hopefully reach folks who have mounts with -o mand.

For now, I'm operating under the assumption that we'll fully remove
this support in v5.15, but we can move that out if any legitimate
users of this facility speak up between now and then"

* tag 'locks-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux:
fs: warn about impending deprecation of mandatory locks

+5 -1
+5 -1
fs/namespace.c
··· 1716 1716 } 1717 1717 1718 1718 #ifdef CONFIG_MANDATORY_FILE_LOCKING 1719 - static inline bool may_mandlock(void) 1719 + static bool may_mandlock(void) 1720 1720 { 1721 + pr_warn_once("======================================================\n" 1722 + "WARNING: the mand mount option is being deprecated and\n" 1723 + " will be removed in v5.15!\n" 1724 + "======================================================\n"); 1721 1725 return capable(CAP_SYS_ADMIN); 1722 1726 } 1723 1727 #else