Set zvol_major/zvol_threads permissions
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 7 Dec 2011 17:23:44 +0000 (09:23 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 7 Dec 2011 17:27:50 +0000 (09:27 -0800)
commit30a9524e45f76d4c7860bcbf5567aeaa8aeb7a82
tree47b6ce72cc6a7e50915e92307895875a3c939e93
parent23bdb07d4e4c435205d25d3efdb5fef2d089ce5e
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 <behlendorf1@llnl.gov>
Issue #392
module/zfs/zvol.c