aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-10-26 18:03:50 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2021-06-10 09:28:35 +0000
commite1e6daa8cf8e385a0c94c5275296252488646615 (patch)
tree44916515c5f50cd1549edfb97d60fd3fc566d5f8
parent4d0dc71a7bf0e5ffd2a4a60244f915642d3d2899 (diff)
downloadsrc-e1e6daa8cf8e385a0c94c5275296252488646615.tar.gz
src-e1e6daa8cf8e385a0c94c5275296252488646615.zip
linux: silence renameat2 flags warning
Hogs the console while building the Linux kernel in a Ubuntu Focal jail. (cherry picked from commit fe76bef462048f9beb3bffd448ae1adb01969594)
-rw-r--r--sys/compat/linux/linux_file.c8
1 files changed, 8 insertions, 0 deletions
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);
}