From nobody Fri Mar 11 09:18:08 2022 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 935BE1A023A4; Fri, 11 Mar 2022 09:18:08 +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 4KFL282Xt4z4T0T; Fri, 11 Mar 2022 09:18:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646990288; 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=/e37ieQBTTaE1Xp60/vi4egRn4Ni+UAl2zOrXYHM27Y=; b=Iee2MmtoAtuB1vtWqZbHlWTVH2v5N+uKkqEtkbCFFZh779811lXwaEERwueSo8gpsAwQfX y4kg1RBqRaCPC62woVRiX3db7Y/BBJmE+/JxD36Gjq5V/Bswe4X1kWQdQbz40RHOX229fT +2yuKbmN06EyHREwI1HUXjgjk4Yd/+5i+8+3LO+Va6lNaJEFQ7UNprzzrbqVAIagtqF4RT oXfgvUYlgSgQ4IsbBvhB/KfRNQGUkvDOuliwZw232yEQkhn25PUzPe93+CmTc4NKgG96mE XdguQAiB+rqaFbQ4Otz85LynEDwiKHyX8Y1dE5ODKLumj2uUL/tIW2370RxEvQ== 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 37B7316572; Fri, 11 Mar 2022 09:18:08 +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 22B9I8Jg092652; Fri, 11 Mar 2022 09:18:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22B9I84s092651; Fri, 11 Mar 2022 09:18:08 GMT (envelope-from git) Date: Fri, 11 Mar 2022 09:18:08 GMT Message-Id: <202203110918.22B9I84s092651@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Hans Petter Selasky Subject: git: c5f549c1e0c9 - main - newfs(8): Fix a bug in initialization of sblock.fs_maxbsize . 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: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c5f549c1e0c9aa1764e87d55f183053c1545b1fc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646990288; 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=/e37ieQBTTaE1Xp60/vi4egRn4Ni+UAl2zOrXYHM27Y=; b=UcJSaKD6AGFB2FdaI3McM4c3BIZhl0d6uyrq6mQ/evye/apTk6TvajcP5xbHRSLScny4tu dG+q7WeCv5epjoGcWDXX9o6d8hCUGi5FbMitshG6tO8d0CIeFidbOUoZQb1Fn5z1M4fmr3 tQDCAb39aI17XPDQvEUVqHCiGg/t3d7CYsfOwf9w1945Qe+klo6xz6EYz+0O8eV7XacQEV gmWHwH1CejvDVe6fO8aUPMPO1q5Yj+p+Wyudk9aQhdz0ndy8TGJPiPDToQebaYJTca7m/S W0Nbxc3LfcLcbyAAmHGj3JRDSorv9EjjdO0oyPmsX3p37/d8injGjNXlTlF8iA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646990288; a=rsa-sha256; cv=none; b=Tqo/hXCAiSwbRS/n3TvNtEWgRuBsyzvjCNMDpOuh7m3WSnFeAIYHHjo0c1wd/0vlBOFKMJ Wl/hLica0vXWLq+4TqFBwznyHTL0ODEn1FW78tgHTWwPnLCfQgySjQS4L+IGDsi+w8GlY4 gIe4eX7cMJyaSZ5l8OPN5raeydo/uAG/KH/6J/g7So55+lSxZ08MvP/RUB4O4Qp9QLjjkY eYR0XyxBPDDA9DcAQcJdJHZEDuVwMVPuv6TGdIE95u91Gi2ILMcj4D413V7jelWDFeGmTe 8g5TefQGr8WQYL+dbmkkIUSpqkPS3DubAYTpdVKAhcj7HgMOg3DHd6pMr1GhOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=c5f549c1e0c9aa1764e87d55f183053c1545b1fc commit c5f549c1e0c9aa1764e87d55f183053c1545b1fc Author: Wuyang Chung AuthorDate: 2022-03-08 13:52:17 +0000 Commit: Hans Petter Selasky CommitDate: 2022-03-11 09:17:06 +0000 newfs(8): Fix a bug in initialization of sblock.fs_maxbsize . Fixes: 1c85e6a35d93195e896b030d9a55f7ac4ccee2c3 (SVN r98542) Pull Request: https://github.com/freebsd/freebsd-src/pull/587 MFC after: 1 week Sponsored by: NVIDIA Networking --- sbin/newfs/mkfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index bf5ee60694d0..a6c4ee60c2d5 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -225,7 +225,7 @@ restart: if (maxbsize < bsize || !POWEROF2(maxbsize)) { sblock.fs_maxbsize = sblock.fs_bsize; printf("Extent size set to %d\n", sblock.fs_maxbsize); - } else if (sblock.fs_maxbsize > FS_MAXCONTIG * sblock.fs_bsize) { + } else if (maxbsize > FS_MAXCONTIG * sblock.fs_bsize) { sblock.fs_maxbsize = FS_MAXCONTIG * sblock.fs_bsize; printf("Extent size reduced to %d\n", sblock.fs_maxbsize); } else {