Lines Matching refs:dname
1122 if (p->dname != NULL)
1123 Free(p->dname);
1678 char *dname,
1684 size_t dl = strlen(dname);
1702 len = strlen(dname) + 20 + 1;
1708 (void) snprintf(srname, len, "%ss%u", dname, nslice);
1885 char *dname,
1913 /* dname already setup */
1922 if ((dname != NULL) &&
1923 ((nparts = getnslice(rname, dname, &partno)) > 0)) {
1934 /* dname already setup */
2169 char *dname,
2180 assert(dname != NULL);
2187 srname = dname;
2191 int l = 0, cl = strlen(dname);
2200 if (sscanf(dname, "/dev/r%" VAL2STR(BUFSIZ) "[^0-9/]%u%n",
2204 } else if (sscanf(dname, "/dev/%" VAL2STR(BUFSIZ) "[^0-9/]%u%n",
2210 (void) snprintf(srname, len, "%ss%u", dname, partno);
2230 if (getnames(sp, np, dname, ep) != 0) {
2238 if ((srname != rname) && (srname != dname))
2525 char *dname = NULL;
2538 /* get raw name (rname) of the slice and drive (dname) we have */
2540 &dname, &uname_type, ep)) == NULL) {
2551 if ((dnp->rname != NULL) && strcmp(dnp->rname, dname) == 0) {
2554 if (dname != NULL)
2555 Free(dname);
2569 if (dname != NULL)
2570 Free(dname);
2582 if (getparts(dnp, rname, dname, uname_type, &nparts, &partno, ep) != 0)
2606 dname, partno, ep)) == NULL)
2616 if (dname != NULL)
2617 Free(dname);
2623 if (dname != NULL)
2624 Free(dname);
2713 char *dname = NULL;
2759 /* get raw name (rname) of the slice and drive name (dname) */
2760 if ((rname = getrawnames(&sp, nm, &dname, &uname_type, ep)) == NULL) {
2777 if (getparts(dnp, rname, dname, uname_type, &nparts, &partno, ep) != 0)
2804 dname, partno, ep)) == NULL)
2813 if (dname != NULL)
2814 Free(dname);
2819 if (dname != NULL)
2820 Free(dname);
2849 char *dname;
2887 /* get raw name (rname) of the slice and drive (dname) we have */
2888 if ((rname = getrawnames(spp, uname, &dname, &uname_type,
2900 if (getparts(dnp, rname, dname, uname_type, &nparts, &partno, ep) != 0)
2924 dname, partno, ep)) == NULL)
2934 if (dname != NULL)
2935 Free(dname);
2941 if (dname != NULL)
2942 Free(dname);
2967 char *dname;
2974 if ((dname = metadiskname(uname)) == NULL) {
2983 (strcmp(dnp->cname, dname) == 0)) ||
2985 (strcmp(dnp->rname, dname) == 0))) {
2986 Free(dname);
2990 Free(dname);
3014 ((dname = metadiskname(uname)) != NULL)) {
3015 Free(dname);