You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@yunxing@xiang90@yichengq Let's revisit and settle on an agreement. At block level, do we allow partly write/read on blocks except the very last block in the file?
I thought our assumption is ReadAt and WriteAt always use readBlock and writeBlock with len(p) == bsize and this is exactly how our implementation currently works.
My opinion is allowing len(p) < bsize make readBlock and writeBlock more complicated and we don't even use this logic flow in practice... So maybe a simple solution which just return error and don't handle this case is better. My concern also applies on #52
通过 writeBlock(ws io.WriteSeeker, index, bs int64, p []byte),更新一个block。
当len(p)小于block size时,是什么语义?
The text was updated successfully, but these errors were encountered: