From 98cb3a76559cb1187f77af1d6a08d4f9b7b14aa0 Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Mon, 6 Jul 2015 04:13:12 +0200 Subject: [PATCH] Illumos 5813 - zfs_setprop_error(): Handle errno value E2BIG. 5813 zfs_setprop_error(): Handle errno value E2BIG. Reviewed by: Paul Dagnelie Reviewed by: Matthew Ahrens Reviewed by: Prakash Surya Reviewed by: Richard Elling Approved by: Garrett D'Amore References: https://github.com/illumos/illumos-gate/commit/6fdcb3d https://www.illumos.org/issues/5813 Ported-by: kernelOfTruth kerneloftruth@gmail.com Signed-off-by: Brian Behlendorf Closes #3572 --- lib/libzfs/libzfs_dataset.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/libzfs/libzfs_dataset.c b/lib/libzfs/libzfs_dataset.c index 9f23d1801..4bb826aca 100644 --- a/lib/libzfs/libzfs_dataset.c +++ b/lib/libzfs/libzfs_dataset.c @@ -1445,6 +1445,12 @@ zfs_setprop_error(libzfs_handle_t *hdl, zfs_prop_t prop, int err, (void) zfs_error(hdl, EZFS_DSREADONLY, errbuf); break; + case E2BIG: + zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, + "property value too long")); + (void) zfs_error(hdl, EZFS_BADPROP, errbuf); + break; + case ENOTSUP: zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "pool and or dataset must be upgraded to set this "