Home
last modified time | relevance | path

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

/freebsd-13.1/tests/sys/geom/class/part/
H A Dmisc.sh63 physpath="some/physical/path"
64 atf_check gnop create -z $physpath /dev/${md}
68 atf_check_equal "${physpath}/a" "$gpart_physpath"
86 physpath="some/physical/path"
87 atf_check gnop create -z $physpath /dev/${md}
91 atf_check_equal "${physpath}/p1" "$gpart_physpath"
109 physpath="some/physical/path"
110 atf_check gnop create -z $physpath /dev/${md}
114 atf_check_equal "${physpath}/s1" "$gpart_physpath"
132 physpath="some/physical/path"
[all …]
/freebsd-13.1/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_mod.c251 if (physpath == NULL && path != NULL) { in zfs_process_add()
256 physpath = &path[strlen(DEV_BYVDEV_PATH)]; in zfs_process_add()
276 physpath ? physpath : "NULL", in zfs_process_add()
325 if (physpath != NULL && strcmp("scsidebug", physpath) == 0) in zfs_process_add()
338 physpath); in zfs_process_add()
414 (void) strlcpy(device->pd_physpath, physpath, in zfs_process_add()
430 if (strcmp(physpath, device->pd_physpath) == 0) { in zfs_process_add()
437 physpath, device->pd_physpath); in zfs_process_add()
449 physpath, (u_longlong_t)guid); in zfs_process_add()
473 (physpath != NULL && nvlist_add_string(newvd, in zfs_process_add()
[all …]
/freebsd-13.1/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_import_os.c490 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 …]
/freebsd-13.1/tests/sys/cddl/zfs/include/
H A Dlibgnop.kshlib46 typeset physpath=$2
63 if [ -n "$physpath" ]; then
64 args="$args -z $physpath"
/freebsd-13.1/tests/sys/geom/class/eli/
H A Dmisc_test.sh93 atf_test_case physpath cleanup
117 physpath="some/physical/path"
118 atf_check gnop create -z $physpath ${md}
120 atf_check -o match:"^${physpath}/eli$" diskinfo -p $md.nop.eli
140 atf_add_test_case physpath
/freebsd-13.1/tests/sys/geom/class/multipath/
H A Dmisc.sh198 atf_test_case physpath cleanup
211 physpath="some/physical/path"
216 atf_check gnop create -z $physpath /dev/${md0}
217 atf_check gnop create -z $physpath /dev/${md1}
220 atf_check_equal "$physpath/mp" "$gmultipath_physpath"
358 atf_add_test_case physpath
/freebsd-13.1/tests/sys/geom/class/nop/
H A Dnop_test.sh127 atf_test_case physpath cleanup
138 physpath="some/physical/path"
139 atf_check gnop create -z $physpath /dev/${us}
141 atf_check_equal "$physpath" "$gnop_physpath"
231 atf_add_test_case physpath
/freebsd-13.1/sys/cam/nvme/
H A Dnvme_xpt.c684 if (device->physpath != NULL) { in nvme_dev_advinfo()
685 free(device->physpath, M_CAMXPT); in nvme_dev_advinfo()
686 device->physpath = NULL; in nvme_dev_advinfo()
692 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT); in nvme_dev_advinfo()
693 if (device->physpath == NULL) { in nvme_dev_advinfo()
698 memcpy(device->physpath, cdai->buf, cdai->bufsiz); in nvme_dev_advinfo()
706 memcpy(cdai->buf, device->physpath, amt); in nvme_dev_advinfo()
/freebsd-13.1/sys/geom/nop/
H A Dg_nop.c342 off_t stripeoffset, const char *physpath) in g_nop_create() argument
429 if (physpath && strcmp(physpath, G_NOP_PHYSPATH_PASSTHROUGH)) { in g_nop_create()
430 sc->sc_physpath = strndup(physpath, MAXPATHLEN, M_GEOM); in g_nop_create()
546 const char *physpath, *gnopname; in g_nop_ctl_create() local
668 physpath = gctl_get_asciiparam(req, "physpath"); in g_nop_ctl_create()
687 physpath) != 0) { in g_nop_ctl_create()
/freebsd-13.1/usr.sbin/diskinfo/
H A Ddiskinfo.c85 char tstr[BUFSIZ], ident[DISK_IDENT_SIZE], physpath[MAXPATHLEN]; in main() local
175 if (ioctl(fd, DIOCGPHYSPATH, physpath) == 0) { in main()
176 printf("%s\n", physpath); in main()
258 if (ioctl(fd, DIOCGPHYSPATH, physpath) == 0) in main()
259 printf("\t%-12s\t# Physical path\n", physpath); in main()
/freebsd-13.1/sys/geom/
H A Dgeom_dev.c258 char *physpath; in g_dev_set_physpath() local
266 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); in g_dev_set_physpath()
267 error = g_io_getattr("GEOM::physpath", cp, &physpath_len, physpath); in g_dev_set_physpath()
269 if (error == 0 && strlen(physpath) != 0) { in g_dev_set_physpath()
277 old_alias_dev, physpath); in g_dev_set_physpath()
282 g_free(physpath); in g_dev_set_physpath()
/freebsd-13.1/sys/kern/
H A Dkern_conf.c1037 struct cdev *old_alias, const char *physpath) in make_dev_physpath_alias() argument
1049 physpath_len = strlen(physpath); in make_dev_physpath_alias()
1054 if (strncmp("id1,", physpath, 4) == 0) { in make_dev_physpath_alias()
1055 physpath += 4; in make_dev_physpath_alias()
1067 pdev->si_name, physpath, pdev->si_name); in make_dev_physpath_alias()
1080 sprintf(devfspath, "%s/%s", physpath, pdev->si_name); in make_dev_physpath_alias()
/freebsd-13.1/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_geom.c99 char *physpath; in vdev_geom_set_physpath() local
103 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); in vdev_geom_set_physpath()
104 error = g_io_getattr("GEOM::physpath", cp, &physpath_len, physpath); in vdev_geom_set_physpath()
111 vd->vdev_physpath = spa_strdup(physpath); in vdev_geom_set_physpath()
120 g_free(physpath); in vdev_geom_set_physpath()
/freebsd-13.1/sys/cam/
H A Dcam_xpt_internal.h125 uint8_t *physpath; /* physical path string form */ member
H A Dcam_xpt.c4931 free(device->physpath, M_CAMXPT); in xpt_release_device()
/freebsd-13.1/sys/cam/scsi/
H A Dscsi_pass.c442 char *physpath; in pass_add_physpath() local
450 physpath = malloc(MAXPATHLEN, M_DEVBUF, M_WAITOK); in pass_add_physpath()
457 if (xpt_getattr(physpath, MAXPATHLEN, in pass_add_physpath()
459 && strlen(physpath) != 0) { in pass_add_physpath()
462 softc->dev, softc->alias_dev, physpath); in pass_add_physpath()
482 free(physpath, M_DEVBUF); in pass_add_physpath()
H A Dscsi_xpt.c2538 if (device->physpath != NULL) { in scsi_dev_advinfo()
2539 free(device->physpath, M_CAMXPT); in scsi_dev_advinfo()
2540 device->physpath = NULL; in scsi_dev_advinfo()
2546 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT); in scsi_dev_advinfo()
2547 if (device->physpath == NULL) { in scsi_dev_advinfo()
2552 memcpy(device->physpath, cdai->buf, cdai->bufsiz); in scsi_dev_advinfo()
2560 memcpy(cdai->buf, device->physpath, amt); in scsi_dev_advinfo()
H A Dscsi_enc_ses.c1022 struct sbuf *physpath; member
1056 if (strcmp(old_physpath, sbuf_data(args->physpath)) != 0) { in ses_setphyspath_callback()
1061 cdai.bufsiz = sbuf_len(args->physpath); in ses_setphyspath_callback()
1062 cdai.buf = sbuf_data(args->physpath); in ses_setphyspath_callback()
1151 args.physpath= &sb; in ses_set_physpath()
/freebsd-13.1/sys/cam/ata/
H A Data_xpt.c1759 if (device->physpath != NULL) { in ata_dev_advinfo()
1760 free(device->physpath, M_CAMXPT); in ata_dev_advinfo()
1761 device->physpath = NULL; in ata_dev_advinfo()
1767 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT); in ata_dev_advinfo()
1768 if (device->physpath == NULL) { in ata_dev_advinfo()
1773 memcpy(device->physpath, cdai->buf, cdai->bufsiz); in ata_dev_advinfo()
1781 memcpy(cdai->buf, device->physpath, amt); in ata_dev_advinfo()
/freebsd-13.1/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_pool.c2855 vdev_get_one_physpath(nvlist_t *config, char *physpath, size_t physpath_size, in vdev_get_one_physpath() argument
2870 rsz = snprintf(physpath + pos, bytes_left, format, tmppath); in vdev_get_one_physpath()
2876 physpath[pos] = 0; in vdev_get_one_physpath()
2884 vdev_get_physpaths(nvlist_t *nv, char *physpath, size_t phypath_size, in vdev_get_physpaths() argument
2908 if ((ret = vdev_get_one_physpath(nv, physpath, in vdev_get_physpaths()
2925 ret = vdev_get_physpaths(child[i], physpath, in vdev_get_physpaths()
2940 zpool_get_config_physpath(nvlist_t *config, char *physpath, size_t phypath_size) in zpool_get_config_physpath() argument
2965 (void) vdev_get_physpaths(child[0], physpath, phypath_size, &rsz, in zpool_get_config_physpath()
2980 zpool_get_physpath(zpool_handle_t *zhp, char *physpath, size_t phypath_size) in zpool_get_physpath() argument
2982 return (zpool_get_config_physpath(zhp->zpool_config, physpath, in zpool_get_physpath()
H A Dlibzfs.abi5839 <parameter type-id='26a90f95' name='physpath'/>