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

Force disk cache flush when saving queue #28

Closed
hugbug opened this issue Jun 22, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@hugbug
Copy link
Member

commented Jun 22, 2015

The diskstate (queue, history, statistics) may become corrupted if system crashes (not nzbget crashes).

This may happen if the diskstate file were not written from system cache to disk. The disk caches can be forcibly flushed with special system functions. There is no cross-platform standard function for that but many systems have specific functions for that purpose:

Interesting articles:

@hugbug hugbug added this to the v16.0 milestone Jun 22, 2015

@hugbug hugbug removed the help wanted label Jul 8, 2015

hugbug added a commit that referenced this issue Jul 15, 2015

#28: new option "FlushQueue"
The function is without function yet.

hugbug added a commit that referenced this issue Jul 15, 2015

#28: disk state handling for disk flush
Reworked disk state handling to use disk flush function. The function
itself is not implemented yet.

hugbug added a commit that referenced this issue Jul 15, 2015

hugbug added a commit that referenced this issue Jul 16, 2015

#28: implemented disk flush on POSIX
with extra specifics for Linux and OS X.

@hugbug hugbug closed this Jul 16, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.