Lines Matching defs:sh
861 checkrootmount(share_t *sh, char *rpath)
865 if ((val = getshareopt(sh->sh_opts, SHOPT_NOSUB)) != NULL) {
867 if (strcmp(sh->sh_path, rpath) != 0)
899 share_t *sh = NULL;
911 if (sh) {
912 sharefree(sh);
913 sh = NULL;
916 if ((sh = findentry(rpath)) == NULL &&
917 (sh = find_lofsentry(rpath, &lofs_tried)) == NULL) {
925 } else if (checkrootmount(sh, rpath) == 0) {
938 if (newopts(sh->sh_opts))
939 flavor_count = getclientsflavors_new(sh, cln,
942 flavor_count = getclientsflavors_old(sh, cln,
974 if (sh)
975 sharefree(sh);
1214 share_t *sh = NULL;
1299 if ((sh = findentry(rpath)) == NULL &&
1300 (sh = find_lofsentry(rpath, &lofs_tried)) == NULL) {
1309 if (checkrootmount(sh, rpath) == 0) {
1314 if (newopts(sh->sh_opts))
1315 flavor_count = getclientsflavors_new(sh, &cln, flavor_list);
1317 flavor_count = getclientsflavors_old(sh, &cln, flavor_list);
1404 (sh = find_lofsentry(rpath, &lofs_tried)) != NULL) {
1488 if (sh)
1489 sharefree(sh);
1558 share_t *sh = NULL;
1567 sh = shp->shl_sh;
1568 for (p1 = sh->sh_path, p2 = path; *p1 == *p2; p1++, p2++)
1591 if (same_file_system(path, sh->sh_path))
1596 sh = shp ? sharedup(sh) : NULL;
1600 return (sh);
2003 getclientsflavors_old(share_t *sh, struct cln *cln, int *flavors)
2010 opts = strdup(sh->sh_opts);
2067 getclientsflavors_new(share_t *sh, struct cln *cln, int *flavors)
2077 opts = strdup(sh->sh_opts);
2148 check_client(share_t *sh, struct cln *cln, int flavor, uid_t clnt_uid,
2152 if (newopts(sh->sh_opts))
2153 return (check_client_new(sh, cln, flavor, clnt_uid, clnt_gid,
2157 return (check_client_old(sh, cln, flavor, clnt_uid, clnt_gid,
2282 check_client_old(share_t *sh, struct cln *cln, int flavor, uid_t clnt_uid,
2295 opts = strdup(sh->sh_opts);
2595 is_wrongsec(share_t *sh, struct cln *cln, int flavor)
2601 flavor_count = getclientsflavors_new(sh, cln, flavor_list);
2639 check_client_new(share_t *sh, struct cln *cln, int flavor, uid_t clnt_uid,
2654 opts = strdup(sh->sh_opts);
2932 if (is_wrongsec(sh, cln, flavor))
2977 share_t *sh;
3034 while ((res = getshare(f, &sh)) > 0) {
3036 if (strcmp(sh->sh_fstype, "nfs") != 0)
3049 shp->shl_sh = sharedup(sh);