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

fileutil: return immediately if preallocating 0 bytes #8046

Merged
merged 1 commit into from
Jun 7, 2017

Conversation

heyitsanthony
Copy link
Contributor

fallocate will return EINVAL, causing zeroing to the end of a
0 byte file to fail.

Fixes #8045

@xiang90
Copy link
Contributor

xiang90 commented Jun 7, 2017

lgtm

fallocate will return EINVAL, causing zeroing to the end of a
0 byte file to fail.

Fixes etcd-io#8045
@heyitsanthony heyitsanthony added this to the v3.2.0 milestone Jun 7, 2017
@heyitsanthony heyitsanthony merged commit 2991119 into etcd-io:master Jun 7, 2017
@heyitsanthony heyitsanthony deleted the fix-falloc-0 branch June 7, 2017 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants