struct nfs_fh3 rootfh;
};
-void nfs_fsinfo_cb(struct rpc_context *rpc, int status, void *data, void *private_data)
+void nfs_fsinfo_cb(struct rpc_context *rpc _U_, int status, void *data, void *private_data)
{
struct client *client = private_data;
FSINFO3res *res = data;
}
-void nfs_connect_cb(struct rpc_context *rpc, int status, void *data, void *private_data)
+void nfs_connect_cb(struct rpc_context *rpc, int status, void *data _U_, void *private_data)
{
struct client *client = private_data;
}
}
-void mount_connect_cb(struct rpc_context *rpc, int status, void *data, void *private_data)
+void mount_connect_cb(struct rpc_context *rpc, int status, void *data _U_, void *private_data)
{
struct client *client = private_data;
void pmap_getport_cb(struct rpc_context *rpc, int status, void *data, void *private_data)
{
struct client *client = private_data;
- uint32_t port;
if (status == RPC_STATUS_ERROR) {
printf("portmapper getport call failed with \"%s\"\n", (char *)data);
client->mount_port = *(uint32_t *)data;
printf("GETPORT returned Port:%d\n", client->mount_port);
if (client->mount_port == 0) {
- printf("RPC.MOUNTD is not available on server : %s\n", client->server, client->mount_port);
+ printf("RPC.MOUNTD is not available on server : %s:%d\n", client->server, client->mount_port);
exit(10);
}
}
}
-void pmap_connect_cb(struct rpc_context *rpc, int status, void *data, void *private_data)
+void pmap_connect_cb(struct rpc_context *rpc, int status, void *data _U_, void *private_data)
{
struct client *client = private_data;
}
-int main(int argc, char *argv[])
+int main(int argc _U_, char *argv[] _U_)
{
struct rpc_context *rpc;
struct pollfd pfd;
- int ret;
struct client client;
rpc = rpc_init_context();
};
-int main(int argc, char *argv[])
+int main(int argc _U_, char *argv[] _U_)
{
struct nfs_context *nfs;
int i, ret;
ret = nfs_close_sync(nfs, nfsfh);
if (ret < 0) {
- printf("Failed to close(%s)\n", NFSFILE, nfs_get_error(nfs));
+ printf("Failed to close(%s): %s\n", NFSFILE, nfs_get_error(nfs));
exit(10);
}
}
ret = nfs_close_sync(nfs, nfsfh);
if (ret < 0) {
- printf("Failed to close(%s)\n", NFSFILEW, nfs_get_error(nfs));
+ printf("Failed to close(%s) %s\n", NFSFILEW, nfs_get_error(nfs));
exit(10);
}
ret = nfs_statvfs_sync(nfs, NFSDIR, &svfs);
if (ret < 0) {
- printf("Failed to statvfs(%s)\n", NFSDIR, nfs_get_error(nfs));
+ printf("Failed to statvfs(%s) %s\n", NFSDIR, nfs_get_error(nfs));
exit(10);
}
printf("files %d/%d/%d\n", (int)svfs.f_files, (int)svfs.f_ffree, (int)svfs.f_favail);