From eb29ae54fee41d862a3adc13571ba1721fbded87 Mon Sep 17 00:00:00 2001 From: ssouhlal Date: Sun, 21 Aug 2005 22:06:41 +0000 Subject: 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. --- sys/ufs/ffs/ffs_vfsops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/ufs') 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) { /* -- cgit v1.1