Project

General

Profile

Submit #2122 » 0001-Fix-a-bug-in-nullfs_mount-and-nullfs_statfs.patch

ftigeot, 09/02/2011 08:01 AM

View differences:

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);
}
(4-4/4)