]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r356809:
authorAlan Somers <asomers@FreeBSD.org>
Thu, 13 Feb 2020 20:45:32 +0000 (20:45 +0000)
committerAlan Somers <asomers@FreeBSD.org>
Thu, 13 Feb 2020 20:45:32 +0000 (20:45 +0000)
commit1f855d7af59ad212ce1da4a9f1271205f499a547
tree4d4f219ee2ffe5fcc4298f62179510c0f5e3c3f8
parentf33911899bc83d50a78d270e4397c9e1efa16a46
MFC r356809:

setextattr: Increase stdin buffer size to 4096

Extended attribute values can potentially be quite large. One test for ZFS
is supposed to set a 200MB xattr. However, the buffer size for reading
values from stdin with setextattr -i is so small that the test times out
waiting for tiny chunks of data to be buffered and appended to an sbuf.

Increasing the buffer size should help alleviate some of the burden of
reallocating larger sbufs when writing large extended attributes.

Submitted by: Ryan Moeller <ryan@freqlabs.com>
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D23211
usr.sbin/extattr/rmextattr.c