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

The file size shows incorrect size when copy-up (cow) is in progress #69

Open
pralaydak opened this issue Jun 16, 2017 · 0 comments
Open

Comments

@pralaydak
Copy link

While working on my cow-optimized feature (cowolf) I found an issue today.

When copy-up (copying file from lower branch to upper branch) is in progress, doing "ls" shows incorrect file size (it shows the size it copied so far). As expected, it happens for large files when it takes longer time to copy (on the top of that, I have a very slow NFS mount).

I made some fix (which solves my problem). In this fix, it creates a "_COPYUP~" metafile to indicates copy-up-in-progress. But most likely this fix does not address other corner cases. For example, two simultaneous write() operations taking places and both triggering copy-up.

Here, the fix:
https://github.com/pralaydak/unionfs-fuse/tree/copyup_fix

There is test script test_copyup.py included as well.

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

1 participant