Lines Matching defs:dsname
76 sdev_zvol_create_minor(char *dsname)
80 return ((*szcm)(dsname));
84 sdev_zvol_name2minor(char *dsname, minor_t *minor)
88 return ((*szn2m)(dsname, minor));
181 devzvol_objset_check(char *dsname, dmu_objset_type_t *type)
189 ispool = (strchr(dsname, '/') == NULL);
190 is_snapshot = (strchr(dsname, '@') != NULL);
196 (void) strlcpy(zc->zc_name, dsname, MAXPATHLEN);
226 char *dsname;
252 dsname = kmem_zalloc(dslen, KM_SLEEP);
254 (void) strlcpy(dsname, ptr, dslen);
256 (void) strlcat(dsname, "/", dslen);
259 (void) strlcat(dsname, name, dslen);
260 return (dsname);
280 char *dsname;
298 dsname = devzvol_make_dsname(dv->sdev_path, NULL);
299 if (dsname == NULL)
307 kmem_free(dsname, strlen(dsname) + 1);
311 rc = devzvol_objset_check(dsname, &do_type);
312 sdcmn_err13((" '%s' rc %d", dsname, rc));
331 kmem_free(dsname, strlen(dsname) + 1);
342 kmem_free(dsname, strlen(dsname) + 1);
358 if (sdev_zvol_name2minor(dsname, &ominor) < 0 ||
360 kmem_free(dsname, strlen(dsname) + 1);
364 kmem_free(dsname, strlen(dsname) + 1);
520 char *dsname;
525 dsname = devzvol_make_dsname(ddv->sdev_path, nm);
526 rc = sdev_zvol_create_minor(dsname);
528 sdev_zvol_name2minor(dsname, &minor)) {
530 kmem_free(dsname, strlen(dsname) + 1);
533 kmem_free(dsname, strlen(dsname) + 1);
611 char *dsname;
623 if ((dsname = devzvol_make_dsname(parent->sdev_path, nm)) == NULL)
626 if (devzvol_objset_check(dsname, &do_type) != 0) {
645 kmem_free(dsname, strlen(dsname) + 1);
661 rc = sdev_zvol_create_minor(dsname);
663 sdev_zvol_name2minor(dsname, &minor)) {
664 kmem_free(dsname, strlen(dsname) + 1);
677 kmem_free(dsname, strlen(dsname) + 1);
699 char *dsname;
769 dsname = devzvol_make_dsname(parent->sdev_path, nm);
771 sdcmn_err13(("rvp dsname %s", dsname ? dsname : "(null)"));
772 if (dsname) {
773 error = devzvol_objset_check(dsname, &do_type);
801 if (dsname)
802 kmem_free(dsname, strlen(dsname) + 1);