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

filestore: include <linux/falloc.h> #20415

Merged
merged 1 commit into from Feb 28, 2018
Merged

Conversation

wumingqiao
Copy link
Contributor

see #7768
because we neither define FALLOC_FL_KEEP_SIZE nor include linux/falloc.h,this pull actually disable punching hole.

Signed-off-by: wumingqiao wumingqiao@inspur.com

#ifndef FALLOC_FL_PUNCH_HOLE
# define FALLOC_FL_PUNCH_HOLE 0x2
#ifdef __linux__
#include <linux/falloc.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you move this #include into FileStore.cc?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tchaikov yes, I've done it.

@tchaikov
Copy link
Contributor

@wumingqiao could you squash these two commits into a single one? and i think it will be ready for the rados qa run then.

see ceph#7768
because we neither define FALLOC_FL_KEEP_SIZE nor include linux/falloc.h,this pull actually disable punching hole.

Signed-off-by: wumingqiao <wumingqiao@inspur.com>
@wumingqiao
Copy link
Contributor Author

@tchaikov Done as your wish.

@tchaikov tchaikov merged commit 5320a13 into ceph:master Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants