diff options
author | will <will@FreeBSD.org> | 2014-09-18 14:09:42 +0000 |
---|---|---|
committer | will <will@FreeBSD.org> | 2014-09-18 14:09:42 +0000 |
commit | cc4139ffebe82bc65f885722c3019ff63bfb7e33 (patch) | |
tree | 6e408bc98879fb05fc24b41113cbba00d1f1ba73 /lib/libc | |
parent | 0d43f1eace874851639945f51d8e2d44ba4d4ba3 (diff) | |
download | FreeBSD-src-cc4139ffebe82bc65f885722c3019ff63bfb7e33.zip FreeBSD-src-cc4139ffebe82bc65f885722c3019ff63bfb7e33.tar.gz |
zfs_setprop_error(): Handle errno value E2BIG.
This errno value is emitted by dsl_props_set_check() in
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_prop.c, and
is used to mean that the property value is too long. For the record,
the maximum length is ZAP_MAXVALUELEN, which is 8*1024 bytes.
Instead of claiming an unknown error (and abort()ing), provide
something more specific to the scenario involved. As far as I
can tell, E2BIG is not emitted for any other scenario.
MFC after: 1 week
Sponsored by: Spectra Logic
Affects: All ZFS versions starting 27 Feb 2009 (illumos ccba0801)
This change modified the value returned by
dsl_props_set_check(), so that it can distinguish between
a name that's too long and a value that's too long, but
libzfs was not updated accordingly.
MFSpectraBSD: r1051499 on 2014/03/28 11:07:59
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions