Set the mountpoint path in the superblock (fs_fsmnt) at mount-time

so that it appears in the various messages (not cleanly unmounted,
filesystem full, etc). This has been broken since rev 1.261.
This commit is contained in:
Suleiman Souhlal 2005-08-21 22:06:41 +00:00
parent 03b25f5ddc
commit 93373c422f

View File

@ -739,7 +739,8 @@ ffs_mountfs(devvp, mp, td)
/*
* Set FS local "last mounted on" information (NULL pad)
*/
vfs_mountedfrom(mp, fs->fs_fsmnt);
bzero(fs->fs_fsmnt, MAXMNTLEN);
strlcpy(fs->fs_fsmnt, mp->mnt_stat.f_mntonname, MAXMNTLEN);
if( mp->mnt_flag & MNT_ROOTFS) {
/*