diff --git a/tests/fsstress.c b/tests/fsstress.c index 3b8cde84..94d44177 100644 --- a/tests/fsstress.c +++ b/tests/fsstress.c @@ -1227,7 +1227,7 @@ again: } static bool -keep_running(opnum_t opno, opnum_t operations) +keep_running(opnum_t opno, opnum_t opcount) { int ret; @@ -1243,7 +1243,7 @@ keep_running(opnum_t opno, opnum_t operations) return now.tv_sec <= deadline.tv_sec; } - return opno < operations; + return opno < opcount; } void @@ -2117,9 +2117,9 @@ non_btrfs_freq(const char *path) ops[btrfs_ops[i]].freq = 0; } -static void inode_info(char *str, size_t sz, struct stat64 *s, int verbose) +static void inode_info(char *str, size_t sz, struct stat64 *s, int be_verbose) { - if (verbose) + if (be_verbose) snprintf(str, sz, "[%ld %ld %d %d %lld %lld]", verifiable_log ? -1: (long)s->st_ino, (long)s->st_nlink, s->st_uid, s->st_gid, diff --git a/tests/fssum.c b/tests/fssum.c index f41daf5c..9ae21c6e 100644 --- a/tests/fssum.c +++ b/tests/fssum.c @@ -16,6 +16,13 @@ * Boston, MA 021110-1307, USA. */ +#define _BSD_SOURCE +#define _DEFAULT_SOURCE +#define _LARGEFILE64_SOURCE +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif + #include "kerncompat.h" #include #include