From 30a9524e45f76d4c7860bcbf5567aeaa8aeb7a82 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 7 Dec 2011 09:23:44 -0800 Subject: [PATCH] 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 Issue #392 --- module/zfs/zvol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c index 61e22b8ecfaf..a25fbbe5e565 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");