cloudfuse icon indicating copy to clipboard operation
cloudfuse copied to clipboard

Attempting to touch (update access/modification time) wipes file contents in object store

Open davidjb opened this issue 10 years ago • 3 comments

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.

davidjb avatar Mar 02 '14 23:03 davidjb

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

Vlad1mir-D avatar Jul 18 '14 07:07 Vlad1mir-D

Excellent -- seems to have fixed the problem. Performing the same action doesn't wipe the file. Thanks!

davidjb avatar Jul 21 '14 04:07 davidjb

Duplicate of #57.

gaul avatar Mar 20 '15 06:03 gaul