summaryrefslogtreecommitdiff
path: root/lib/libzfs/common/libzfs_dataset.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-10-14 11:12:47 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-10-14 11:12:47 +0000
commit456aaec66deaa94a60853973eca0c00bcb19cad8 (patch)
treed4e44ad3e4b4c7e40f879ac4fc5fcd89aedd96a8 /lib/libzfs/common/libzfs_dataset.c
parent255a5f2cac4628050327d559e7a797c89367bb57 (diff)
Notes
Diffstat (limited to 'lib/libzfs/common/libzfs_dataset.c')
-rw-r--r--lib/libzfs/common/libzfs_dataset.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libzfs/common/libzfs_dataset.c b/lib/libzfs/common/libzfs_dataset.c
index 05a2fdc9bec0..05c99cef67fc 100644
--- a/lib/libzfs/common/libzfs_dataset.c
+++ b/lib/libzfs/common/libzfs_dataset.c
@@ -1458,6 +1458,12 @@ zfs_setprop_error(libzfs_handle_t *hdl, zfs_prop_t prop, int err,
"property setting is not allowed on "
"bootable datasets"));
(void) zfs_error(hdl, EZFS_NOTSUP, errbuf);
+ } else if (prop == ZFS_PROP_CHECKSUM ||
+ prop == ZFS_PROP_DEDUP) {
+ (void) zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
+ "property setting is not allowed on "
+ "root pools"));
+ (void) zfs_error(hdl, EZFS_NOTSUP, errbuf);
} else {
(void) zfs_standard_error(hdl, err, errbuf);
}