summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorssouhlal <ssouhlal@FreeBSD.org>2005-08-21 22:06:41 +0000
committerssouhlal <ssouhlal@FreeBSD.org>2005-08-21 22:06:41 +0000
commiteb29ae54fee41d862a3adc13571ba1721fbded87 (patch)
tree8d3728d667b88d566b597b92f88ef10fd2b4889d /sys
parent1d5b220fd5bc9c7ccca052fd6a9a93983b228eee (diff)
downloadFreeBSD-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')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c3
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) {
/*
OpenPOWER on IntegriCloud