* It has to be set at mount time in mp->mnt_stat.f_mntonname.
* Contrary to most filesystems, Hammer didn't do it.
* The new code was taken from ffs_mount() and OpenBSD's vfs_rootmountalloc()
vflush(mp, 0, 0);
done:
+ if ((mp->mnt_flag & MNT_UPDATE) == 0) {
+ /* New mount */
+
+ /* Populate info for mount point (NULL pad)*/
+ bzero(mp->mnt_stat.f_mntonname, MNAMELEN);
+ size_t size;
+ if (mntpt) {
+ copyinstr(mntpt, mp->mnt_stat.f_mntonname,
+ MNAMELEN -1, &size);
+ } else { /* Root mount */
+ mp->mnt_stat.f_mntonname[0] = '/';
+ }
+ }
+ (void)VFS_STATFS(mp, &mp->mnt_stat, cred);
hammer_rel_volume(rootvol, 0);
failed:
/*