aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/zvol.h
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2015-08-24 14:18:48 -0700
committerBrian Behlendorf <[email protected]>2015-08-28 09:25:03 -0700
commit4cb7b9c5d42c831878e0cf90c845ed52a2a34d72 (patch)
tree597faf8d885ecc2defc14a9db674926488323f35 /include/sys/zvol.h
parentc495fe2c1c6b1c63aefcd832e2e0eb0a20d4c4dc (diff)
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 <[email protected]> Closes #3591
Diffstat (limited to 'include/sys/zvol.h')
-rw-r--r--include/sys/zvol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/zvol.h b/include/sys/zvol.h
index 04e099657..898e23521 100644
--- a/include/sys/zvol.h
+++ b/include/sys/zvol.h
@@ -34,7 +34,7 @@
#ifdef _KERNEL
extern int zvol_check_volsize(uint64_t volsize, uint64_t blocksize);
-extern int zvol_check_volblocksize(uint64_t volblocksize);
+extern int zvol_check_volblocksize(const char *name, uint64_t volblocksize);
extern int zvol_get_stats(objset_t *os, nvlist_t *nv);
extern boolean_t zvol_is_zvol(const char *);
extern void zvol_create_cb(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx);