vagga
vagga copied to clipboard
Container hard-linking To Do
- [x] Index after downloading from cache (but first probably we may need to fix #363)
- [ ]
vagga _verify container-nameto test that files have not been modified and still correspond to index file - [ ]
vagga _hardlink container-nameto hardlink manually - [ ] Hardlinking all over the
storage-dir - [x] Verify file permissions when hardlinking
- [ ] Is it safe to discard errors when hardlinking?
/cc @anti-social
Should we check uid and gid before hardlinking? I think so.
Should we check uid and gid before hardlinking? I think so.
Yes, I think we should.
Verify file permissions when hardlinking
Already done: https://github.com/tailhook/vagga/blob/master/src/wrapper/build.rs#L579
Is it safe to discard errors when hardlinking?
Most of the errors can appear because a container could be deleted when we was creating a hardlink to a file in the container. I think we should ignore those errors as our container was successfully built.
For vagga _hardlink command errors definitely should not be discarded.
Most of the errors can appear because a container could be deleted when we was creating a hardlink to a file in the container. I think we should ignore those errors as our container was successfully built.
Basically, this means we need to ignore ENOENT errors but no other. Right?