diff options
author | Fajar A. Nugraha <[email protected]> | 2011-03-24 15:22:52 +0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-03-24 11:48:18 -0700 |
commit | a5729f7b22e14aed657bd716f3ee98b02f7e7c41 (patch) | |
tree | e4c9a38f6bfd3f93816e60ed444eef723c7a746a /include | |
parent | 7a1cdc0775aa4405501e64ebf0bfd998e723f2d7 (diff) |
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 <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/fs/zfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/fs/zfs.h b/include/sys/fs/zfs.h index 44aed1335..920ba770d 100644 --- a/include/sys/fs/zfs.h +++ b/include/sys/fs/zfs.h @@ -785,7 +785,7 @@ typedef enum zfs_ioc { /* * zvol ioctl to get dataset name */ -#define BLKZNAME _IO(0x12,125) +#define BLKZNAME _IOR(0x12,125,char[ZFS_MAXNAMELEN]) /* * Internal SPA load state. Used by FMA diagnosis engine. |