#include "global.h"
char *progname;
-__uint64_t num_holes = 1000;
-__uint64_t curr_holes;
+uint64_t num_holes = 1000;
+uint64_t curr_holes;
int verbose_opt = 0;
char *filename;
int status_num = 100;
int wsync;
int preserve;
unsigned int blocksize;
-__uint64_t fileoffset;
+uint64_t fileoffset;
#define JUMP_SIZE (128 * 1024)
#define NUMHOLES_TO_SIZE(i) (i * JUMP_SIZE)
int c;
int fd;
int oflags;
- __uint64_t i;
- __uint64_t offset;
+ uint64_t i;
+ uint64_t offset;
int blocksize = 512;
unsigned char *buffer = NULL;
struct stat stat;
return 1;
}
if (verbose_opt) {
- printf("truncating back to %lu\n", NUMHOLES_TO_SIZE(num_holes));
+ printf("truncating back to %llu\n",
+ (unsigned long long)
+ NUMHOLES_TO_SIZE(num_holes));
}
return 0;
}
curr_holes = 0;
}
if (curr_holes != 0 && verbose_opt) {
- printf("creating %lu more holes\n", num_holes - curr_holes);
+ printf("creating %llu more holes\n",
+ (unsigned long long)num_holes - curr_holes);
}
/* create holes by seeking and writing */
}
if (verbose_opt && ((i+1) % status_num == 0)) {
- printf("seeked and wrote %lu times\n", i+1);
+ printf("seeked and wrote %llu times\n",
+ (unsigned long long)i + 1);
}
}