Lines Matching refs:params
21 struct block_list *params = malloc(sizeof(*params)); in init() local
23 if (!params) in init()
25 params->mountpoint = mountpoint; in init()
26 params->f = fopen(file, "w+"); in init()
27 if (!params->f) { in init()
28 free(params); in init()
31 return params; in init()
38 struct block_list *params = data; in start_new_file() local
40 params->entry.head = params->entry.tail = NULL; in start_new_file()
41 params->entry.filename = LINUX_S_ISREG(inode->i_mode) ? path : NULL; in start_new_file()
48 struct block_list *params = data; in add_block() local
50 if (params->entry.filename && !metadata) in add_block()
51 add_blocks_to_range(¶ms->entry.head, ¶ms->entry.tail, in add_block()
64 struct block_list *params = data; in end_new_file() local
66 if (!params->entry.filename || !params->entry.head) in end_new_file()
68 if (fprintf(params->f, "%s%s ", params->mountpoint, in end_new_file()
69 params->entry.filename) < 0 in end_new_file()
70 || write_block_ranges(params->f, params->entry.head, " ") in end_new_file()
71 || fwrite("\n", 1, 1, params->f) != 1) in end_new_file()
74 delete_block_ranges(params->entry.head); in end_new_file()
80 struct block_list *params = data; in cleanup() local
82 fclose(params->f); in cleanup()
83 free(params); in cleanup()