/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | vdev_disk.c | 323 char *physpath, *minorname; local 325 physpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); 327 if (ddi_dev_pathname(dev, otyp, physpath) == 0 && 330 strcmp(vd->vdev_physpath, physpath) != 0)) { 333 (void) strlcat(physpath, ":", MAXPATHLEN); 334 (void) strlcat(physpath, minorname, MAXPATHLEN); 335 vd->vdev_physpath = spa_strdup(physpath); 339 kmem_free(physpath, MAXPATHLEN);
|
H A D | zvol.c | 872 char *physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP); local 874 (void) snprintf(physpath, MAXPATHLEN, "%s%u", ZVOL_PSEUDO_DEV, 878 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0); 884 kmem_free(physpath, MAXPATHLEN);
|
H A D | spa.c | 3659 * For x86. devpath_list will consist of devid and/or physpath name of 3663 * For Sparc, devpath_list consists the physpath name of the booting device 5739 char *physpath; local 5752 physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP); 5753 (void) snprintf(physpath, MAXPATHLEN, "/devices%s", vd->vdev_physpath); 5756 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0); 5762 kmem_free(physpath, MAXPATHLEN);
|
/freebsd-10.0-release/sys/cam/scsi/ |
H A D | scsi_pass.c | 234 char *physpath; local 242 physpath = malloc(MAXPATHLEN, M_DEVBUF, M_WAITOK); 248 if (xpt_getattr(physpath, MAXPATHLEN, 249 "GEOM::physpath", periph->path) == 0 250 && strlen(physpath) != 0) { 254 softc->dev, softc->alias_dev, physpath); 271 free(physpath, M_DEVBUF);
|
H A D | scsi_xpt.c | 2451 if (device->physpath != NULL) { 2452 free(device->physpath, M_CAMXPT); 2453 device->physpath = NULL; 2459 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT); 2460 if (device->physpath == NULL) { 2464 memcpy(device->physpath, cdai->buf, cdai->bufsiz); 2472 memcpy(cdai->buf, device->physpath, amt);
|
H A D | scsi_enc_ses.c | 990 struct sbuf *physpath; member in struct:ses_setphyspath_callback_args 1024 if (strcmp(old_physpath, sbuf_data(args->physpath)) != 0) { 1030 cdai.bufsiz = sbuf_len(args->physpath); 1031 cdai.buf = sbuf_data(args->physpath); 1120 args.physpath= &sb; 1901 * the physpath of any element. This allows us to
|
/freebsd-10.0-release/sys/geom/ |
H A D | geom_dev.c | 165 if (strcmp(attr, "GEOM::physpath") != 0) 169 char *physpath; local 173 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); 175 g_io_getattr("GEOM::physpath", cp, &physpath_len, physpath); 177 if (error == 0 && strlen(physpath) != 0) { 185 dev, old_alias_dev, physpath); 190 g_free(physpath); 267 g_dev_attrchanged(cp, "GEOM::physpath"); 461 error = g_io_getattr("GEOM::physpath", c [all...] |
/freebsd-10.0-release/usr.sbin/diskinfo/ |
H A D | diskinfo.c | 62 char buf[BUFSIZ], ident[DISK_IDENT_SIZE], physpath[MAXPATHLEN]; local 156 if (ioctl(fd, DIOCGPHYSPATH, physpath) == 0) 157 printf("\t%-12s\t# Physical path\n", physpath);
|
/freebsd-10.0-release/sys/cam/ |
H A D | cam_xpt_internal.h | 99 uint8_t *physpath; /* physical path string form */ member in struct:cam_ed
|
H A D | cam_xpt.c | 1122 else if (!strcmp(attr, "GEOM::physpath")) 4613 free(device->physpath, M_CAMXPT);
|
/freebsd-10.0-release/sys/kern/ |
H A D | kern_conf.c | 975 struct cdev *old_alias, const char *physpath) 987 physpath_len = strlen(physpath); 992 if (strncmp("id1,", physpath, 4) == 0) { 993 physpath += 4; 1005 pdev->si_name, physpath, pdev->si_name); 1018 sprintf(devfspath, "%s/%s", physpath, pdev->si_name); 974 make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev, struct cdev *old_alias, const char *physpath) argument
|
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_pool.c | 2219 vdev_get_one_physpath(nvlist_t *config, char *physpath, size_t physpath_size, argument 2234 rsz = snprintf(physpath + pos, bytes_left, format, tmppath); 2238 /* if physpath was not copied properly, clear it */ 2240 physpath[pos] = 0; 2248 vdev_get_physpaths(nvlist_t *nv, char *physpath, size_t phypath_size, argument 2272 if ((ret = vdev_get_one_physpath(nv, physpath, 2288 ret = vdev_get_physpaths(child[i], physpath, 2303 zpool_get_config_physpath(nvlist_t *config, char *physpath, size_t phypath_size) argument 2330 (void) vdev_get_physpaths(child[0], physpath, phypath_size, &rsz, 2345 zpool_get_physpath(zpool_handle_t *zhp, char *physpath, size_ argument [all...] |
/freebsd-10.0-release/sys/cam/ata/ |
H A D | ata_xpt.c | 1687 if (device->physpath != NULL) 1688 free(device->physpath, M_CAMXPT); 1693 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT); 1694 if (device->physpath == NULL) { 1698 memcpy(device->physpath, cdai->buf, cdai->bufsiz); 1706 memcpy(cdai->buf, device->physpath, amt);
|