Index | Thread | Search

From:
Todd C. Miller <millert@openbsd.org>
Subject:
Re: BUFSIZ-related pessimization in fvwrite.c
To:
enh <enh@google.com>
Cc:
OpenBSD Tech <tech@openbsd.org>
Date:
Fri, 26 Apr 2024 17:05:51 -0600

Download raw body.

Thread
On Fri, 26 Apr 2024 13:56:59 -0700, enh wrote:

> [-netbsd since they took the Apple patch as-is]
>
> openbsd: thoughts?

I see no reason not to do this, short writes are handled gracefully.
I'm not aware of any hard requirement to do buffered writes in
multiples of the buffer size.  This may just be stdio trying to do
writes in a multiple of the optimal I/O block size (st_blksize).

 - todd