ret = nfs_opendir(nfs, dir, &nfsdir);
if (ret != 0) {
- printf("Failed to opendir(\"%s\")\n", dir, nfs_get_error(nfs));
+ printf("Failed to opendir(\"%s\") %s\n", dir, nfs_get_error(nfs));
exit(10);
}
while((nfsdirent = nfs_readdir(nfs, nfsdir)) != NULL) {
ret = nfs_opendir(nfs, "/", &nfsdir);
if (ret != 0) {
- printf("Failed to opendir(\"/\")\n", nfs_get_error(nfs));
+ printf("Failed to opendir(\"/\") %s\n", nfs_get_error(nfs));
exit(10);
}
while((nfsdirent = nfs_readdir(nfs, nfsdir)) != NULL) {
"-w"[!!(st.st_mode & S_IWOTH)],
"-x"[!!(st.st_mode & S_IXOTH)]
);
- printf(" %2d", st.st_nlink);
+ printf(" %2d", (int)st.st_nlink);
printf(" %5d", st.st_uid);
printf(" %5d", st.st_gid);
printf(" %12" PRId64, st.st_size);
return;
}
- if (rpc_nfs_null_async(rpc, nfs_mount_8_cb, data) != 0) {
+ if (rpc_nfs3_null_async(rpc, nfs_mount_8_cb, data) != 0) {
data->cb(-ENOMEM, nfs, command_data, data->private_data);
free_nfs_cb_data(data);
return;
args.fsroot.data.data_len = fh->data.data_len;
args.fsroot.data.data_val = fh->data.data_val;
- return rpc_nfs3_fsinfo_async(rpc, cb, fh, private_data);
+ return rpc_nfs3_fsinfo_async(rpc, cb, &args, private_data);
}
int rpc_nfs3_readlink_async(struct rpc_context *rpc, rpc_cb cb, READLINK3args *args, void *private_data)