Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
davidjb opened this issue Mar 2, 2014 · 3 comments

Comments

@davidjb
Copy link
Contributor

davidjb commented Mar 2, 2014

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.

Vlad1mir-D added a commit to Vlad1mir-D/cloudfuse that referenced this issue Jul 18, 2014
@Vlad1mir-D
Copy link

Try this:
Vlad1mir-D@de800c5
I will be very pleased if you report test results.

@davidjb
Copy link
Contributor Author

davidjb commented Jul 21, 2014

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

@gaul
Copy link
Contributor

gaul commented Mar 20, 2015

Duplicate of #57.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants