Gitweb:
http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=68b368b8...
Commit: 68b368b8c3cc168926820be922016bf2e40d51f5
Parent: b663012772ab7d19dcb8e456e48263806e034549
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Tue Apr 7 12:00:08 2015 +0100
Committer: Andrew Price <anprice(a)redhat.com>
CommitterDate: Tue Apr 7 12:10:01 2015 +0100
gfs2_grow: Put back the definition of FALLOC_FL_KEEP_SIZE
An #include <linux/falloc.h> was removed in commit 14193bb. Although
fallocate(2) support was added to glibc 2.10, the FALLOC_FL_*
definitions were not added until 2.18. This means that gfs2-utils failed
to build on RHEL7 which has glibc 2.17. Add back the FALLOC_FL_KEEP_SIZE
definition in main_grow.c to fix that.
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/mkfs/main_grow.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gfs2/mkfs/main_grow.c b/gfs2/mkfs/main_grow.c
index cc32585..4757ac7 100644
--- a/gfs2/mkfs/main_grow.c
+++ b/gfs2/mkfs/main_grow.c
@@ -38,6 +38,9 @@ int print_level = MSG_NOTICE;
extern int create_new_inode(struct gfs2_sbd *sdp);
extern int rename2system(struct gfs2_sbd *sdp, char *new_dir, char *new_name);
+#ifndef FALLOC_FL_KEEP_SIZE
+#define FALLOC_FL_KEEP_SIZE 0x01
+#endif
#ifndef BLKDISCARD
#define BLKDISCARD _IO(0x12,119)
#endif