Lines Matching refs:file_name

61 		dprint(FD_FILE, "layout unlink %s\n", f->file_name);  in extend_file()
76 dprint(FD_FILE, "open file %s, flags %x\n", f->file_name, flags); in extend_file()
77 f->fd = open(f->file_name, flags, 0644); in extend_file()
90 f->file_name, in extend_file()
103 "file %s size %llu\n", f->file_name, in extend_file()
129 dprint(FD_FILE, "truncate file %s, size %llu\n", f->file_name, in extend_file()
174 dprint(FD_FILE, "terminate unlink %s\n", f->file_name); in extend_file()
276 if (stat(f->file_name, &st) == -1) { in file_size()
292 f->file_name); in bdev_size()
303 log_err("%s: zero sized block device?\n", f->file_name); in bdev_size()
323 f->file_name); in char_size()
334 log_err("%s: zero sized char device?\n", f->file_name); in char_size()
398 dprint(FD_IO, "invalidate cache %s: %llu/%llu\n", f->file_name, off, in __file_invalidate_cache()
425 log_info("fio: cache invalidation of %s failed: %s\n", f->file_name, strerror(errno)); in __file_invalidate_cache()
445 dprint(FD_FILE, "fd close %s\n", f->file_name); in generic_close_file()
468 __f = lookup_file_hash(f->file_name); in file_lookup_open()
470 dprint(FD_FILE, "found file in hash %s\n", f->file_name); in file_lookup_open()
477 dprint(FD_FILE, "file not found in hash %s\n", f->file_name); in file_lookup_open()
485 f->fd = open(f->file_name, flags, 0600); in file_lookup_open()
513 dprint(FD_FILE, "fd open %s\n", f->file_name); in generic_open_file()
520 if (!strcmp(f->file_name, "-")) { in generic_open_file()
591 snprintf(buf, sizeof(buf), "open(%s)", f->file_name); in generic_open_file()
646 f->file_name); in get_file_sizes()
695 strncpy(buf, f->file_name, 255); in get_fs_free_counts()
995 seed = jhash(f->file_name, strlen(f->file_name), 0) * td->thread_number; in __init_rand_distribution()
1069 "job without.\n", f->file_name); in init_random_map()
1095 dprint(FD_FILE, "free unlink %s\n", f->file_name); in close_and_free_files()
1105 dprint(FD_FILE, "free unlink %s\n", f->file_name); in close_and_free_files()
1109 sfree(f->file_name); in close_and_free_files()
1110 f->file_name = NULL; in close_and_free_files()
1132 if (!strcmp(f->file_name, "-")) in get_file_type()
1139 if (strncmp(f->file_name, "\\\\.\\", 4) == 0) in get_file_type()
1142 if (!stat(f->file_name, &sb)) { in get_file_type()
1161 filename = flist_entry(entry, struct file_name, list)->filename; in __is_already_allocated()
1182 struct file_name *fn; in set_already_allocated()
1184 fn = malloc(sizeof(struct file_name)); in set_already_allocated()
1204 struct file_name *fn; in free_already_allocated()
1211 fn = flist_entry(entry, struct file_name, list); in free_already_allocated()
1240 char file_name[PATH_MAX]; in add_file() local
1247 len = set_name_idx(file_name, td->o.directory, numjob); in add_file()
1249 sprintf(file_name + len, "%s", fname); in add_file()
1252 if (numjob && is_already_allocated(file_name)) in add_file()
1286 f->file_name = smalloc_strdup(file_name); in add_file()
1287 if (!f->file_name) { in add_file()
1312 set_already_allocated(file_name); in add_file()
1317 dprint(FD_FILE, "file %p \"%s\" added at %d\n", f, f->file_name, in add_file()
1329 if (!strcmp(f->file_name, fname)) in add_file_exclusive()
1338 dprint(FD_FILE, "get file %s, ref=%d\n", f->file_name, f->references); in get_file()
1347 dprint(FD_FILE, "put file %s, ref=%d\n", f->file_name, f->references); in put_file()
1491 if (f->file_name) { in dup_files()
1492 __f->file_name = smalloc_strdup(f->file_name); in dup_files()
1493 if (!__f->file_name) { in dup_files()
1519 if (!strcmp(f->file_name, fname)) in get_fileno()