[Pvfs2-users] corrupted output
crispy at cs.nyu.edu
Tue Dec 14 17:29:44 EST 2010
I'm having a problem where files written to a PVFS volume overwrite the
beginning of the file after some output has already been generated, as
if lseek() had been called mid-write. The overwriting behavior does not
show up on a regular ext3 volume. Sample code is attached. I'd like to
know if anyone can duplicate this behavior, because it looks like a bug.
Essentially what happens is this: given a large (1024+ character)
string, I write some portion of the string using a C++ ostream, then
write another line:
out << st.substr(0, N);
out << "done";
If N < 1024, everything is fine. If N >= 1024, "done" is written at the
beginning of the file, overwriting what was there before.
I'd love to figure this out!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1014 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs2-users/attachments/20101214/f32a6b75/pvfstest.bin
More information about the Pvfs2-users