Skip to content

Commit 98cb3a7

Browse files
wcabehlendorf
authored andcommitted
Illumos 5813 - zfs_setprop_error(): Handle errno value E2BIG.
5813 zfs_setprop_error(): Handle errno value E2BIG. Reviewed by: Paul Dagnelie <paul.dagnelie@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Richard Elling <richard.elling@richardelling.com> Approved by: Garrett D'Amore <garrett@damore.org> References: illumos/illumos-gate@6fdcb3d https://www.illumos.org/issues/5813 Ported-by: kernelOfTruth kerneloftruth@gmail.com Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #3572
1 parent 99197f0 commit 98cb3a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/libzfs/libzfs_dataset.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,6 +1445,12 @@ zfs_setprop_error(libzfs_handle_t *hdl, zfs_prop_t prop, int err,
14451445
(void) zfs_error(hdl, EZFS_DSREADONLY, errbuf);
14461446
break;
14471447

1448+
case E2BIG:
1449+
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
1450+
"property value too long"));
1451+
(void) zfs_error(hdl, EZFS_BADPROP, errbuf);
1452+
break;
1453+
14481454
case ENOTSUP:
14491455
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
14501456
"pool and or dataset must be upgraded to set this "

0 commit comments

Comments
 (0)