xfstests: fix loggen compile against recent xfsprogs headers
authorChristoph Hellwig <hch@lst.de>
Mon, 22 Aug 2011 14:22:56 +0000 (16:22 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 22 Aug 2011 14:22:56 +0000 (16:22 +0200)
The XFS_BLI_CANCEL flag got rename to XFS_BLF_CANCEL, allow loggen compile
with both versions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
src/loggen.c

index ab476887f7b756e0ae65d64d3dabaf2b29425686..4b55667588e1bf10e51e3b1f05745cc238f5510c 100644 (file)
@@ -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;