Home
last modified time | relevance | path

Searched refs:root_path (Results 1 – 16 of 16) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_setinfo_quota.c48 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 Dsmb_nt_transact_quota.c223 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 Dsmb_vss.c80 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/lib/cfgadm_plugins/scsi/common/
H A Dcfga_utils.c432 cp = root_path + len; in walk_tree()
453 init_path = root_path; in walk_tree()
505 S_FREE(root_path); in walk_tree()
812 S_FREE(root_path); in path_apid_state_change()
833 S_FREE(root_path); in path_apid_state_change()
845 S_FREE(root_path); in path_apid_state_change()
854 S_FREE(root_path); in path_apid_state_change()
875 S_FREE(root_path); in path_apid_state_change()
883 S_FREE(root_path); in path_apid_state_change()
889 S_FREE(root_path); in path_apid_state_change()
[all …]
H A Dcfga_cvt.c303 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()
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()
347 S_FREE(root_path); in path_apid_dyn_to_path()
354 walk_root = di_lookup_node(root, root_path); in path_apid_dyn_to_path()
359 S_FREE(root_path); in path_apid_dyn_to_path()
[all …]
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dmount.c560 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 Dcfga_utils.c503 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 Dnfs_common.c353 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 Dnfs_vfsops.c1667 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 Dnfs3_vfsops.c1662 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 Dnfs4_vfsops.c2960 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 Ddevinfo.c287 strcmp(DI_ALL_PTR(st)->root_path, "/") == 0)
777 (void) strcpy(all->root_path, all->req_path); in di_ioctl()
1361 rootnode = ddi_alias_redirect(all->root_path); in di_snapshot()
1363 (void) ddi_pathname(rootnode, all->root_path); in di_snapshot()
1380 all->root_path)); in di_snapshot()
1393 all->root_path)); in di_snapshot()
3706 if (all->root_path[0] != '/' || all->root_path[1] != '\0') { in header_plus_one_ok()
3708 all->root_path[0], all->root_path[1])); in header_plus_one_ok()
3791 ASSERT(strcmp(all->root_path, "/") == 0); in di_cache_write()
4054 DI_ALL_PTR(st)->root_path)); in cache_args_valid()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dfixpath.c875 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 Ddevinfo_impl.h161 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 Dopl_picl.c95 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 Ddevinfo.c174 (void) sprintf(dinfo_io.root_path, "/"); in di_init_impl()
176 (void) snprintf(dinfo_io.root_path, sizeof (dinfo_io.root_path), in di_init_impl()
179 (void) snprintf(dinfo_io.root_path, sizeof (dinfo_io.root_path), in di_init_impl()
339 if (strcmp(DI_ALL(pa)->root_path, "/") != 0) in di_parent_node()
1101 name[depth] = DI_ALL(pa)->root_path; in di_devfs_path()
3765 if (strcmp(dap->root_path, "/") != 0) { in di_lookup_node_impl()
3766 DPRINTF((DI_ERR, "snapshot root not / : %s\n", dap->root_path)); in di_lookup_node_impl()