summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2017-10-01 21:45:15 +0000
committerrmacklem <rmacklem@FreeBSD.org>2017-10-01 21:45:15 +0000
commit6027f9baf47aee5def418c5a606ec4a188236297 (patch)
treeea31f6093dd98303c776543e86303335159267b0
parent5c3b5a223da269a91b20184952ba2034e79368c2 (diff)
downloadFreeBSD-src-6027f9baf47aee5def418c5a606ec4a188236297.zip
FreeBSD-src-6027f9baf47aee5def418c5a606ec4a188236297.tar.gz
MFC: r323689
Fix bogus FREAD with NFSV4OPEN_ACCESSREAD. No functional change. The code in nfscl_doflayoutio() bogusly used FREAD instead of NFSV4OPEN_ACCESSREAD. Since both happen to be defined as "1", this worked and the patch doesn't result in a functional change. Found by inspection during development of Flex File Layout support.
-rw-r--r--sys/fs/nfsclient/nfs_clrpcops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfsclient/nfs_clrpcops.c b/sys/fs/nfsclient/nfs_clrpcops.c
index beb7217..373c2f8 100644
--- a/sys/fs/nfsclient/nfs_clrpcops.c
+++ b/sys/fs/nfsclient/nfs_clrpcops.c
@@ -5664,7 +5664,7 @@ nfscl_doflayoutio(vnode_t vp, struct uio *uiop, int *iomode, int *must_commit,
np->n_flag &= ~NDSCOMMIT;
mtx_unlock(&np->n_mtx);
}
- } else if (rwflag == FREAD)
+ } else if (rwflag == NFSV4OPEN_ACCESSREAD)
error = nfsrpc_readds(vp, uiop, stateidp, eofp, *dspp,
io_off, xfer, fhp, cred, p);
else {
OpenPOWER on IntegriCloud