diff options
author | ssouhlal <ssouhlal@FreeBSD.org> | 2005-08-21 22:06:41 +0000 |
---|---|---|
committer | ssouhlal <ssouhlal@FreeBSD.org> | 2005-08-21 22:06:41 +0000 |
commit | eb29ae54fee41d862a3adc13571ba1721fbded87 (patch) | |
tree | 8d3728d667b88d566b597b92f88ef10fd2b4889d /sys/ufs/ffs | |
parent | 1d5b220fd5bc9c7ccca052fd6a9a93983b228eee (diff) | |
download | FreeBSD-src-eb29ae54fee41d862a3adc13571ba1721fbded87.zip FreeBSD-src-eb29ae54fee41d862a3adc13571ba1721fbded87.tar.gz |
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.
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index d80be58..19bbb81 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -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) { /* |