Home
last modified time | relevance | path

Searched refs:vdev_path (Results 1 – 11 of 11) sorted by relevance

/titanic_41/usr/src/uts/common/fs/zfs/
H A Dvdev_disk.c196 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') in vdev_disk_hold()
207 size_t len = strlen(vd->vdev_path) + 3; in vdev_disk_hold()
210 (void) snprintf(buf, len, "%ss0", vd->vdev_path); in vdev_disk_hold()
217 (void) ldi_vp_from_name(vd->vdev_path, &vd->vdev_name_vp); in vdev_disk_hold()
306 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') { in vdev_disk_open()
361 if (vd->vdev_path != NULL) { in vdev_disk_open()
364 size_t len = strlen(vd->vdev_path) + 3; in vdev_disk_open()
367 (void) snprintf(buf, len, "%ss0", vd->vdev_path); in vdev_disk_open()
372 spa_strfree(vd->vdev_path); in vdev_disk_open()
373 vd->vdev_path = buf; in vdev_disk_open()
[all …]
H A Dvdev_file.c42 ASSERT(vd->vdev_path != NULL); in vdev_file_hold()
48 ASSERT(vd->vdev_path != NULL); in vdev_file_rele()
63 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') { in vdev_file_open()
86 ASSERT(vd->vdev_path != NULL && vd->vdev_path[0] == '/'); in vdev_file_open()
87 error = vn_openat(vd->vdev_path + 1, UIO_SYSSPACE, in vdev_file_open()
H A Dzfs_fm.c264 if (vd->vdev_path != NULL) in zfs_ereport_start()
267 DATA_TYPE_STRING, vd->vdev_path, NULL); in zfs_ereport_start()
284 if (pvd->vdev_path) in zfs_ereport_start()
287 DATA_TYPE_STRING, pvd->vdev_path, NULL); in zfs_ereport_start()
H A Dspa.c3884 "try booting from '%s'", avd->vdev_path); in spa_import_rootpool()
3898 vdev_child[bvd->vdev_parent->vdev_children - 1]->vdev_path); in spa_import_rootpool()
4559 if (strcmp(oldvd->vdev_path, newvd->vdev_path) == 0) { in spa_vdev_attach()
4560 spa_strfree(oldvd->vdev_path); in spa_vdev_attach()
4561 oldvd->vdev_path = kmem_alloc(strlen(newvd->vdev_path) + 5, in spa_vdev_attach()
4563 (void) sprintf(oldvd->vdev_path, "%s/%s", in spa_vdev_attach()
4564 newvd->vdev_path, "old"); in spa_vdev_attach()
4614 oldvdpath = spa_strdup(oldvd->vdev_path); in spa_vdev_attach()
4615 newvdpath = spa_strdup(newvd->vdev_path); in spa_vdev_attach()
4730 vd->vdev_path != NULL) { in spa_vdev_detach()
[all …]
H A Dvdev.c468 if (nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &vd->vdev_path) == 0) in vdev_alloc()
469 vd->vdev_path = spa_strdup(vd->vdev_path); in vdev_alloc()
640 if (vd->vdev_path) in vdev_free()
641 spa_strfree(vd->vdev_path); in vdev_free()
1094 if (vd->vdev_path && strncmp(vd->vdev_path, ZVOL_DIR, in vdev_uses_zvols()
1283 vd->vdev_path); in vdev_open()
H A Dvdev_label.c227 if (vd->vdev_path != NULL) in vdev_config_generate()
228 fnvlist_add_string(nv, ZPOOL_CONFIG_PATH, vd->vdev_path); in vdev_config_generate()
/titanic_41/usr/src/cmd/fs.d/zfs/bootinstall/etc/
H A DSUNW,EC_zfs,ESC_ZFS_bootfs_vdev_attach,sysevent.conf24 EC_zfs ESC_ZFS_bootfs_vdev_attach SUNW - - - - /usr/lib/fs/zfs/bootinstall $pool_name $vdev_path
/titanic_41/usr/src/cmd/zdb/
H A Dzdb.c1033 vd->vdev_path ? vd->vdev_path : in dump_dtl()
3191 if (vc->vdev_path == NULL) { in zdb_vdev_lookup()
3199 p = strrchr(vc->vdev_path, '/'); in zdb_vdev_lookup()
3200 p = p ? p + 1 : vc->vdev_path; in zdb_vdev_lookup()
3201 q = &vc->vdev_path[strlen(vc->vdev_path) - 2]; in zdb_vdev_lookup()
3203 if (strcmp(vc->vdev_path, path) == 0) in zdb_vdev_lookup()
3305 if (vd->vdev_path) in zdb_read_block()
3307 vd->vdev_path); in zdb_read_block()
/titanic_41/usr/src/uts/common/fs/zfs/sys/
H A Dvdev_impl.h192 char *vdev_path; /* vdev path (if any) */ member
/titanic_41/usr/src/cmd/ztest/
H A Dztest.c2457 if (vd->vdev_path != NULL && strcmp(path, vd->vdev_path) == 0) in vdev_lookup_by_path()
2601 if (strcmp(sav->sav_vdevs[c]->vdev_path, in ztest_vdev_aux_add_remove()
2809 (void) strcpy(oldpath, oldvd->vdev_path); in ztest_vdev_attach_detach()
2833 (void) strcpy(newpath, newvd->vdev_path); in ztest_vdev_attach_detach()
2933 if ((fd = open(vd->vdev_path, O_RDWR)) == -1) in grow_vdev()
2941 vd->vdev_path, (ulong_t)fsize, (ulong_t)*newsize); in grow_vdev()
3081 vd->vdev_path, (ulong_t)psize, (ulong_t)newsize); in ztest_vdev_LUN_growth()
4889 (void) strcpy(path0, vd0->vdev_path); in ztest_fault_inject()
4890 (void) strcpy(pathrand, vd0->vdev_path); in ztest_fault_inject()
/titanic_41/usr/src/cmd/mdb/common/modules/zfs/
H A Dzfs.c1400 if (vdev.vdev_path != NULL) { in do_print_vdev()
1402 (uintptr_t)vdev.vdev_path) == -1) { in do_print_vdev()
1404 vdev.vdev_path); in do_print_vdev()