zenfs
zenfs copied to clipboard
Return error on failed write buffer allocations in ZonedWritableFile
We should return an error if the write buffer fails to be allocated for buffered writablefiles. The error should be reported in NewWritableFile.
We could move the allocation out of the constructor(as that does not return an error) an add a SetBuffered or Open() method that does the allocation.