4 #define OBD_TGT_VERSION 001
6 #define OBD_TGT_TCP 0x1
7 #define OBD_TGT_INTR 0x2
8 #define OBD_TGT_SOFT 0x4
29 OBDERR_OPNOTSUPP = 45,
35 #define OBD_PROGRAM 100003
37 #define OBDPROC_NULL 0
38 #define OBDPROC_GETATTR 1
39 #define OBDPROC_SETATTR 2
40 #define OBDPROC_ROOT 3
41 #define OBDPROC_LOOKUP 4
42 #define OBDPROC_READLINK 5
43 #define OBDPROC_READ 6
44 #define OBDPROC_WRITECACHE 7
45 #define OBDPROC_WRITE 8
46 #define OBDPROC_CREATE 9
47 #define OBDPROC_REMOVE 10
48 #define OBDPROC_RENAME 11
49 #define OBDPROC_LINK 12
50 #define OBDPROC_SYMLINK 13
51 #define OBDPROC_MKDIR 14
55 extern struct rpc_program obd_program;
63 struct sockaddr_in tgt_addr;
74 struct rpc_clnt * client; /* RPC client handle */
75 struct sockaddr_in addr;
76 int flags; /* various flags */
77 int rsize; /* read size */
78 int wsize; /* write size */
79 unsigned int bsize; /* server block size */
80 char * hostname; /* remote hostname */