summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4xdr.c
diff options
context:
space:
mode:
authorKinglong Mee2014-05-23 14:00:19 +0200
committerJ. Bruce Fields2014-05-30 23:32:19 +0200
commit94eb36892d727145794b80dceffc435d1d68edbb (patch)
tree7df717686ed4888d645c62663c4ddc7e2fe21ff9 /fs/nfsd/nfs4xdr.c
parentNFSD: Helper function for parsing uuid (diff)
downloadkernel-qcow2-linux-94eb36892d727145794b80dceffc435d1d68edbb.tar.gz
kernel-qcow2-linux-94eb36892d727145794b80dceffc435d1d68edbb.tar.xz
kernel-qcow2-linux-94eb36892d727145794b80dceffc435d1d68edbb.zip
NFSD: Adds macro EX_UUID_LEN for exports uuid's length
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r--fs/nfsd/nfs4xdr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 470fe8998c9b..70d147244891 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -2223,7 +2223,8 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
*p++ = cpu_to_be32(MINOR(stat.dev));
break;
case FSIDSOURCE_UUID:
- p = xdr_encode_opaque_fixed(p, exp->ex_uuid, 16);
+ p = xdr_encode_opaque_fixed(p, exp->ex_uuid,
+ EX_UUID_LEN);
break;
}
}