From owner-dev-commits-src-branches@freebsd.org Thu Jun 10 09:31:06 2021 Return-Path: Delivered-To: dev-commits-src-branches@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D145C646AA5; Thu, 10 Jun 2021 09:31:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G0zHZ4jMhz3lWx; Thu, 10 Jun 2021 09:31:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 74BAD5490; Thu, 10 Jun 2021 09:31:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 15A9V6bX030588; Thu, 10 Jun 2021 09:31:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 15A9V6VE030587; Thu, 10 Jun 2021 09:31:06 GMT (envelope-from git) Date: Thu, 10 Jun 2021 09:31:06 GMT Message-Id: <202106100931.15A9V6VE030587@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: e1e6daa8cf8e - stable/12 - linux: silence renameat2 flags warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: e1e6daa8cf8e385a0c94c5275296252488646615 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-branches@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the stable branches of the FreeBSD src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2021 09:31:07 -0000 The branch stable/12 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=e1e6daa8cf8e385a0c94c5275296252488646615 commit e1e6daa8cf8e385a0c94c5275296252488646615 Author: Mateusz Guzik AuthorDate: 2020-10-26 18:03:50 +0000 Commit: Dmitry Chagin 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); }