redbo / cloudfuse

Filesystem (fuse) implemented on Mosso's Cloud Files
http://redbo.github.com/cloudfuse/
MIT License
392 stars 114 forks source link

Appending to files is broken #57

Open jfriedly opened 11 years ago

jfriedly commented 11 years ago

To reproduce:

$ echo "foo" > /path/to/cloudfuse/bucket/filename
$ echo "bar" >> /path/to/cloudfuse/bucket/filename
$ cat /path/to/cloudfuse/bucket/filename
bar
Vlad1mir-D commented 10 years ago

Try this: https://github.com/Am1GO/cloudfuse/commit/de800c535321aef7b5c06bb11ceedfda9daf4c4b I will be very pleased if you report test results.

jfriedly commented 10 years ago

Hey Am1GO. Someone at my company was trying to use cloudfuse last year when I filed this ticket, but I can't remember who it was. I'll try to find out and get back to you.

Thanks for working on a fix!

gaul commented 9 years ago

cloudfuse zeros out the beginning of a file when appending:

$ echo foo > $MOUNTPOINT/directory/object
$ od -c $MOUNTPOINT/directory/object
0000000   f   o   o  \n
0000004
$ echo bar >> $MOUNTPOINT/directory/object
$ od -c $MOUNTPOINT/directory/object
0000000  \0  \0  \0  \0   b   a   r  \n
0000010
gaul commented 9 years ago

@Am1GO Confirmed that de800c535321aef7b5c06bb11ceedfda9daf4c4b addresses these symptoms.

stevenshiau commented 8 years ago

Is this issue fixed? From the tests reported to us, it seems the issue still remains. Any chance to apply the patches from Am1GO? Thanks.

maple52046 commented 8 years ago

I have solve this issue by the patch from @Am1GO . This is my commit.