Lines Matching defs:path
168 * Create a file system path for the door
799 char *path, rpath[MAXPATHLEN];
803 path = NULL;
806 if (!svc_getargs(transp, xdr_dirpath, (caddr_t)&path)) {
810 if (lstat(path, &st) < 0) {
815 * Get a path without symbolic links.
817 if (realpath(path, rpath) == NULL) {
820 path);
852 if (path != NULL)
853 svc_freeargs(transp, xdr_dirpath, (caddr_t)&path);
896 mount_enoent_error(struct cln *cln, char *path, char *rpath, int *flavor_list)
903 checkpath = strdup(path);
964 * Get the real path (no symbolic links in it)
986 enqueue_logging_data(char *host, SVCXPRT *transp, char *path,
1033 lq->ld_path = strdup(path);
1213 char *path, rpath[MAXPATHLEN];
1226 path = NULL;
1228 if (!svc_getargs(transp, xdr_dirpath, (caddr_t)&path)) {
1264 host, path);
1286 * Get the real path (no symbolic links in it)
1288 if (realpath(path, rpath) == NULL) {
1292 "mount request: realpath: %s: %m", path);
1294 error = mount_enoent_error(&cln, path, rpath,
1410 path);
1465 error ? "denied" : "mounted", path);
1471 enqueued = enqueue_logging_data(host, transp, path, rpath,
1480 audit_mountd_mount(host, path, audit_status); /* BSM */
1485 if (path != NULL)
1486 svc_freeargs(transp, xdr_dirpath, (caddr_t)&path);
1556 findentry(char *path)
1568 for (p1 = sh->sh_path, p2 = path; *p1 == *p2; p1++, p2++)
1591 if (same_file_system(path, sh->sh_path))
1605 is_substring(char **mntp, char **path)
1607 char *p1 = *mntp, *p2 = *path;
1614 *path = --p2; /* we need the slash in p2 */
1626 * find_lofsentry() searches for the real path which this requested LOFS path
1628 * the real path that corresponds to the LOFS path.
1629 * We first search mnttab to see if the requested path is an automounted
1630 * path. If it is an automounted path, it will trigger the mount by stat()ing
1631 * the requested path. Note that it is important to check that this path is
1632 * actually an automounted path, otherwise we would stat() a path which may
1638 * is a substring of the rpath. If found, we construct a new path by
1640 * to make sure the 'real path' is shared.
1666 * Obtain the mountpoint for the requested path.
1680 * If the path needs to be autoFS mounted, trigger the mount by
1687 * The requested path is a substring of an autoFS filesystem.
1697 * The requested path is a directory, stat(2) it
1732 * now search mnttab again to determine if the requested path
1733 * is an LOFS mount of a shared path.
3100 char *host, *path, *remove_path;
3106 path = NULL;
3107 if (!svc_getargs(transp, xdr_dirpath, (caddr_t)&path)) {
3124 svc_freeargs(transp, xdr_dirpath, (caddr_t)&path);
3129 syslog(LOG_NOTICE, "UNMOUNT: %s unmounted %s", host, path);
3131 audit_mountd_umount(host, path);
3133 remove_path = rpath; /* assume we will use the cannonical path */
3134 if (realpath(path, rpath) == NULL) {
3136 syslog(LOG_WARNING, "UNMOUNT: realpath: %s: %m ", path);
3137 remove_path = path; /* use path provided instead */
3144 svc_freeargs(transp, xdr_dirpath, (caddr_t)&path);