From 99ea01aa92109f0fa5b35f47e7d04dce11baa654 Mon Sep 17 00:00:00 2001 From: Krishna Srinivas Date: Tue, 8 May 2012 15:15:31 +0530 Subject: nfs/mount: Support MOUNT protocol on UDP. Needed for NLM on solaris clients. Change-Id: I3f5c35d06827fb267a7dae53d949c61567a945d0 BUG: 799287 Signed-off-by: Krishna Srinivas Reviewed-on: http://review.gluster.com/3337 Tested-by: Gluster Build System Reviewed-by: Rajesh Amaravathi Reviewed-by: Anand Avati --- rpc/xdr/src/mount3udp.x | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 rpc/xdr/src/mount3udp.x (limited to 'rpc/xdr') diff --git a/rpc/xdr/src/mount3udp.x b/rpc/xdr/src/mount3udp.x new file mode 100644 index 000000000..90b5b741a --- /dev/null +++ b/rpc/xdr/src/mount3udp.x @@ -0,0 +1,34 @@ +/* + Copyright (c) 2012 Gluster, Inc. + This file is part of GlusterFS. + + GlusterFS is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, + or (at your option) any later version. + + GlusterFS is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +*/ + +/* This is used by rpcgen to auto generate the rpc stubs. + * mount3udp_svc.c is heavily modified though + */ + +const MNTUDPPATHLEN = 1024; + +typedef string mntudpdirpath; + +program MOUNTUDP_PROGRAM { + version MOUNTUDP_V3 { + void MOUNTUDPPROC3_NULL(void) = 0; + mountres3 MOUNTUDPPROC3_MNT (mntudpdirpath) = 1; + mountstat3 MOUNTUDPPROC3_UMNT (mntudpdirpath) = 3; + } = 3; +} = 100005; -- cgit