char *inst;
char *buf;
int bufsz;
- int pos;
+ int pos = 0;
int rc = 0;
int off = 0;
OBD_FREE(inst, PAGE_SIZE);
return -E2BIG;
}
+#ifdef HAVE_SERVER_SUPPORT
} else {
LASSERT(IS_MDT(lsi));
rc = server_name2svname(lsi->lsi_svname, inst, NULL,
RETURN(-EINVAL);
}
pos = strlen(inst);
- }
+#endif /* HAVE_SERVER_SUPPORT */
+ }
++pos;
buf = inst + pos;