From c793e7dada9ac926487d6707dfe602dc27868aab Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 22 Apr 2003 07:04:06 +0000 Subject: [PATCH] Add Steve's preallocation changes into local copy of the fstest source. --- src/fstest.c | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/src/fstest.c b/src/fstest.c index a0078bc5..18d5bf89 100644 --- a/src/fstest.c +++ b/src/fstest.c @@ -1,19 +1,13 @@ /* Verification tool, designed to detect data corruption on a filesystem tridge@samba.org, March 2002 + + XFS space preallocation changes -- lord@sgi.com, April 2003 */ -#include -#include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include +#include +#include +#include /* variables settable on the command line */ static int loop_count = 100; @@ -22,6 +16,7 @@ static int file_size = 1024*1024; static int block_size = 1024; static char *base_dir = "."; static int use_mmap; +static int do_prealloc; static int use_sync; static int do_frags = 1; @@ -78,6 +73,8 @@ static void check_buffer(uchar *buf, int loop, int child, int fnum, int ofs) for (j=0;j