From: Christoph Hellwig Date: Mon, 22 Aug 2011 14:22:56 +0000 (+0200) Subject: xfstests: fix loggen compile against recent xfsprogs headers X-Git-Tag: v1.1.0~22 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5659cc5b31ea2ed84e941e2e982f8323107de0c1;p=xfstests-dev.git xfstests: fix loggen compile against recent xfsprogs headers The XFS_BLI_CANCEL flag got rename to XFS_BLF_CANCEL, allow loggen compile with both versions. Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner --- diff --git a/src/loggen.c b/src/loggen.c index ab476887..4b556675 100644 --- a/src/loggen.c +++ b/src/loggen.c @@ -239,7 +239,11 @@ loggen_empty(int count) /* an empty buffer too */ blfs.blf_type = XFS_LI_BUF; blfs.blf_size = 2; +#ifdef XFS_BLF_CANCEL + blfs.blf_flags = XFS_BLF_CANCEL; +#else blfs.blf_flags = XFS_BLI_CANCEL; +#endif blfs.blf_len = 0; blfs.blf_blkno = 1; blfs.blf_map_size = 1;