git: e1e6daa8cf8e - stable/12 - linux: silence renameat2 flags warning

Dmitry Chagin dchagin at FreeBSD.org
Thu Jun 10 09:31:07 UTC 2021


The branch stable/12 has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=e1e6daa8cf8e385a0c94c5275296252488646615

commit e1e6daa8cf8e385a0c94c5275296252488646615
Author:     Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2020-10-26 18:03:50 +0000
Commit:     Dmitry Chagin <dchagin at FreeBSD.org>
CommitDate: 2021-06-10 09:28:35 +0000

    linux: silence renameat2 flags warning
    
    Hogs the console while building the Linux kernel in a Ubuntu Focal jail.
    
    (cherry picked from commit fe76bef462048f9beb3bffd448ae1adb01969594)
---
 sys/compat/linux/linux_file.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 0b7efb6fa964..ae7dbe76c96d 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -715,8 +715,16 @@ linux_renameat2(struct thread *td, struct linux_renameat2_args *args)
 		    args->flags & (LINUX_RENAME_NOREPLACE |
 		    LINUX_RENAME_WHITEOUT))
 			return (EINVAL);
+#if 0
+		/*
+		 * This spams the console on Ubuntu Focal.
+		 *
+		 * What's needed here is a general mechanism to let users know
+		 * about missing features without hogging the system.
+		 */
 		linux_msg(td, "renameat2 unsupported flags 0x%x",
 		    args->flags);
+#endif
 		return (EINVAL);
 	}
 


More information about the dev-commits-src-all mailing list