aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/nfsserver/nfs_nfsdsocket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/nfsserver/nfs_nfsdsocket.c b/sys/fs/nfsserver/nfs_nfsdsocket.c
index 201f3b74b946..efa7906dffc7 100644
--- a/sys/fs/nfsserver/nfs_nfsdsocket.c
+++ b/sys/fs/nfsserver/nfs_nfsdsocket.c
@@ -1272,7 +1272,8 @@ tryagain:
if (vp == NULL || savevp == NULL) {
nd->nd_repstat = NFSERR_NOFILEHANDLE;
break;
- } else if (fsidcmp(&cur_fsid, &save_fsid) != 0) {
+ } else if (fsidcmp(&cur_fsid, &save_fsid) != 0 &&
+ op != NFSV4OP_COPY && op != NFSV4OP_CLONE) {
nd->nd_repstat = NFSERR_XDEV;
break;
}