/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | vdev_disk.c | 227 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') in vdev_disk_hold() 238 size_t len = strlen(vd->vdev_path) + 3; in vdev_disk_hold() 241 (void) snprintf(buf, len, "%ss0", vd->vdev_path); in vdev_disk_hold() 248 (void) ldi_vp_from_name(vd->vdev_path, &vd->vdev_name_vp); in vdev_disk_hold() 309 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') { in vdev_disk_open() 380 if (vd->vdev_path != NULL) { in vdev_disk_open() 382 size_t len = strlen(vd->vdev_path) + 3; in vdev_disk_open() 385 (void) snprintf(buf, len, "%ss0", vd->vdev_path); in vdev_disk_open() 390 spa_strfree(vd->vdev_path); in vdev_disk_open() 391 vd->vdev_path = buf; in vdev_disk_open() [all …]
|
H A D | vdev_file.c | 47 ASSERT(vd->vdev_path != NULL); in vdev_file_hold() 53 ASSERT(vd->vdev_path != NULL); in vdev_file_rele() 86 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') { in vdev_file_open() 109 ASSERT(vd->vdev_path != NULL && vd->vdev_path[0] == '/'); in vdev_file_open() 110 error = vn_openat(vd->vdev_path + 1, UIO_SYSSPACE, in vdev_file_open()
|
H A D | vdev_initialize.c | 130 "vdev=%s activated", vd->vdev_path); in vdev_initialize_change_state() 134 "vdev=%s suspended", vd->vdev_path); in vdev_initialize_change_state() 138 "vdev=%s canceled", vd->vdev_path); in vdev_initialize_change_state() 142 "vdev=%s complete", vd->vdev_path); in vdev_initialize_change_state() 438 "(%llu, %llu)", vd->vdev_path, in vdev_initialize_range_add()
|
H A D | vdev.c | 127 if (vd->vdev_path != NULL) { in vdev_dbgmsg() 129 vd->vdev_path, buf); in vdev_dbgmsg() 183 vd->vdev_path ? vd->vdev_path : "N/A", state); in vdev_dbgmsg_print_tree() 690 if (nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &vd->vdev_path) == 0) in vdev_alloc() 691 vd->vdev_path = spa_strdup(vd->vdev_path); in vdev_alloc() 905 if (vd->vdev_path) in vdev_free() 906 spa_strfree(vd->vdev_path); in vdev_free() 1516 if (vd->vdev_path && strncmp(vd->vdev_path, ZVOL_DIR, in vdev_uses_zvols() 2001 if (svd->vdev_path != NULL && dvd->vdev_path != NULL) { in vdev_copy_path_impl() 2002 if (strcmp(svd->vdev_path, dvd->vdev_path) != 0) { in vdev_copy_path_impl() [all …]
|
H A D | zfs_fm.c | 195 if (vd->vdev_path != NULL) in zfs_ereport_start() 198 DATA_TYPE_STRING, vd->vdev_path, NULL); in zfs_ereport_start() 219 if (pvd->vdev_path) in zfs_ereport_start() 222 DATA_TYPE_STRING, pvd->vdev_path, NULL); in zfs_ereport_start()
|
H A D | spa.c | 5598 "try booting from '%s'", avd->vdev_path); 5612 vdev_child[bvd->vdev_parent->vdev_children - 1]->vdev_path); 6348 if (strcmp(oldvd->vdev_path, newvd->vdev_path) == 0) { 6349 spa_strfree(oldvd->vdev_path); 6350 oldvd->vdev_path = kmem_alloc(strlen(newvd->vdev_path) + 5, 6352 (void) sprintf(oldvd->vdev_path, "%s/%s", 6353 newvd->vdev_path, "old"); 6403 oldvdpath = spa_strdup(oldvd->vdev_path); 6404 newvdpath = spa_strdup(newvd->vdev_path); 6547 vd->vdev_path != NULL) { [all …]
|
H A D | vdev_removal.c | 342 (vd->vdev_path != NULL) ? vd->vdev_path : "-"); in vdev_remove_initiate_sync() 1674 vd->vdev_id, (vd->vdev_path != NULL) ? vd->vdev_path : "-"); in spa_vdev_remove_cancel_sync() 1828 (vd->vdev_path != NULL) ? vd->vdev_path : "-"); in spa_vdev_remove_log()
|
H A D | vdev_trim.c | 329 "vdev=%s activated", vd->vdev_path); in vdev_trim_change_state() 334 "vdev=%s suspended", vd->vdev_path); in vdev_trim_change_state() 339 "vdev=%s canceled", vd->vdev_path); in vdev_trim_change_state() 344 "vdev=%s complete", vd->vdev_path); in vdev_trim_change_state()
|
H A D | vdev_label.c | 428 if (vd->vdev_path != NULL) in vdev_config_generate() 429 fnvlist_add_string(nv, ZPOOL_CONFIG_PATH, vd->vdev_path); in vdev_config_generate()
|
/illumos-gate/usr/src/cmd/fs.d/zfs/bootinstall/etc/ |
H A D | SUNW,EC_zfs,ESC_ZFS_bootfs_vdev_attach,sysevent.conf | 24 EC_zfs ESC_ZFS_bootfs_vdev_attach SUNW - - - - /usr/lib/fs/zfs/bootinstall $pool_name $vdev_path
|
/illumos-gate/usr/src/cmd/mdb/common/modules/zfs/ |
H A D | zfs.c | 1595 uintptr_t vdev_path; member 1756 if (vd.vdev_path != 0) { in do_print_vdev() 1758 (uintptr_t)vd.vdev_path) == -1) { in do_print_vdev() 1760 vd.vdev_path); in do_print_vdev() 2085 if (vdev.vdev_path != 0) { in metaslab_trace() 2089 vdev.vdev_path) == -1) { in metaslab_trace() 2091 vdev.vdev_path); in metaslab_trace()
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | vdev_impl.h | 368 char *vdev_path; /* vdev path (if any) */ member
|
/illumos-gate/usr/src/cmd/ztest/ |
H A D | ztest.c | 2824 if (vd->vdev_path != NULL && strcmp(path, vd->vdev_path) == 0) in vdev_lookup_by_path() 3056 if (strcmp(sav->sav_vdevs[c]->vdev_path, in ztest_vdev_aux_add_remove() 3298 (void) strcpy(oldpath, oldvd->vdev_path); in ztest_vdev_attach_detach() 3323 (void) strcpy(newpath, newvd->vdev_path); in ztest_vdev_attach_detach() 3484 if ((fd = open(vd->vdev_path, O_RDWR)) == -1) in grow_vdev() 3492 vd->vdev_path, (ulong_t)fsize, (ulong_t)*newsize); in grow_vdev() 3647 vd->vdev_path, (ulong_t)psize, (ulong_t)newsize); in ztest_vdev_LUN_growth() 5761 (void) strcpy(path0, vd0->vdev_path); in ztest_fault_inject() 5762 (void) strcpy(pathrand, vd0->vdev_path); in ztest_fault_inject() 6112 char *path = strdup(rand_vd->vdev_path); in ztest_initialize() [all …]
|
/illumos-gate/usr/src/cmd/zdb/ |
H A D | zdb.c | 1333 vd->vdev_path ? vd->vdev_path : in dump_dtl() 5954 if (vc->vdev_path == NULL) { in zdb_vdev_lookup() 5962 p = strrchr(vc->vdev_path, '/'); in zdb_vdev_lookup() 5963 p = p ? p + 1 : vc->vdev_path; in zdb_vdev_lookup() 5964 q = &vc->vdev_path[strlen(vc->vdev_path) - 2]; in zdb_vdev_lookup() 5966 if (strcmp(vc->vdev_path, path) == 0) in zdb_vdev_lookup() 6081 if (vd->vdev_path) in zdb_read_block() 6083 vd->vdev_path); in zdb_read_block()
|