tree_t *t;
int i;
-printf("insert_fhandle:%s size:%d\n", name, size);
while (name[0] == '.') name++;
t = malloc(sizeof(tree_t));
}
}
+static int nfs3_init(void)
+{
+ void *handle;
+
+ handle = nfsio_connect(options.server, options.export, options.protocol);
+ if (handle == NULL) {
+ printf("Failed to connect to NFS server\n");
+ return 1;
+ }
+
+ nfsio_disconnect(handle);
+ return 0;
+}
+
static struct backend_op ops[] = {
{ "Deltree", nfs3_deltree },
{ "GETATTR3", nfs3_getattr },
struct nb_operations nfs_ops = {
.backend_name = "nfsbench",
+ .init = nfs3_init,
.setup = nfs3_setup,
.cleanup = nfs3_cleanup,
.ops = ops