From nobody Fri Mar 1 17:38:50 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tmb161qPfz5Cm0C; Fri, 1 Mar 2024 17:38:50 +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 4Tmb161JCkz4Y45; Fri, 1 Mar 2024 17:38:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709314730; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0iV4XhewpAluXIcOyyCvnED1jA3pH5iVvL96QRJRItQ=; b=fN7exxm8RlLbd64hnpDHo770+ydUIvtjdyxDOwPztXt/ZgfDYtZKa1n7eAQ180SfvBcOKU Ku/tUbBYAmXZnEHtmUOMK3lfEjtgePiFUIu0PlHdE9cHViFe7xMDjFWTJn2wBrYS1d0IxE dDT/5CyudabZa2R0g1loa771CkZDir4YFhVf7fOyIg6+NwM/xUuSPu/6Q3461nAVd7Rsnh qaZAlshiguurvZZLX0kZEIuSMtWU9aOXjBIVx/EJ3z8SgVYLKSn0Ez/k8SKM6xUQj0/YlU bLwFQ6K7CNpY/HhuCHWFNiuVvG0jprI+OSeJynHixJfc7dlFtCCD/xFfYpXgmQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709314730; a=rsa-sha256; cv=none; b=ZPgEskbCS3IO+M4Nq/IGzOOKgySa9hAStdZPTT36jQeOtUaSzTPv9YVVGzrPBEnBn8Lj8P MoYjz7VmPVy9yi8PkssyzaDsuk6oT1RJ6CkICUC6b19I1r6Oa4X1UznXqS1h/LCqgZk38x 7HCd3yAssOHANP199QNIhPm+i0djoGrEe1XSg2JFKiC3YsL8JHyRDZgImAFWHTWpK3MD2t ckOG+cmpbOTN3gOWlTBtLtstY9Dy71i9Ahv2QgsBnMyfb0MysKrJCFAjXpPg09wogdyTZ+ J8WL8xh2REG9Fo5ztfAEmbWGtioRoGWT9+ZU48kK1Ddk2bt+x1m7pkdfPK53YA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709314730; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0iV4XhewpAluXIcOyyCvnED1jA3pH5iVvL96QRJRItQ=; b=q5Dl5XBV9fkff5+kDoALxAkqZ+phc7LMCQMt4E/ufGQXFWAgMJ7hw8aFyhjr6dA/Nxsh+k u7d4wmjEo4rP5eirUfF9dobUg1Pzb/XzZGYHlj4h6E9jHvcWWgcL723sXBa4DuTv84U1u2 jevasBw6GdjBzlCkgBCW0DrdJ7cEtG8p495Uv/QHw9ZkoF7t2ewFn75SmONZNAkWghB0om c3qEutnSTXmVt81FAh93kzUHbMjsy5InRGu54cLlONpaqIiCTtKZt+HpPN0sgEZo/mqyhq wEiYyUTIlJCpJ2Uch0imbCubge0ebRaY3l2z7jvQagWT/PWe8phZUbk1wokvJQ== 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 4Tmb160vJzzbgd; Fri, 1 Mar 2024 17:38:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 421HcoE0079766; Fri, 1 Mar 2024 17:38:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 421Hco4N079763; Fri, 1 Mar 2024 17:38:50 GMT (envelope-from git) Date: Fri, 1 Mar 2024 17:38:50 GMT Message-Id: <202403011738.421Hco4N079763@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Stefan =?utf-8?Q?E=C3=9Fer?= Subject: git: b307cfe419ff - main - mqueuefs: fix statfs report to not signal file system full List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b307cfe419ff886ad1bbe15419c5f5604657df7b Auto-Submitted: auto-generated The branch main has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=b307cfe419ff886ad1bbe15419c5f5604657df7b commit b307cfe419ff886ad1bbe15419c5f5604657df7b Author: Stefan Eßer AuthorDate: 2024-03-01 17:31:15 +0000 Commit: Stefan Eßer CommitDate: 2024-03-01 17:31:15 +0000 mqueuefs: fix statfs report to not signal file system full Synthetic file systems that do not actually allocate file system blocks or inodes should report that they have space available and that they provide 0 inodes, in order to prevent capacity monitoring tools from warning about resource exhaustion. This has been fixed in all other synthetic file systems in base in commit 88a795e80c0, but this file was overlooked since its name does not indicate that it also provides a file system. MFC after: 1 month --- sys/kern/uipc_mqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c index f7695945fcc4..6400f0bce9f9 100644 --- a/sys/kern/uipc_mqueue.c +++ b/sys/kern/uipc_mqueue.c @@ -604,9 +604,9 @@ mqfs_mount(struct mount *mp) sbp->f_bsize = PAGE_SIZE; sbp->f_iosize = PAGE_SIZE; sbp->f_blocks = 1; - sbp->f_bfree = 0; + sbp->f_bfree = 1; sbp->f_bavail = 0; - sbp->f_files = 1; + sbp->f_files = 0; sbp->f_ffree = 0; return (0); }