From nobody Sun Jan 02 22:04:53 2022 X-Original-To: dev-commits-src-all@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 B05AD192CC1D; Sun, 2 Jan 2022 22:04:53 +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 4JRtGF3Dhgz3kRf; Sun, 2 Jan 2022 22:04:53 +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 4AD871967D; Sun, 2 Jan 2022 22:04:53 +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 202M4rDO097364; Sun, 2 Jan 2022 22:04:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 202M4rB8097363; Sun, 2 Jan 2022 22:04:53 GMT (envelope-from git) Date: Sun, 2 Jan 2022 22:04:53 GMT Message-Id: <202201022204.202M4rB8097363@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kirk McKusick Subject: git: 1fbcaa13b033 - main - When doing a read-only mount of a UFS filesystem using gjournal(8), suppress error message about a missing gjournal provider. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mckusick X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1fbcaa13b033230c52487a270803bd0f7723e107 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641161093; 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=xav5LgVRRs4DxBKrAMG7Mq3t6yiV1P7kr40Yln7AXT4=; b=rH63A5fHEPfUjiko7h4OmIJNLaflKHJsxhNizmt1msXlEraY+xPtRIr+lWdEaxkWL9+o2D zXwNajr8fXra1q8xKUyXRHTj6qU/PcfkNsMXPPU2F7vLO0U9f7MmsFg3uQXYoMyzOVwLEp Hi8Ouf0ubIKn9+5Xi+8uMOzMYDlSv/ow/E5BsCywyOQLEFDDn14FeKtOCb3cR1WGYns9Vx fSALdvtQLcoPgJziH80pE5l/iXe03QvDd7fvD0ZOE4feeHHTA2B5CM64cQByVybTWHU21j 4Gn9rK3Rjr49hVbcQUFeqSKN8856c/cklpvcRy2FL6r1s2jpGIvpZXEq/WKsVg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641161093; a=rsa-sha256; cv=none; b=Zi1Dg0bc80F9El4s9cJc32rMeNH9LYTs43buKx2mjYyuZC3r+jNssAAxp6hoWQ3nu/sKUp kinuOWsYNjTvYCwDw1IyLd76Mrdt/+61otZvvUUPQ0eNzS1R8ZcgSUlypCrTyCjcZcgiBo Mpke2SJ4nnO4Q1DFftdpWZDkKeEBolTAje6Mt8E3jM8kPfhO0TuEtPFO53LxD3ipU1SdXz QQR6+ZP12kmaJ37YwD0JUsOuozmFYCDWfjxC0mkmzrOBr5r8XX1RUWrc5HGLh3ggQKbivS VoUGpKQ1d6Gv7UbzaEHGLIHNQGce2XRvuWgVXXiIycaYpxwZkmc+kXrmyiRb2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mckusick: URL: https://cgit.FreeBSD.org/src/commit/?id=1fbcaa13b033230c52487a270803bd0f7723e107 commit 1fbcaa13b033230c52487a270803bd0f7723e107 Author: Kirk McKusick AuthorDate: 2022-01-02 22:04:06 +0000 Commit: Kirk McKusick CommitDate: 2022-01-02 22:04:39 +0000 When doing a read-only mount of a UFS filesystem using gjournal(8), suppress error message about a missing gjournal provider. Submitted by: Andreas Longwitz MFC after: 2 weeks Sponsored by: Netflix --- sys/ufs/ffs/ffs_vfsops.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index f9fb854c9640..131bdc33f427 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -1015,9 +1015,10 @@ ffs_mountfs(odevvp, mp, td) mp->mnt_flag |= MNT_GJOURNAL; MNT_IUNLOCK(mp); } else { - printf("WARNING: %s: GJOURNAL flag on fs " - "but no gjournal provider below\n", - mp->mnt_stat.f_mntonname); + if ((mp->mnt_flag & MNT_RDONLY) == 0) + printf("WARNING: %s: GJOURNAL flag on fs " + "but no gjournal provider below\n", + mp->mnt_stat.f_mntonname); free(mp->mnt_gjprovider, M_UFSMNT); mp->mnt_gjprovider = NULL; }