diff options
author | Alexander Motin <mav@FreeBSD.org> | 2015-10-14 11:12:47 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2015-10-14 11:12:47 +0000 |
commit | 456aaec66deaa94a60853973eca0c00bcb19cad8 (patch) | |
tree | d4e44ad3e4b4c7e40f879ac4fc5fcd89aedd96a8 /lib/libzfs/common/libzfs_dataset.c | |
parent | 255a5f2cac4628050327d559e7a797c89367bb57 (diff) |
Notes
Diffstat (limited to 'lib/libzfs/common/libzfs_dataset.c')
-rw-r--r-- | lib/libzfs/common/libzfs_dataset.c | 6 |
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); } |