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

implement "new" qemu feature discard-zeroes #421

Open
vtolstov opened this issue Nov 13, 2017 · 0 comments
Open

implement "new" qemu feature discard-zeroes #421

vtolstov opened this issue Nov 13, 2017 · 0 comments

Comments

@vtolstov
Copy link
Contributor

Sometime ago qemu have detection of writing zeroes and transparently can du unmap requst to underlining storage.
I think for sheepdog it easy can be implemented to use OP_DISCARD with offset and len.
In this case then user try to write file with zeroes and file size more then one block we can fallocate it to zero hole.
If written data less then block - we can split request to discard/write new or do like now - detect zeroes on sheep side.
What do you think?

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