Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 2021 14:46:01 +0000
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Konstantin Belousov <kostikbel@gmail.com>, Rick Macklem <rmacklem@freebsd.org>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>, "dev-commits-src-all@freebsd.org" <dev-commits-src-all@freebsd.org>, "dev-commits-src-main@freebsd.org" <dev-commits-src-main@freebsd.org>
Subject:   Re: git: e152bbecb221 - main - param.h: bump __FreeBSD_version for commit 7763814fc9c2
Message-ID:  <YQXPR0101MB0968DDE61A7D497F7B0C3E04DD4F9@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM>
In-Reply-To: <YHWH1DQV/mT4TfYV@kib.kiev.ua>
References:  <202104112153.13BLrZ6B079911@gitrepo.freebsd.org>, <YHWH1DQV/mT4TfYV@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
No problem. The xdr is always needed by the krpc.
I tend to forget when the extra dependency is needed,
but adding it is certainly harmless.

Thanks for doing this, rick

________________________________________
From: Konstantin Belousov <kostikbel@gmail.com>
Sent: Tuesday, April 13, 2021 8:00 AM
To: Rick Macklem
Cc: src-committers@freebsd.org; dev-commits-src-all@freebsd.org; dev-commit=
s-src-main@freebsd.org
Subject: Re: git: e152bbecb221 - main - param.h: bump __FreeBSD_version for=
 commit 7763814fc9c2

CAUTION: This email originated from outside of the University of Guelph. Do=
 not click links or open attachments unless you recognize the sender and kn=
ow the content is safe. If in doubt, forward suspicious emails to IThelp@uo=
guelph.ca


On Sun, Apr 11, 2021 at 09:53:35PM +0000, Rick Macklem wrote:
> The branch main has been updated by rmacklem:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=3De152bbecb221a592e7dbcabe3d=
1170a60f0d0dfe
>
> commit e152bbecb221a592e7dbcabe3d1170a60f0d0dfe
> Author:     Rick Macklem <rmacklem@FreeBSD.org>
> AuthorDate: 2021-04-11 21:47:36 +0000
> Commit:     Rick Macklem <rmacklem@FreeBSD.org>
> CommitDate: 2021-04-11 21:50:56 +0000
>
>     param.h: bump __FreeBSD_version for commit 7763814fc9c2
>
>     Commit 7763814fc9c2 changed the internal KAPI between the krpc
>     and NFS.  As such, the krpc, nfscommon and nfscl modules must
>     all be rebuilt from sources.

In fact this commit introduced the dependency between xdr.ko and nfscl.ko.
Do you have an objections against the following?

commit 717018345b07939cde2db5c6be040cd9de3314cf
Author: Konstantin Belousov <kib@FreeBSD.org>
Date:   Tue Apr 13 14:47:20 2021 +0300

    nfs client: depend on xdr

    Since 7763814fc9c27 nfsrpc_setclient() uses mem_alloc() that is macro
    around malloc(M_RPC).  M_RPC is provided by xdr.ko.

diff --git a/sys/fs/nfsclient/nfs_clvfsops.c b/sys/fs/nfsclient/nfs_clvfsop=
s.c
index 365b1c387cc2..08a25c6fe632 100644
--- a/sys/fs/nfsclient/nfs_clvfsops.c
+++ b/sys/fs/nfsclient/nfs_clvfsops.c
@@ -155,6 +155,7 @@ MODULE_VERSION(nfs, 1);
 MODULE_DEPEND(nfs, nfscommon, 1, 1, 1);
 MODULE_DEPEND(nfs, krpc, 1, 1, 1);
 MODULE_DEPEND(nfs, nfssvc, 1, 1, 1);
+MODULE_DEPEND(nfs, xdr, 1, 1, 1);

 /*
  * This structure is now defined in sys/nfs/nfs_diskless.c so that it




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YQXPR0101MB0968DDE61A7D497F7B0C3E04DD4F9>