From adbf313969a09a7c5627b5dc3a38b6a09fc36728 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Tue, 7 Jan 2014 18:24:54 -0600 Subject: [PATCH] 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. Reviewed-on: http://gerrit.openafs.org/10679 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk Reviewed-by: Derrick Brashear (cherry picked from commit b0f433986ce344bf153cce1f6372de20750e052b) Change-Id: I2403703f9caeb190563360d8571ee0be46890f4d Reviewed-on: https://gerrit.openafs.org/12371 Tested-by: BuildBot Reviewed-by: Michael Meffie Reviewed-by: Mark Vitale Reviewed-by: Stephan Wiesand --- src/afs/SOLARIS/osi_vfsops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/afs/SOLARIS/osi_vfsops.c b/src/afs/SOLARIS/osi_vfsops.c index 7fbbcb6bc..8cc7f6afe 100644 --- a/src/afs/SOLARIS/osi_vfsops.c +++ b/src/afs/SOLARIS/osi_vfsops.c @@ -481,7 +481,7 @@ static vfsdef_t afs_vfsdef = { VFSDEF_VERSION, "afs", afsinit, - 0, + VSW_STATS, NULL }; #else @@ -489,7 +489,7 @@ static struct vfsdef_v3 afs_vfsdef = { VFSDEF_VERSION, "afs", afsinit, - 0 + VSW_STATS }; #endif #else -- 2.39.5