projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change --output-format argument from optional to required
[fio.git]
/
t
/
dedupe.c
diff --git
a/t/dedupe.c
b/t/dedupe.c
index 5b88fcb8961ad6904b096c29082534ec59228cc3..7856da1a14865e2aaa07e9fea3b9580c9ecee4c6 100644
(file)
--- a/
t/dedupe.c
+++ b/
t/dedupe.c
@@
-21,7
+21,7
@@
#include "../smalloc.h"
#include "../minmax.h"
#include "../crc/md5.h"
#include "../smalloc.h"
#include "../minmax.h"
#include "../crc/md5.h"
-#include "../memalign.h"
+#include "../
lib/
memalign.h"
#include "../os/os.h"
#include "../gettime.h"
#include "../fio_time.h"
#include "../os/os.h"
#include "../gettime.h"
#include "../fio_time.h"
@@
-84,7
+84,7
@@
static uint64_t get_size(struct fio_file *f, struct stat *sb)
uint64_t ret;
if (S_ISBLK(sb->st_mode)) {
uint64_t ret;
if (S_ISBLK(sb->st_mode)) {
- unsigned long long bytes;
+ unsigned long long bytes
= 0
;
if (blockdev_size(f, &bytes)) {
log_err("dedupe: failed getting bdev size\n");
if (blockdev_size(f, &bytes)) {
log_err("dedupe: failed getting bdev size\n");
@@
-537,6
+537,7
@@
int main(int argc, char *argv[])
uint64_t nextents = 0, nchunks = 0;
int c, ret;
uint64_t nextents = 0, nchunks = 0;
int c, ret;
+ arch_init(argv);
debug_init();
while ((c = getopt(argc, argv, "b:t:d:o:c:p:B:")) != -1) {
debug_init();
while ((c = getopt(argc, argv, "b:t:d:o:c:p:B:")) != -1) {