From: Andrew Deason Date: Wed, 8 Jan 2014 00:24:54 +0000 (-0600) Subject: SOLARIS: Support VSW_STATS X-Git-Tag: upstream/1.8.0_pre1^2~845 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b0f433986ce344bf153cce1f6372de20750e052b;p=packages%2Fo%2Fopenafs.git SOLARIS: Support VSW_STATS Specify the VSW_STATS flag to the vfsdef_t structure we give to Solaris. This turns on statistics that can be retrieved via fsstat(1M) and allows the fsinfo::: DTrace provider to work with AFS files. We don't need to actually maintain these statistics; Solaris does that for us. This flag just signifies that our vfs_t structure is capable of storing the information. Since we get our vfs_t from Solaris (via domount(), it gives us a vfs_t when it calls our afs_mount function) and do not allocate a vfs_t ourselves, we are safe and this is fine to do. Change-Id: I356df91ea409245f0c5b1e4ef693ac28ad8f11b2 Reviewed-on: http://gerrit.openafs.org/10679 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk Reviewed-by: Derrick Brashear --- diff --git a/src/afs/SOLARIS/osi_vfsops.c b/src/afs/SOLARIS/osi_vfsops.c index d06a94a5d..ebb5012f9 100644 --- a/src/afs/SOLARIS/osi_vfsops.c +++ b/src/afs/SOLARIS/osi_vfsops.c @@ -459,7 +459,7 @@ static vfsdef_t afs_vfsdef = { VFSDEF_VERSION, "afs", afsinit, - 0, + VSW_STATS, NULL }; #else @@ -467,7 +467,7 @@ static struct vfsdef_v3 afs_vfsdef = { VFSDEF_VERSION, "afs", afsinit, - 0 + VSW_STATS }; #endif #else