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

Fsync #27

Open
jamessewell opened this issue Apr 6, 2018 · 0 comments
Open

Fsync #27

jamessewell opened this issue Apr 6, 2018 · 0 comments

Comments

@jamessewell
Copy link

Hi,

I'm writing an app that is using in stream LZ4 to write to a file. I need to guarantee that the file is sync'ed sometimes, I'm using:

encoder.flush()?;
encode.writer().sync_all()?;

Is this enough to guarantee that the lz4 buffer is

a) flushed
b) written to disk and fsync'ed
c) will be readable (even though .finish might not have been called).

Cheers,
James

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