Submit #2122 » 0001-Fix-a-bug-in-nullfs_mount-and-nullfs_statfs.patch
sys/vfs/nullfs/null_vfsops.c | ||
---|---|---|
NULLFSDEBUG("nullfs_mount: lower %s, alias at %s\n",
|
||
mp->mnt_stat.f_mntfromname, mp->mnt_stat.f_mntfromname);
|
||
bzero(mp->mnt_stat.f_mntonname, MNAMELEN);
|
||
if (path != NULL) {
|
||
(void) copyinstr(path, mp->mnt_stat.f_mntonname, MNAMELEN - 1,
|
||
&size);
|
||
}
|
||
/*
|
||
* Set NCALIASED so unmount won't complain about namecache refs
|
||
* still existing.
|
||
... | ... | |
if (sbp != &mp->mnt_stat) {
|
||
bcopy(&mp->mnt_stat.f_fsid, &sbp->f_fsid, sizeof(sbp->f_fsid));
|
||
bcopy(mp->mnt_stat.f_mntfromname, sbp->f_mntfromname, MNAMELEN);
|
||
bcopy(mp->mnt_stat.f_mntonname, sbp->f_mntonname, MNAMELEN);
|
||
}
|
||
return (0);
|
||
}
|
- « Previous
- 1
- 2
- 3
- 4
- Next »