Searched refs:donor_fd (Results 1 – 2 of 2) sorted by relevance
/external/fio/engines/ |
D | e4defrag.c | 25 __u32 donor_fd; /* donor file descriptor */ member 34 int donor_fd; member 92 ed->donor_fd = open(donor_name, O_CREAT|O_WRONLY, 0644); in fio_e4defrag_init() 93 if (ed->donor_fd < 0) { in fio_e4defrag_init() 95 log_err("Can't open donor file %s err:%d", donor_name, ed->donor_fd); in fio_e4defrag_init() 102 r = fallocate(ed->donor_fd, 0, td->o.start_offset, __len); in fio_e4defrag_init() 106 r = fstat(ed->donor_fd, &stub); in fio_e4defrag_init() 115 close(ed->donor_fd); in fio_e4defrag_init() 124 if (ed->donor_fd >= 0) in fio_e4defrag_cleanup() 125 close(ed->donor_fd); in fio_e4defrag_cleanup() [all …]
|
/external/e2fsprogs/misc/ |
D | e4defrag.c | 151 __u32 donor_fd; /* donor file descriptor */ member 1351 static int call_defrag(int fd, int donor_fd, const char *file, in call_defrag() argument 1363 move_data.donor_fd = donor_fd; in call_defrag() 1455 int donor_fd = -1; in file_defrag() local 1581 donor_fd = open64(tmp_inode_name, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR); in file_defrag() 1582 if (donor_fd < 0) { in file_defrag() 1607 ret = fallocate64(donor_fd, 0, in file_defrag() 1622 ret = get_file_extents(donor_fd, &donor_list_physical); in file_defrag() 1672 ret = call_defrag(fd, donor_fd, file, buf, donor_list_logical); in file_defrag() 1705 if (donor_fd != -1) in file_defrag() [all …]
|