Lines Matching refs:mntfromname
3068 /* init mount's mntfromname to first location */
3253 char fstype[MFSTYPENAMELEN], *mntfromname = NULL, *path = NULL, *relpath, *p, *cp;
3277 MALLOC_ZONE(mntfromname, char *, pathbuflen, M_NAMEI, M_WAITOK);
3278 if (!mntfromname) {
3296 * Set up the mntfromname for the new mount based on the
3297 * current mount's mntfromname and the directory's path
3303 nlen = strlcpy(mntfromname, vfs_statfs(nmp->nm_mountp)->f_mntfromname, MAXPATHLEN);
3304 if ((nlen > 0) && (mntfromname[nlen-1] == '/')) { /* avoid double '/' in new name */
3305 mntfromname[nlen-1] = '\0';
3308 relpath = mntfromname + nlen;
3309 nlen = strlcat(mntfromname, path + strlen(vfs_statfs(nmp->nm_mountp)->f_mntonname), MAXPATHLEN);
3594 mntfromname, path, error);
3601 if (mntfromname)
3602 FREE_ZONE(mntfromname, MAXPATHLEN, M_NAMEI);