Searched refs:physpath (Results 1 – 3 of 3) sorted by relevance
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| H A D | vdev_geom.c | 92 char *physpath; in vdev_geom_set_physpath() local 100 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); in vdev_geom_set_physpath() 101 error = g_io_getattr("GEOM::physpath", cp, &physpath_len, physpath); in vdev_geom_set_physpath() 109 vd->vdev_physpath = spa_strdup(physpath); in vdev_geom_set_physpath() 118 g_free(physpath); in vdev_geom_set_physpath()
|
| H A D | spa.c | 6122 char *physpath; in spa_async_autoexpand() local 6135 physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in spa_async_autoexpand() 6136 (void) snprintf(physpath, MAXPATHLEN, "/devices%s", vd->vdev_physpath); in spa_async_autoexpand() 6139 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0); in spa_async_autoexpand() 6145 kmem_free(physpath, MAXPATHLEN); in spa_async_autoexpand()
|
| /netbsd-src/external/cddl/osnet/dist/lib/libzfs/common/ |
| H A D | libzfs_pool.c | 2217 vdev_get_one_physpath(nvlist_t *config, char *physpath, size_t physpath_size, argument 2232 rsz = snprintf(physpath + pos, bytes_left, format, tmppath); 2238 physpath[pos] = 0; 2246 vdev_get_physpaths(nvlist_t *nv, char *physpath, size_t phypath_size, argument 2270 if ((ret = vdev_get_one_physpath(nv, physpath, 2286 ret = vdev_get_physpaths(child[i], physpath, 2301 zpool_get_config_physpath(nvlist_t *config, char *physpath, size_t phypath_size) argument 2326 (void) vdev_get_physpaths(child[0], physpath, phypath_size, &rsz, 2341 zpool_get_physpath(zpool_handle_t *zhp, char *physpath, size_t phypath_size) argument 2343 return (zpool_get_config_physpath(zhp->zpool_config, physpath,
|