ifdef out some zvol specific ioctls

This commit is contained in:
Brian Behlendorf 2009-01-09 16:08:18 -08:00
parent e86fa83ee6
commit 2f2ae376e8
1 changed files with 6 additions and 0 deletions
module/zfs

View File

@ -1516,6 +1516,7 @@ zfs_set_prop_nvlist(const char *name, nvlist_t *nvl)
return (error);
break;
#ifdef HAVE_ZVOL
case ZFS_PROP_VOLSIZE:
if ((error = nvpair_value_uint64(elem, &intval)) != 0 ||
(error = zvol_set_volsize(name,
@ -1528,6 +1529,11 @@ zfs_set_prop_nvlist(const char *name, nvlist_t *nvl)
(error = zvol_set_volblocksize(name, intval)) != 0)
return (error);
break;
#else
case ZFS_PROP_VOLSIZE:
case ZFS_PROP_VOLBLOCKSIZE:
return (ENOTSUP);
#endif /* HAVE_ZVOL */
case ZFS_PROP_VERSION:
if ((error = nvpair_value_uint64(elem, &intval)) != 0 ||