aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-12-07 09:23:44 -0800
committerBrian Behlendorf <[email protected]>2011-12-07 09:27:50 -0800
commit30a9524e45f76d4c7860bcbf5567aeaa8aeb7a82 (patch)
tree47b6ce72cc6a7e50915e92307895875a3c939e93
parent23bdb07d4e4c435205d25d3efdb5fef2d089ce5e (diff)
Set zvol_major/zvol_threads permissions
The zvol_major and zvol_threads module options were being created with 0 permission bits. This prevented them from being listed in the /sys/module/zfs/parameters/ directory, although they were visible in `modinfo zfs`. This patch fixes the issue by updating the permission bits to 0444. For the moment these options must be read-only because they are used during module initialization. Signed-off-by: Brian Behlendorf <[email protected]> Issue #392
-rw-r--r--module/zfs/zvol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c
index 61e22b8ec..a25fbbe5e 100644
--- a/module/zfs/zvol.c
+++ b/module/zfs/zvol.c
@@ -1350,8 +1350,8 @@ zvol_fini(void)
list_destroy(&zvol_state_list);
}
-module_param(zvol_major, uint, 0);
+module_param(zvol_major, uint, 0444);
MODULE_PARM_DESC(zvol_major, "Major number for zvol device");
-module_param(zvol_threads, uint, 0);
+module_param(zvol_threads, uint, 0444);
MODULE_PARM_DESC(zvol_threads, "Number of threads for zvol device");