]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zfs_ioctl.c
Check large block feature flag on volumes
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 24 Aug 2015 21:18:48 +0000 (14:18 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 28 Aug 2015 16:25:03 +0000 (09:25 -0700)
commit4cb7b9c5d42c831878e0cf90c845ed52a2a34d72
tree597faf8d885ecc2defc14a9db674926488323f35
parentc495fe2c1c6b1c63aefcd832e2e0eb0a20d4c4dc
Check large block feature flag on volumes

Since ZoL allows large blocks to be used by volumes, unlike upstream
illumos, the feature flag must be checked prior to volume creation.
This is critical because unlike filesystems, volumes will create a
object which uses large blocks as part of the create.  Therefore, it
cannot be safely checked in zfs_check_settable() after the dataset
can been created.

In addition this patch updates the relevant error messages to use
zfs_nicenum() to print the maximum blocksize.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3591
include/sys/zvol.h
lib/libzfs/libzfs_dataset.c
module/zfs/zfs_ioctl.c
module/zfs/zvol.c