cloudfuse
cloudfuse copied to clipboard
Attempting to touch (update access/modification time) wipes file contents in object store
If I run the touch
command on an existing file on a cloudfuse directory (update access / modification times), the contents are wiped, including on the server's object store.
[ec2-user@production backup]$ ls -l
-rw-rw-rw- 1 root root 2000000000 Feb 27 06:56 backup.tar.aa
[ec2-user@production backup]$ touch backup.tar.aa
touch: setting times of `backup.tar.aa': Function not implemented
[ec2-user@production backup]$ ls -l
-rw-rw-rw- 1 root root 0 Feb 27 06:56 backup.tar.aa
Attempting to download/inspect the file via the OpenStack dashboard reveals the file is empty. I'm not worried about touch not working (access/modification times don't concern me) - but as the attempt to do this equals wiping the file, this could easily lead to inadvertent data loss.
Try this: https://github.com/Am1GO/cloudfuse/commit/de800c535321aef7b5c06bb11ceedfda9daf4c4b I will be very pleased if you report test results.
Excellent -- seems to have fixed the problem. Performing the same action doesn't wipe the file. Thanks!
Duplicate of #57.