Skip to content

Commit 3ac3711

Browse files
committed
NFSD: Fix NFS server build errors
[email protected] reports the following build errors arise when CONFIG_NFSD_V4_2_INTER_SSC is set and the NFS client is not built into the kernel: fs/nfsd/nfs4proc.o: In function `nfsd4_do_copy': nfs4proc.c:(.text+0x23b7): undefined reference to `nfs42_ssc_close' fs/nfsd/nfs4proc.o: In function `nfsd4_copy': nfs4proc.c:(.text+0x5d2a): undefined reference to `nfs_sb_deactive' fs/nfsd/nfs4proc.o: In function `nfsd4_do_async_copy': nfs4proc.c:(.text+0x61d5): undefined reference to `nfs42_ssc_open' nfs4proc.c:(.text+0x6389): undefined reference to `nfs_sb_deactive' The new inter-server copy code invokes client functions. Until the NFS server has infrastructure to load the appropriate NFS client modules to handle inter-server copy requests, let's constrain the way this feature is built. Reported-by: YueHaibing <[email protected]> Fixes: ce0887a ("NFSD add nfs4 inter ssc to nfsd4_copy") Signed-off-by: Chuck Lever <[email protected]> Tested-by: YueHaibing <[email protected]> # build-tested
1 parent 78a947f commit 3ac3711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfsd/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ config NFSD_FLEXFILELAYOUT
136136

137137
config NFSD_V4_2_INTER_SSC
138138
bool "NFSv4.2 inter server to server COPY"
139-
depends on NFSD_V4 && NFS_V4_1 && NFS_V4_2
139+
depends on NFSD_V4 && NFS_V4_1 && NFS_V4_2 && NFS_FS=y
140140
help
141141
This option enables support for NFSv4.2 inter server to
142142
server copy where the destination server calls the NFSv4.2

0 commit comments

Comments
 (0)