Home
last modified time | relevance | path

Searched refs:physpath (Results 1 – 20 of 20) sorted by relevance

/freebsd/tests/sys/geom/class/part/
H A Dmisc.sh62 physpath="some/physical/path"
63 atf_check gnop create -z $physpath /dev/${md}
67 atf_check_equal "${physpath}/a" "$gpart_physpath"
85 physpath="some/physical/path"
86 atf_check gnop create -z $physpath /dev/${md}
90 atf_check_equal "${physpath}/p1" "$gpart_physpath"
108 physpath="some/physical/path"
109 atf_check gnop create -z $physpath /dev/${md}
113 atf_check_equal "${physpath}/s1" "$gpart_physpath"
131 physpath="some/physical/path"
[all …]
/freebsd/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_import_os.c465 const char *physpath = NULL; in zfs_device_get_physical() local
471 physpath = udev_device_get_property_value(dev, "ID_PATH"); in zfs_device_get_physical()
472 if (physpath != NULL && strlen(physpath) > 0) { in zfs_device_get_physical()
473 (void) strlcpy(bufptr, physpath, buflen); in zfs_device_get_physical()
484 physpath = udev_device_get_property_value(dev, "ID_VDEV"); in zfs_device_get_physical()
485 if (physpath != NULL && strlen(physpath) > 0) { in zfs_device_get_physical()
486 (void) strlcpy(bufptr, physpath, buflen); in zfs_device_get_physical()
495 physpath = udev_list_entry_get_name(entry); in zfs_device_get_physical()
496 if (strncmp(physpath, ZVOL_ROOT, strlen(ZVOL_ROOT)) == 0) { in zfs_device_get_physical()
497 (void) strlcpy(bufptr, physpath, buflen); in zfs_device_get_physical()
[all …]
/freebsd/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_mod.c206 const char *physpath = NULL, *new_devid = NULL, *enc_sysfs_path = NULL; in zfs_process_add() local
235 (void) nvlist_lookup_string(vdev, ZPOOL_CONFIG_PHYS_PATH, &physpath); in zfs_process_add()
282 if (physpath == NULL && path != NULL) { in zfs_process_add()
287 physpath = &path[strlen(DEV_BYVDEV_PATH)]; in zfs_process_add()
307 physpath ? physpath : "NULL", in zfs_process_add()
349 "%s", fullpath, physpath, (newstate == VDEV_STATE_HEALTHY) ? in zfs_process_add()
358 if (physpath != NULL && strcmp("scsidebug", physpath) == 0) in zfs_process_add()
366 !(wholedisk || is_mpath_wholedisk) || (physpath == NULL)) { in zfs_process_add()
371 physpath); in zfs_process_add()
381 is_sd ? DEV_BYVDEV_PATH : DEV_BYPATH_PATH, physpath); in zfs_process_add()
[all …]
/freebsd/tests/sys/cddl/zfs/include/
H A Dlibgnop.kshlib45 typeset physpath=$2
62 if [ -n "$physpath" ]; then
63 args="$args -z $physpath"
/freebsd/tests/sys/geom/class/eli/
H A Dmisc_test.sh92 atf_test_case physpath cleanup
116 physpath="some/physical/path"
117 atf_check gnop create -z $physpath ${md}
119 atf_check -o match:"^${physpath}/eli$" diskinfo -p $md.nop.eli
174 atf_add_test_case physpath
/freebsd/tests/sys/geom/class/multipath/
H A Dmisc.sh197 atf_test_case physpath cleanup
210 physpath="some/physical/path"
215 atf_check gnop create -z $physpath /dev/${md0}
216 atf_check gnop create -z $physpath /dev/${md1}
219 atf_check_equal "$physpath/mp" "$gmultipath_physpath"
357 atf_add_test_case physpath
/freebsd/tests/sys/geom/class/nop/
H A Dnop_test.sh126 atf_test_case physpath cleanup
137 physpath="some/physical/path"
138 atf_check gnop create -z $physpath /dev/${us}
140 atf_check_equal "$physpath" "$gnop_physpath"
230 atf_add_test_case physpath
/freebsd/sys/cam/nvme/
H A Dnvme_xpt.c685 if (device->physpath != NULL) { in nvme_dev_advinfo()
686 free(device->physpath, M_CAMXPT); in nvme_dev_advinfo()
687 device->physpath = NULL; in nvme_dev_advinfo()
693 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT); in nvme_dev_advinfo()
694 if (device->physpath == NULL) { in nvme_dev_advinfo()
699 memcpy(device->physpath, cdai->buf, cdai->bufsiz); in nvme_dev_advinfo()
707 memcpy(cdai->buf, device->physpath, amt); in nvme_dev_advinfo()
/freebsd/sys/geom/nop/
H A Dg_nop.c338 off_t stripeoffset, const char *physpath) in g_nop_create() argument
425 if (physpath && strcmp(physpath, G_NOP_PHYSPATH_PASSTHROUGH)) { in g_nop_create()
426 sc->sc_physpath = strndup(physpath, MAXPATHLEN, M_GEOM); in g_nop_create()
542 const char *physpath, *gnopname; in g_nop_ctl_create() local
664 physpath = gctl_get_asciiparam(req, "physpath"); in g_nop_ctl_create()
683 physpath) != 0) { in g_nop_ctl_create()
/freebsd/usr.sbin/diskinfo/
H A Ddiskinfo.c86 char tstr[BUFSIZ], ident[DISK_IDENT_SIZE], physpath[MAXPATHLEN]; in main() local
182 if (ioctl(fd, DIOCGPHYSPATH, physpath) == 0) { in main()
183 printf("%s\n", physpath); in main()
265 if (ioctl(fd, DIOCGPHYSPATH, physpath) == 0) in main()
266 printf("\t%-12s\t# Physical path\n", physpath); in main()
/freebsd/sys/geom/
H A Dgeom_dev.c255 char *physpath; in g_dev_set_physpath() local
263 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); in g_dev_set_physpath()
264 error = g_io_getattr("GEOM::physpath", cp, &physpath_len, physpath); in g_dev_set_physpath()
266 if (error == 0 && strlen(physpath) != 0) { in g_dev_set_physpath()
274 alias_devp, dev, old_alias_dev, physpath); in g_dev_set_physpath()
279 g_free(physpath); in g_dev_set_physpath()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_get/
H A Dvdev_get.cfg44 physpath
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_geom.c98 char *physpath; in vdev_geom_set_physpath() local
102 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); in vdev_geom_set_physpath()
103 error = g_io_getattr("GEOM::physpath", cp, &physpath_len, physpath); in vdev_geom_set_physpath()
110 vd->vdev_physpath = spa_strdup(physpath); in vdev_geom_set_physpath()
119 g_free(physpath); in vdev_geom_set_physpath()
/freebsd/sys/kern/
H A Dkern_conf.c1030 struct cdev *old_alias, const char *physpath) in make_dev_physpath_alias() argument
1042 physpath_len = strlen(physpath); in make_dev_physpath_alias()
1047 if (strncmp("id1,", physpath, 4) == 0) { in make_dev_physpath_alias()
1048 physpath += 4; in make_dev_physpath_alias()
1060 pdev->si_name, physpath, pdev->si_name); in make_dev_physpath_alias()
1073 sprintf(devfspath, "%s/%s", physpath, pdev->si_name); in make_dev_physpath_alias()
/freebsd/sys/cam/
H A Dcam_xpt_internal.h120 uint8_t *physpath; /* physical path string form */ member
H A Dcam_xpt.c4867 free(device->physpath, M_CAMXPT); in xpt_release_device()
/freebsd/sys/cam/scsi/
H A Dscsi_pass.c440 char *physpath; in pass_add_physpath() local
448 physpath = malloc(MAXPATHLEN, M_DEVBUF, M_WAITOK); in pass_add_physpath()
455 if (xpt_getattr(physpath, MAXPATHLEN, in pass_add_physpath()
457 && strlen(physpath) != 0) { in pass_add_physpath()
461 softc->alias_dev, physpath); in pass_add_physpath()
481 free(physpath, M_DEVBUF); in pass_add_physpath()
H A Dscsi_xpt.c2535 if (device->physpath != NULL) { in scsi_dev_advinfo()
2536 free(device->physpath, M_CAMXPT); in scsi_dev_advinfo()
2537 device->physpath = NULL; in scsi_dev_advinfo()
2543 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT); in scsi_dev_advinfo()
2544 if (device->physpath == NULL) { in scsi_dev_advinfo()
2549 memcpy(device->physpath, cdai->buf, cdai->bufsiz); in scsi_dev_advinfo()
2557 memcpy(cdai->buf, device->physpath, amt); in scsi_dev_advinfo()
H A Dscsi_enc_ses.c1020 struct sbuf *physpath; member
1055 if (strcmp(old_physpath, sbuf_data(args->physpath)) != 0) { in ses_setphyspath_callback()
1060 cdai.bufsiz = sbuf_len(args->physpath); in ses_setphyspath_callback()
1061 cdai.buf = sbuf_data(args->physpath); in ses_setphyspath_callback()
1151 args.physpath= &sb; in ses_set_physpath()
/freebsd/sys/cam/ata/
H A Data_xpt.c1745 if (device->physpath != NULL) { in ata_dev_advinfo()
1746 free(device->physpath, M_CAMXPT); in ata_dev_advinfo()
1747 device->physpath = NULL; in ata_dev_advinfo()
1753 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT); in ata_dev_advinfo()
1754 if (device->physpath == NULL) { in ata_dev_advinfo()
1759 memcpy(device->physpath, cdai->buf, cdai->bufsiz); in ata_dev_advinfo()
1767 memcpy(cdai->buf, device->physpath, amt); in ata_dev_advinfo()