Fixes to enable zvol symlink creation
authorFajar A. Nugraha <github@fajar.net>
Thu, 24 Mar 2011 08:22:52 +0000 (15:22 +0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 24 Mar 2011 18:48:18 +0000 (11:48 -0700)
commita5729f7b22e14aed657bd716f3ee98b02f7e7c41
treee4c9a38f6bfd3f93816e60ed444eef723c7a746a
parent7a1cdc0775aa4405501e64ebf0bfd998e723f2d7
Fixes to enable zvol symlink creation

This commit fixes issue on
https://github.com/behlendorf/zfs/issues/#issue/172
Changes:
- update BLKZNAME to use _IOR instead of _IO.  Kernel 2.6.32 allows
read parameters (copy_to_user) with _IO, while newer kernels (tested
Archlinux's 2.6.37 kernel) enforces _IOR (which is correct)
- fix return code and message on error

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
cmd/zvol_id/zvol_id_main.c
include/sys/fs/zfs.h