Handling of data truncation in FUSE

Posted by Vi on Stack Overflow See other posts from Stack Overflow or by Vi
Published on 2010-05-30T12:39:34Z Indexed on 2010/05/30 12:42 UTC
Read the original article Hit count: 232

Filed under:
|
|

I expect any good program should do all their reads and writes in a loop until all data written/read without relying that write will write everything (even with regular files). Am I right?

Implemented simple FUSE filesystem which only allows reading and writing with small buffers, very often returning that it is written less bytes that in a buffer (using -o direct_io). Some programs work, some not. Are them buggy or programs should not expect truncated writes and reads from the regular files?

© Stack Overflow or respective owner

Related posts about input-output

Related posts about truncation