Lines Matching defs:file
2 * Small tool to check for dedupable blocks in a file or device. Basically
80 static struct fio_file file;
169 if (read_block(file.fd, cbuf, e->offset))
172 if (read_block(file.fd, ibuf, i->offset))
433 memset(&file, 0, sizeof(file));
434 file.file_name = strdup(filename);
436 file.fd = open(filename, flags);
437 if (file.fd == -1) {
442 if (fstat(file.fd, &sb) < 0) {
447 dev_size = get_size(&file, &sb);
460 return run_dedupe_threads(&file, dev_size, nextents, nchunks);
462 if (file.fd != -1)
463 close(file.fd);
464 free(file.file_name);
523 log_err("Check for dedupable blocks on a device/file\n\n");
524 log_err("%s: [options] <device or file>\n", argv[0]);