From 2f2ae376e88b5ccb9616b54c367e194e0b540b36 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 9 Jan 2009 16:08:18 -0800 Subject: [PATCH] ifdef out some zvol specific ioctls --- module/zfs/zfs_ioctl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/zfs/zfs_ioctl.c b/module/zfs/zfs_ioctl.c index 25c31f9032..c4ac3f86ae 100644 --- a/module/zfs/zfs_ioctl.c +++ b/module/zfs/zfs_ioctl.c @@ -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 ||