mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
src/t_stripealign.c: Fix complier error
The FIEMAP_EXTENT_SHARED flag was added into kernel since commit 8c0414cd524e, so undefined FIEMAP_EXTENT_SHARED resulted in complier error on old distros(e.g. RHEL6), as below: ---------------------------------------------------------------------- t_stripealign.c:99: error: 'FIEMAP_EXTENT_SHARED' undeclared (first use in this function) ---------------------------------------------------------------------- We fix it by defining the flag manually. Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
@@ -20,6 +20,10 @@
|
||||
#include <linux/fiemap.h>
|
||||
#include <linux/fs.h>
|
||||
|
||||
#ifndef FIEMAP_EXTENT_SHARED
|
||||
# define FIEMAP_EXTENT_SHARED 0x00002000
|
||||
#endif
|
||||
|
||||
#define FIEMAP_EXTENT_ACCEPTABLE (FIEMAP_EXTENT_LAST | \
|
||||
FIEMAP_EXTENT_DATA_ENCRYPTED | FIEMAP_EXTENT_ENCODED | \
|
||||
FIEMAP_EXTENT_UNWRITTEN | FIEMAP_EXTENT_MERGED | \
|
||||
|
||||
Reference in New Issue
Block a user