0023-Populate-the-statfs-structure-associated-to-mount-po.patch

ftigeot, 08/28/2011 10:26 AM

Download (1.1 KB)

View differences:

sys/vfs/hammer/hammer_vfsops.c
809 809
		vflush(mp, 0, 0);
810 810

  
811 811
done:
812
	if ((mp->mnt_flag & MNT_UPDATE) == 0) {
813
		/* New mount */
814

  
815
		/* Populate info for mount point (NULL pad)*/
816
		bzero(mp->mnt_stat.f_mntonname, MNAMELEN);
817
		size_t size;
818
		if (mntpt) {
819
			copyinstr(mntpt, mp->mnt_stat.f_mntonname,
820
										MNAMELEN -1, &size);
821
		}
822
	}
823
	(void)VFS_STATFS(mp, &mp->mnt_stat, cred);
812 824
	hammer_rel_volume(rootvol, 0);
813 825
failed:
814 826
	/*
815
-