diff options
author | Krishna Srinivas <ksriniva@redhat.com> | 2012-05-08 15:15:31 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-05-27 22:21:01 -0700 |
commit | 99ea01aa92109f0fa5b35f47e7d04dce11baa654 (patch) | |
tree | 911cde2e5d6ec1aee3c394b19bfc0af44972186c /xlators/nfs/server/src/nfs3-fh.c | |
parent | cc5b1f06a8bfd94c669007d27d0e5103a8856dc3 (diff) |
nfs/mount: Support MOUNT protocol on UDP. Needed for NLM on solaris clients.
Change-Id: I3f5c35d06827fb267a7dae53d949c61567a945d0
BUG: 799287
Signed-off-by: Krishna Srinivas <ksriniva@redhat.com>
Reviewed-on: http://review.gluster.com/3337
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Rajesh Amaravathi <rajesh@redhat.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/nfs/server/src/nfs3-fh.c')
-rw-r--r-- | xlators/nfs/server/src/nfs3-fh.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs3-fh.c b/xlators/nfs/server/src/nfs3-fh.c index 9aea88137..f41c3f2f1 100644 --- a/xlators/nfs/server/src/nfs3-fh.c +++ b/xlators/nfs/server/src/nfs3-fh.c @@ -229,6 +229,18 @@ done: return 0; } +int +nfs3_build_fh (inode_t *inode, uuid_t exportid, struct nfs3_fh *newfh) +{ + if (!newfh || !inode) + return -1; + + newfh->ident[0] = GF_NFSFH_IDENT0; + newfh->ident[1] = GF_NFSFH_IDENT1; + uuid_copy (newfh->gfid, inode->gfid); + uuid_copy (newfh->exportid, exportid); + return 0; +} int nfs3_fh_build_child_fh (struct nfs3_fh *parent, struct iatt *newstat, |