44 |
|
|
45 |
#define MNT_REPLY_MINSIZE (sizeof(struct rpc_reply) + sizeof(uint32_t)) |
#define MNT_REPLY_MINSIZE (sizeof(struct rpc_reply) + sizeof(uint32_t)) |
46 |
|
|
|
#ifndef MNTPROC_MNT |
|
|
# define MNTPROC_MNT 1 |
|
|
# define MNTPROC_UMNT 3 |
|
|
#endif /* MNTPROC_MNT */ |
|
|
|
|
47 |
static int get_ports(uint32_t server, const struct nfs_mount_data *data) |
static int get_ports(uint32_t server, const struct nfs_mount_data *data) |
48 |
{ |
{ |
49 |
uint32_t nfs_ver, mount_ver; |
uint32_t nfs_ver, mount_ver; |
93 |
(void)path; |
(void)path; |
94 |
(void)data; |
(void)data; |
95 |
|
|
96 |
#ifdef NFS_DEBUG |
#ifdef DEBUG |
97 |
struct in_addr addr = { server }; |
struct in_addr addr = { server }; |
98 |
|
|
99 |
printf("NFS params:\n"); |
printf("NFS params:\n"); |
121 |
(void)data; |
(void)data; |
122 |
(void)len; |
(void)len; |
123 |
|
|
124 |
#ifdef NFS_DEBUG |
#ifdef DEBUG |
125 |
int i = 0; |
int i = 0; |
126 |
int max = len - (len % 8); |
int max = len - (len % 8); |
127 |
|
|
329 |
goto bail; |
goto bail; |
330 |
} |
} |
331 |
|
|
332 |
DEBUG(("Mounted %s on %s\n", pathname, path)); |
dprintf("Mounted %s on %s\n", pathname, path); |
333 |
|
|
334 |
goto done; |
goto done; |
335 |
|
|