Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/fdescfs/fdesc_vfsops.c
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | fdesc_mount(struct mount *mp) | ||||
/* | /* | ||||
* We need to initialize a few bits of our local mount point struct to | * We need to initialize a few bits of our local mount point struct to | ||||
* avoid confusion in allocvp. | * avoid confusion in allocvp. | ||||
*/ | */ | ||||
mp->mnt_data = fmp; | mp->mnt_data = fmp; | ||||
fmp->flags = 0; | fmp->flags = 0; | ||||
if (vfs_getopt(mp->mnt_optnew, "linrdlnk", NULL, NULL) == 0) | if (vfs_getopt(mp->mnt_optnew, "linrdlnk", NULL, NULL) == 0) | ||||
fmp->flags |= FMNT_LINRDLNKF; | fmp->flags |= FMNT_LINRDLNKF; | ||||
if (vfs_getopt(mp->mnt_optnew, "nodup", NULL, NULL) == 0) | |||||
fmp->flags |= FMNT_NODUP; | |||||
error = fdesc_allocvp(Froot, -1, FD_ROOT, mp, &rvp); | error = fdesc_allocvp(Froot, -1, FD_ROOT, mp, &rvp); | ||||
if (error) { | if (error) { | ||||
free(fmp, M_FDESCMNT); | free(fmp, M_FDESCMNT); | ||||
mp->mnt_data = NULL; | mp->mnt_data = NULL; | ||||
return (error); | return (error); | ||||
} | } | ||||
rvp->v_type = VDIR; | rvp->v_type = VDIR; | ||||
rvp->v_vflag |= VV_ROOT; | rvp->v_vflag |= VV_ROOT; | ||||
▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines |