mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfsqa: Add fiemap exerciser
Preliminary fiemap testing support based on a test util written by Josef Bacik. For now it's only run with preallocation disabled, because xfs has a tendency to fill in holes with data blocks (EOF prealloc stuff I think) and similar for explicit preallocation, so this is breaking the preallocation tests for now, when it finds a "data" block where it expects a preallocated block. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Dave Chinner
parent
b2de346746
commit
db5926819a
Vendored
+19
@@ -11,6 +11,25 @@
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
AC_DEFUN([AC_PACKAGE_WANT_LINUX_FIEMAP_H],
|
||||
[ AC_CHECK_HEADERS([linux/fiemap.h], [ have_fiemap=true ], [ have_fiemap=false ])
|
||||
AC_SUBST(have_fiemap)
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_PACKAGE_WANT_FALLOCATE],
|
||||
[ AC_MSG_CHECKING([for fallocate])
|
||||
AC_TRY_LINK([
|
||||
#define _GNU_SOURCE
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
#include <fcntl.h>
|
||||
#include <linux/falloc.h>
|
||||
], [
|
||||
fallocate(0, 0, 0, 0);
|
||||
], have_fallocate=yes
|
||||
AC_MSG_RESULT(yes),
|
||||
AC_MSG_RESULT(no))
|
||||
AC_SUBST(have_fallocate)
|
||||
])
|
||||
m4_include([m4/multilib.m4])
|
||||
m4_include([m4/package_acldev.m4])
|
||||
m4_include([m4/package_aiodev.m4])
|
||||
|
||||
Reference in New Issue
Block a user