Lines Matching refs:cname
306 char *cname;
319 cname = tname;
324 cname = Malloc(cname_len);
326 cname, cname_len, "%s/%s", sname, tname);
333 return (cname);
348 char *cname;
370 cname = tname;
375 cname = Malloc(cname_len);
377 cname, cname_len, "%s/%s", sname, tname);
384 return (cname);
1087 if (np->cname != NULL)
1088 Free(np->cname);
1124 if (p->cname != NULL)
1125 Free(p->cname);
1141 if (dnp->cname != NULL)
1142 Free(dnp->cname);
2013 if (np->cname)
2014 Free(np->cname);
2015 np->cname = Strdup(p);
2021 if (np->cname)
2022 Free(np->cname);
2023 np->cname = Strdup(p);
2029 if (np->cname)
2030 Free(np->cname);
2031 np->cname = Strdup(p);
2037 if (np->cname)
2038 Free(np->cname);
2039 np->cname = Strdup(bname);
2048 if (np->cname)
2049 Free(np->cname);
2050 np->cname = Strdup(p);
2053 if (np->cname)
2054 Free(np->cname);
2056 np->cname = Malloc(len);
2057 (void) snprintf(np->cname, len, "%s/%s", sname, p);
2157 if (np->cname != NULL)
2158 Free(np->cname);
2276 if (dnp->cname != NULL)
2277 Free(dnp->cname);
2285 if ((*np)->cname != NULL)
2286 Free((*np)->cname);
2429 char *cname;
2447 (cname = meta_canonicalize(sp, uname)) != NULL) {
2449 np->cname = cname;
2478 if ((np->cname = strrchr(uname, '/')) == NULL)
2479 np->cname = Strdup(uname);
2481 np->cname = Strdup(++np->cname);
2483 np->cname = Strdup(uname);
2491 if ((dnp->cname = metadiskname(np->cname)) == NULL)
2492 dnp->cname = Strdup(np->cname);
2526 char *cname = NULL;
2532 if ((cname = meta_name_getname(spp, uname, uname_type, ep)) == NULL)
2536 Free(cname);
2610 if ((dnp->cname = metadiskname(np->cname)) == NULL)
2611 dnp->cname = Strdup(np->cname);
2808 if ((dnp->cname = metadiskname(np->cname)) == NULL)
2809 dnp->cname = Strdup(np->cname);
2928 if ((dnp->cname = metadiskname(np->cname)) == NULL)
2929 dnp->cname = Strdup(np->cname);
2982 if ((dnp->cname != NULL &&
2983 (strcmp(dnp->cname, dname) == 0)) ||
3052 (void) mderror(ep, MDE_NOSLICE, dnp->cname);
3059 if (np->cname) {
3063 if ((namep = meta_name_getname(&sp, dnp->cname,
3167 return (np->cname);
3190 np->cname));
3213 np->cname));
3227 np->cname));
3388 char *cname = NULL;
3390 cname = meta_canonicalize(*spp, uname);
3392 if (cname == NULL) {
3396 return (cname);
3411 char *cname;
3417 if ((cname = gethspname(spp, uname, ep)) == NULL)
3424 if (strcmp(hspnp->hspname, cname) == 0) {
3425 Free(cname);
3435 MD_SIDEWILD, cname, ep)) == MD_HSP_NONE) {
3443 Free(cname);
3456 hspnp->hspname = cname;
3651 return (np->cname);
3682 return (np->cname);
3834 lcname = Strdup(mdnp->cname);