Home
last modified time | relevance | path

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

/freebsd-12.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-12.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-12.1/tests/sys/cddl/zfs/include/
H A Dlibgnop.kshlib46 typeset physpath=$2
63 if [ -n "$physpath" ]; then
64 args="$args -z $physpath"
/freebsd-12.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-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dvdev_disk.c497 char *physpath, *minorname; in vdev_disk_open() local
499 physpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in vdev_disk_open()
501 if (ddi_dev_pathname(dev, otyp, physpath) == 0 && in vdev_disk_open()
504 strcmp(vd->vdev_physpath, physpath) != 0)) { in vdev_disk_open()
507 (void) strlcat(physpath, ":", MAXPATHLEN); in vdev_disk_open()
508 (void) strlcat(physpath, minorname, MAXPATHLEN); in vdev_disk_open()
509 vd->vdev_physpath = spa_strdup(physpath); in vdev_disk_open()
513 kmem_free(physpath, MAXPATHLEN); in vdev_disk_open()
H A Dvdev_geom.c102 char *physpath; in vdev_geom_set_physpath() local
106 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); in vdev_geom_set_physpath()
107 error = g_io_getattr("GEOM::physpath", cp, &physpath_len, physpath); in vdev_geom_set_physpath()
114 vd->vdev_physpath = spa_strdup(physpath); in vdev_geom_set_physpath()
123 g_free(physpath); in vdev_geom_set_physpath()
H A Dzvol.c1064 char *physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP); local
1066 (void) snprintf(physpath, MAXPATHLEN, "%s%u", ZVOL_PSEUDO_DEV,
1070 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0);
1076 kmem_free(physpath, MAXPATHLEN);
H A Dspa.c7155 char *physpath; local
7168 physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP);
7169 (void) snprintf(physpath, MAXPATHLEN, "/devices%s", vd->vdev_physpath);
7172 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0);
7178 kmem_free(physpath, MAXPATHLEN);
/freebsd-12.1/sys/geom/nop/
H A Dg_nop.c199 u_int secsize, u_int stripesize, u_int stripeoffset, const char *physpath) in g_nop_create() argument
270 if (physpath && strcmp(physpath, G_NOP_PHYSPATH_PASSTHROUGH)) { in g_nop_create()
271 sc->sc_physpath = strndup(physpath, MAXPATHLEN, M_GEOM); in g_nop_create()
374 const char *name, *physpath; in g_nop_ctl_create() local
457 physpath = gctl_get_asciiparam(req, "physpath"); in g_nop_ctl_create()
480 physpath) != 0) { in g_nop_ctl_create()
/freebsd-12.1/sys/cam/nvme/
H A Dnvme_xpt.c622 if (device->physpath != NULL) in nvme_dev_advinfo()
623 free(device->physpath, M_CAMXPT); in nvme_dev_advinfo()
628 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT); in nvme_dev_advinfo()
629 if (device->physpath == NULL) { in nvme_dev_advinfo()
633 memcpy(device->physpath, cdai->buf, cdai->bufsiz); in nvme_dev_advinfo()
641 memcpy(cdai->buf, device->physpath, amt); in nvme_dev_advinfo()
/freebsd-12.1/sys/geom/
H A Dgeom_dev.c243 char *physpath; in g_dev_set_physpath() local
251 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); in g_dev_set_physpath()
252 error = g_io_getattr("GEOM::physpath", cp, &physpath_len, physpath); in g_dev_set_physpath()
254 if (error == 0 && strlen(physpath) != 0) { in g_dev_set_physpath()
262 old_alias_dev, physpath); in g_dev_set_physpath()
267 g_free(physpath); in g_dev_set_physpath()
/freebsd-12.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()
254 if (ioctl(fd, DIOCGPHYSPATH, physpath) == 0) in main()
255 printf("\t%-12s\t# Physical path\n", physpath); in main()
/freebsd-12.1/sys/kern/
H A Dkern_conf.c1025 struct cdev *old_alias, const char *physpath) in make_dev_physpath_alias() argument
1037 physpath_len = strlen(physpath); in make_dev_physpath_alias()
1042 if (strncmp("id1,", physpath, 4) == 0) { in make_dev_physpath_alias()
1043 physpath += 4; in make_dev_physpath_alias()
1055 pdev->si_name, physpath, pdev->si_name); in make_dev_physpath_alias()
1068 sprintf(devfspath, "%s/%s", physpath, pdev->si_name); in make_dev_physpath_alias()
/freebsd-12.1/sys/cam/
H A Dcam_xpt_internal.h126 uint8_t *physpath; /* physical path string form */ member
H A Dcam_xpt.c5029 free(device->physpath, M_CAMXPT); in xpt_release_device()
/freebsd-12.1/sys/cam/scsi/
H A Dscsi_pass.c430 char *physpath; in pass_add_physpath() local
438 physpath = malloc(MAXPATHLEN, M_DEVBUF, M_WAITOK); in pass_add_physpath()
445 if (xpt_getattr(physpath, MAXPATHLEN, in pass_add_physpath()
447 && strlen(physpath) != 0) { in pass_add_physpath()
451 softc->dev, softc->alias_dev, physpath); in pass_add_physpath()
471 free(physpath, M_DEVBUF); in pass_add_physpath()
H A Dscsi_xpt.c2547 if (device->physpath != NULL) { in scsi_dev_advinfo()
2548 free(device->physpath, M_CAMXPT); in scsi_dev_advinfo()
2549 device->physpath = NULL; in scsi_dev_advinfo()
2555 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT); in scsi_dev_advinfo()
2556 if (device->physpath == NULL) { in scsi_dev_advinfo()
2561 memcpy(device->physpath, cdai->buf, cdai->bufsiz); in scsi_dev_advinfo()
2569 memcpy(cdai->buf, device->physpath, amt); in scsi_dev_advinfo()
H A Dscsi_enc_ses.c1011 struct sbuf *physpath; member
1045 if (strcmp(old_physpath, sbuf_data(args->physpath)) != 0) { in ses_setphyspath_callback()
1051 cdai.bufsiz = sbuf_len(args->physpath); in ses_setphyspath_callback()
1052 cdai.buf = sbuf_data(args->physpath); in ses_setphyspath_callback()
1141 args.physpath= &sb; in ses_set_physpath()
/freebsd-12.1/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_pool.c2411 vdev_get_one_physpath(nvlist_t *config, char *physpath, size_t physpath_size, argument
2426 rsz = snprintf(physpath + pos, bytes_left, format, tmppath);
2432 physpath[pos] = 0;
2440 vdev_get_physpaths(nvlist_t *nv, char *physpath, size_t phypath_size, argument
2464 if ((ret = vdev_get_one_physpath(nv, physpath,
2481 ret = vdev_get_physpaths(child[i], physpath,
2496 zpool_get_config_physpath(nvlist_t *config, char *physpath, size_t phypath_size) argument
2521 (void) vdev_get_physpaths(child[0], physpath, phypath_size, &rsz,
2536 zpool_get_physpath(zpool_handle_t *zhp, char *physpath, size_t phypath_size) argument
2538 return (zpool_get_config_physpath(zhp->zpool_config, physpath,
/freebsd-12.1/sys/cam/ata/
H A Data_xpt.c1760 if (device->physpath != NULL) in ata_dev_advinfo()
1761 free(device->physpath, M_CAMXPT); in ata_dev_advinfo()
1766 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT); in ata_dev_advinfo()
1767 if (device->physpath == NULL) { in ata_dev_advinfo()
1771 memcpy(device->physpath, cdai->buf, cdai->bufsiz); in ata_dev_advinfo()
1779 memcpy(cdai->buf, device->physpath, amt); in ata_dev_advinfo()