From: Jens Axboe Date: Sat, 12 Jan 2013 09:27:53 +0000 (+0100) Subject: configure: enable e4defrag engine regardless of MOVE_EXTENT compile test X-Git-Tag: fio-2.0.14~126 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=c7165b8dc2b5e6c72ac79d9979cc8971f2eeac30 configure: enable e4defrag engine regardless of MOVE_EXTENT compile test It may exist in the running kernel, even if the defines and structures haven't bubbled back into userspace yet. The engine carries it's own check and structure define for that case. Signed-off-by: Jens Axboe --- diff --git a/configure b/configure index 9cdfc498..3558bf48 100755 --- a/configure +++ b/configure @@ -585,7 +585,12 @@ int main(int argc, char **argv) return ioctl(0, EXT4_IOC_MOVE_EXT, &me); } EOF -if compile_prog "" "" "ext4 move extent"; then +if compile_prog "" "" "ext4 move extent" ; then + ext4_me="yes" +elif test $targetos = "Linux" ; then + # On Linux, just default to it on and let it error at runtime if we really + # don't have it. None of my updated systems have it defined, but it does + # work. Takes a while to bubble back. ext4_me="yes" fi echo "EXT4 move extent $ext4_me"