4 * Copyright (C) 2001 Cluster File Systems, Inc.
6 * This code is issued under the GNU General Public License.
7 * See the file COPYING in this distribution
10 #include <linux/sunrpc/svc.h>
11 #define OBD_TGT_VERSION 001
13 #define OBD_TGT_TCP 0x1
14 #define OBD_TGT_INTR 0x2
15 #define OBD_TGT_SOFT 0x4
36 OBDERR_OPNOTSUPP = 45,
41 extern struct rpc_program obd_program;
45 struct sockaddr_in tgt_addr;
56 struct rpc_clnt * handle; /* RPC client handle */
57 struct sockaddr_in addr;
58 int flags; /* various flags */
61 int rsize; /* read size */
62 int wsize; /* write size */
63 unsigned int bsize; /* server block size */
64 char * hostname; /* remote hostname */
68 #define OBD_PROGRAM 300001
70 #define OBDPROC_NULL 0
71 #define OBDPROC_ECHOINT 1
73 #ifdef OBD_NEED_XDR_TYPES
75 struct obd_echoint_in {
79 struct obd_echoint_out {
84 #endif /* OBD_NEED_XDR_TYPES */
87 int obd_proc_echoint(struct rpc_obd *target, __u32 in, __u32 *out);