]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Modify vfs_register() to use a hash calculation
authorrmacklem <rmacklem@FreeBSD.org>
Tue, 13 Sep 2011 21:01:26 +0000 (21:01 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Tue, 13 Sep 2011 21:01:26 +0000 (21:01 +0000)
commit99f390a4e8015ddd72e91fd20840ca3847704ec6
tree85cd8ef66ff4280d4897da2da74aae892c01d3fb
parentd35d0d3c95dfa04aa8c0a53cc36c0491dd9f4f18
Modify vfs_register() to use a hash calculation
on vfc_name to set vfc_typenum, so that vfc_typenum doesn't
change when file systems are loaded in different orders. This
keeps NFS file handles from changing, for file systems that
use vfc_typenum in their fsid. This change is controlled via
a loader.conf variable called vfs.typenumhash, since vfc_typenum
will change once when this is enabled. It defaults to 1 for
9.0, but will default to 0 when MFC'd to stable/8.

Tested by: hrs
Reviewed by: jhb, pjd (earlier version)
Approved by: re (kib)
MFC after: 1 month
UPDATING
sys/kern/vfs_init.c