Lines Matching defs:rpath

799 	char *path, rpath[MAXPATHLEN];
817 if (realpath(path, rpath) == NULL) {
834 p.pc_link_max = pathconf(rpath, _PC_LINK_MAX);
837 p.pc_name_max = pathconf(rpath, _PC_NAME_MAX);
840 p.pc_path_max = pathconf(rpath, _PC_PATH_MAX);
843 if (pathconf(rpath, _PC_NO_TRUNC) == 1)
845 if (pathconf(rpath, _PC_CHOWN_RESTRICTED) == 1)
861 checkrootmount(share_t *sh, char *rpath)
867 if (strcmp(sh->sh_path, rpath) != 0)
896 mount_enoent_error(struct cln *cln, char *path, char *rpath, int *flavor_list)
916 if ((sh = findentry(rpath)) == NULL &&
917 (sh = find_lofsentry(rpath, &lofs_tried)) == NULL) {
925 } else if (checkrootmount(sh, rpath) == 0) {
966 if (realpath(checkpath, rpath) == NULL) {
987 char *rpath, int status, int error)
1038 lq->ld_rpath = strdup(rpath);
1213 char *path, rpath[MAXPATHLEN];
1288 if (realpath(path, rpath) == NULL) {
1294 error = mount_enoent_error(&cln, path, rpath,
1299 if ((sh = findentry(rpath)) == NULL &&
1300 (sh = find_lofsentry(rpath, &lofs_tried)) == NULL) {
1309 if (checkrootmount(sh, rpath) == 0) {
1377 if (getlabel(rpath, slabel) != 0) {
1402 while (nfs_getfh(rpath, vers, &len, fh) < 0) {
1404 (sh = find_lofsentry(rpath, &lofs_tried)) != NULL) {
1471 enqueued = enqueue_logging_data(host, transp, path, rpath,
1482 mntlist_new(host, rpath); /* add entry to mount list */
1627 * (rpath) shadows. If found, it will return the sharetab entry of
1638 * is a substring of the rpath. If found, we construct a new path by
1639 * concatenating the mnt_special and the remaining of rpath, call findentry()
1643 find_lofsentry(char *rpath, int *done_flag)
1669 for (p1 = ml->mntl_mnt->mnt_mountp, p2 = rpath;
1690 if (stat(rpath, &r_stbuf) < 0) {
1692 syslog(LOG_NOTICE, "%s: %m", rpath);
1702 if (strlen(rpath) + 2 > MAXPATHLEN) {
1706 rpath, MAXPATHLEN);
1710 (void) strcpy(tmp_path, rpath);
1740 for (p1 = ml->mntl_mnt->mnt_mountp, p2 = rpath;
1771 (void) strcpy(rpath, tmp_path);
3121 char rpath[MAXPATHLEN];
3153 remove_path = rpath; /* assume we will use the cannonical path */
3154 if (realpath(path, rpath) == NULL) {