Martijn van Oosterhout <kleptog@svana.org> writes:
> What probably *should* happen is that a second write is initiated to
> write the remainder of the block, at which point the system can say
> "disk full".
You are hoping that the second write would return ENOSPC, but field
experience is that it just returns 0, and you still have to make the
assumption about why. See archives from back around the time that
patch was put in.
regards, tom lane