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

Move/delete file being written/read #37

Open
denismo opened this issue Jul 31, 2013 · 0 comments
Open

Move/delete file being written/read #37

denismo opened this issue Jul 31, 2013 · 0 comments

Comments

@denismo
Copy link
Owner

denismo commented Jul 31, 2013

Linux filesystems allow the files which are being written/read to be moved or even deleted without causing errors. This is probably because an open file creates a hidden hard link to the inode (not persisted) which keeps the inode up while the file name is removed.

We need to implement it in some way preferably without locking as I believe this mechanism is used by log rotators/archivers.

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