| /f-stack/freebsd/contrib/openzfs/lib/libzutil/os/linux/ |
| H A D | zutil_import_os.c | 490 const char *physpath = NULL; in zfs_device_get_physical() local 496 physpath = udev_device_get_property_value(dev, "ID_PATH"); in zfs_device_get_physical() 497 if (physpath != NULL && strlen(physpath) > 0) { in zfs_device_get_physical() 498 (void) strlcpy(bufptr, physpath, buflen); in zfs_device_get_physical() 510 if (physpath != NULL && strlen(physpath) > 0) { in zfs_device_get_physical() 511 (void) strlcpy(bufptr, physpath, buflen); in zfs_device_get_physical() 520 physpath = udev_list_entry_get_name(entry); in zfs_device_get_physical() 522 (void) strlcpy(bufptr, physpath, buflen); in zfs_device_get_physical() 533 physpath = udev_list_entry_get_name(entry); in zfs_device_get_physical() 534 if (strncmp(physpath, "/dev/disk/by-uuid", 17) == 0) { in zfs_device_get_physical() [all …]
|
| /f-stack/freebsd/contrib/openzfs/cmd/zed/agents/ |
| H A D | zfs_mod.c | 188 char *physpath = NULL, *new_devid = NULL, *enc_sysfs_path = NULL; in zfs_process_add() local 222 physpath ? physpath : "NULL", wholedisk, is_dm ? "is" : "not", in zfs_process_add() 266 if (physpath != NULL && strcmp("scsidebug", physpath) == 0) in zfs_process_add() 274 !(wholedisk || is_dm) || (physpath == NULL)) { in zfs_process_add() 288 is_sd ? DEV_BYVDEV_PATH : DEV_BYPATH_PATH, physpath); in zfs_process_add() 352 (void) strlcpy(device->pd_physpath, physpath, in zfs_process_add() 368 if (strcmp(physpath, device->pd_physpath) == 0) { in zfs_process_add() 375 physpath, device->pd_physpath); in zfs_process_add() 387 physpath, (u_longlong_t)guid); in zfs_process_add() 411 (physpath != NULL && nvlist_add_string(newvd, in zfs_process_add() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | vdev_geom.c | 97 char *physpath; in vdev_geom_set_physpath() local 101 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); in vdev_geom_set_physpath() 102 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()
|
| /f-stack/freebsd/kern/ |
| H A D | kern_conf.c | 1034 struct cdev *old_alias, const char *physpath) in make_dev_physpath_alias() argument 1046 physpath_len = strlen(physpath); in make_dev_physpath_alias() 1051 if (strncmp("id1,", physpath, 4) == 0) { in make_dev_physpath_alias() 1052 physpath += 4; in make_dev_physpath_alias() 1064 pdev->si_name, physpath, pdev->si_name); in make_dev_physpath_alias() 1077 sprintf(devfspath, "%s/%s", physpath, pdev->si_name); in make_dev_physpath_alias()
|
| /f-stack/freebsd/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs_pool.c | 2761 vdev_get_one_physpath(nvlist_t *config, char *physpath, size_t physpath_size, in vdev_get_one_physpath() argument 2776 rsz = snprintf(physpath + pos, bytes_left, format, tmppath); in vdev_get_one_physpath() 2782 physpath[pos] = 0; in vdev_get_one_physpath() 2790 vdev_get_physpaths(nvlist_t *nv, char *physpath, size_t phypath_size, in vdev_get_physpaths() argument 2814 if ((ret = vdev_get_one_physpath(nv, physpath, in vdev_get_physpaths() 2831 ret = vdev_get_physpaths(child[i], physpath, in vdev_get_physpaths() 2846 zpool_get_config_physpath(nvlist_t *config, char *physpath, size_t phypath_size) in zpool_get_config_physpath() argument 2871 (void) vdev_get_physpaths(child[0], physpath, phypath_size, &rsz, in zpool_get_config_physpath() 2886 zpool_get_physpath(zpool_handle_t *zhp, char *physpath, size_t phypath_size) in zpool_get_physpath() argument 2888 return (zpool_get_config_physpath(zhp->zpool_config, physpath, in zpool_get_physpath()
|
| H A D | libzfs.abi | 2690 …<parameter type-id='type-id-49' name='physpath' filepath='/home/fedora/zfs/lib/libzfs/libzfs_pool.…
|