/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_utils.c | 417 char *root_path, *cp = NULL, *init_path; in walk_tree() local 423 if ((root_path = strdup(physpath)) == NULL) { in walk_tree() 430 if (strncmp(root_path, DEVICES_DIR SLASH, in walk_tree() 432 cp = root_path + len; in walk_tree() 433 (void) memmove(root_path, cp, strlen(cp) + 1); in walk_tree() 434 } else if (*root_path != '/') { in walk_tree() 441 if ((cp = GET_DYN(root_path)) != NULL) { in walk_tree() 446 if ((cp = strrchr(root_path, ':')) != NULL) { in walk_tree() 453 init_path = root_path; in walk_tree() 470 walk_root = di_lookup_node(root, root_path); in walk_tree() [all …]
|
H A D | cfga_cvt.c | 303 char *root_path, *devpath, *cp; in path_apid_dyn_to_path() local 313 if ((root_path = strdup(hba_phys)) == NULL) { in path_apid_dyn_to_path() 320 if (strncmp(root_path, DEVICES_DIR SLASH, in path_apid_dyn_to_path() 322 cp = root_path + len; in path_apid_dyn_to_path() 323 (void) memmove(root_path, cp, strlen(cp) + 1); in path_apid_dyn_to_path() 324 } else if (*root_path != '/') { in path_apid_dyn_to_path() 326 S_FREE(root_path); in path_apid_dyn_to_path() 331 if ((cp = GET_DYN(root_path)) != NULL) { in path_apid_dyn_to_path() 336 if ((cp = strrchr(root_path, ':')) != NULL) { in path_apid_dyn_to_path() 347 S_FREE(root_path); in path_apid_dyn_to_path() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb2_setinfo_quota.c | 48 char *root_path; in smb2_setinfo_quota() local 69 root_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in smb2_setinfo_quota() 70 if (smb_node_getmntpath(tnode, root_path, MAXPATHLEN) != 0) { in smb2_setinfo_quota() 72 kmem_free(root_path, MAXPATHLEN); in smb2_setinfo_quota() 82 request.qs_root_path = root_path; in smb2_setinfo_quota() 91 kmem_free(root_path, MAXPATHLEN); in smb2_setinfo_quota()
|
H A D | smb_nt_transact_quota.c | 223 char *root_path; in smb_nt_transact_set_quota() local 269 root_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in smb_nt_transact_set_quota() 270 if (smb_node_getmntpath(tnode, root_path, MAXPATHLEN) != 0) { in smb_nt_transact_set_quota() 274 kmem_free(root_path, MAXPATHLEN); in smb_nt_transact_set_quota() 284 request.qs_root_path = root_path; in smb_nt_transact_set_quota() 293 kmem_free(root_path, MAXPATHLEN); in smb_nt_transact_set_quota()
|
H A D | smb_vss.c | 80 char *root_path; in smb_vss_enum_snapshots() local 95 root_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in smb_vss_enum_snapshots() 96 if (smb_node_getmntpath(sr->fid_ofile->f_node, root_path, in smb_vss_enum_snapshots() 101 count = smb_vss_get_count(sr->tid_tree, root_path); in smb_vss_enum_snapshots() 110 smb_vss_get_snapshots(sr->tid_tree, root_path, in smb_vss_enum_snapshots() 118 kmem_free(root_path, MAXPATHLEN); in smb_vss_enum_snapshots()
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | mount.c | 560 char *root_path = &root_pathbuf[0]; /* to make XDR happy */ in boot_nfs_mountroot() local 717 if (nfsmountroot(root_path, &roothandle) == 0) in boot_nfs_mountroot() 721 if (nfs3mountroot(root_path, &roothandle) == 0) in boot_nfs_mountroot() 731 if (istcp && nfs4init(root_path, nfs_port) == 0) { in boot_nfs_mountroot() 745 if (istcp && nfs4init(root_path, nfs_port) == 0) { in boot_nfs_mountroot() 752 if (nfs3mountroot(root_path, &roothandle) == 0) in boot_nfs_mountroot() 755 if ((status = nfsmountroot(root_path, &roothandle)) != 0) in boot_nfs_mountroot()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_utils.c | 503 char *root_path, *cp = NULL; in walk_tree() local 511 if ((root_path = strdup(physpath)) == NULL) { in walk_tree() 518 if (strncmp(root_path, DEVICES_DIR SLASH, in walk_tree() 520 cp = root_path + len; in walk_tree() 521 (void) memmove(root_path, cp, strlen(cp) + 1); in walk_tree() 522 } else if (*root_path != '/') { in walk_tree() 529 if ((cp = GET_DYN(root_path)) != NULL) { in walk_tree() 534 if ((cp = strrchr(root_path, ':')) != NULL) { in walk_tree() 567 root_path, strlen(root_path)))) { in walk_tree() 609 S_FREE(root_path); in walk_tree()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_common.c | 353 char *root_path; in nfsdyn_mountroot() local 387 root_path = pn.pn_path; in nfsdyn_mountroot() 405 if (error = mount_root(*name ? name : "root", root_path, NFS_V4, in nfsdyn_mountroot() 427 if (error = mount_root(*name ? name : "root", root_path, in nfsdyn_mountroot() 451 root_path, NFS_VERSION, &args, &vfsflags)) { in nfsdyn_mountroot()
|
H A D | nfs_vfsops.c | 1667 char *root_path; in nfs_mountroot() local 1702 root_path = pn.pn_path; in nfs_mountroot() 1721 if (error = mount_root(*name ? name : "root", root_path, NFS_VERSION, in nfs_mountroot() 1770 (void) strcpy(&rootfs.bo_name[size + 1], root_path); in nfs_mountroot()
|
H A D | nfs3_vfsops.c | 1662 char *root_path; in nfs3_mountroot() local 1697 root_path = pn.pn_path; in nfs3_mountroot() 1716 if (error = mount_root(*name ? name : "root", root_path, NFS_V3, in nfs3_mountroot() 1768 (void) strcpy(&rootfs.bo_name[size + 1], root_path); in nfs3_mountroot()
|
H A D | nfs4_vfsops.c | 2960 char *root_path; in nfs4_mountroot() local 2997 root_path = pn.pn_path; in nfs4_mountroot() 3018 if (error = mount_root(*name ? name : "root", root_path, NFS_V4, in nfs4_mountroot() 3036 svp->sv_pathlen = (int)(strlen(root_path) + 1); in nfs4_mountroot() 3038 (void) strcpy(svp->sv_path, root_path); in nfs4_mountroot() 3091 (void) strcpy(&rootfs.bo_name[size + 1], root_path); in nfs4_mountroot()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | devinfo.c | 287 strcmp(DI_ALL_PTR(st)->root_path, "/") == 0) 748 sizeof (((struct dinfo_io *)(NULL))->root_path); in di_ioctl() 772 sizeof (((struct dinfo_io *)(NULL))->root_path), &size) != 0) { in di_ioctl() 777 (void) strcpy(all->root_path, all->req_path); in di_ioctl() 806 arg += sizeof (((struct dinfo_io *)(NULL))->root_path); in di_ioctl() 1359 if (ddi_aliases_present == B_TRUE && strcmp(all->root_path, "/") != 0) { in di_snapshot() 1361 rootnode = ddi_alias_redirect(all->root_path); in di_snapshot() 1363 (void) ddi_pathname(rootnode, all->root_path); in di_snapshot() 1375 plen = strlen("devices/") + strlen(all->root_path) + 1; in di_snapshot() 1377 (void) snprintf(path, plen, "devices/%s", all->root_path); in di_snapshot() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | fixpath.c | 875 export_client_env(char *root_path) in export_client_env() argument 891 len = strlen(root_path) + strlen(INST_RELEASE) + 2; in export_client_env() 897 (void) snprintf(inst_release_path, len, "%s/%s", root_path, in export_client_env()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | devinfo_impl.h | 161 char root_path[1]; /* path to actual snapshot root */ member 430 char root_path[MAXPATHLEN]; member
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/opl/common/ |
H A D | opl_picl.c | 95 static char root_path[MAXSTRLEN]; in opl_pci_callback() local 144 (void) strlcpy(root_path, parent_path, prop_size); in opl_pci_callback() 221 err = get_lane_width(root_path, pci_card.slot, pci_card.dev_no, in opl_pci_callback()
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo.c | 176 (void) sprintf(dinfo_io.root_path, "/"); in di_init_impl() 178 (void) snprintf(dinfo_io.root_path, sizeof (dinfo_io.root_path), in di_init_impl() 181 (void) snprintf(dinfo_io.root_path, sizeof (dinfo_io.root_path), in di_init_impl() 341 if (strcmp(DI_ALL(pa)->root_path, "/") != 0) in di_parent_node() 1103 name[depth] = DI_ALL(pa)->root_path; in di_devfs_path() 3767 if (strcmp(dap->root_path, "/") != 0) { in di_lookup_node_impl() 3768 DPRINTF((DI_ERR, "snapshot root not / : %s\n", dap->root_path)); in di_lookup_node_impl()
|