Lines Matching refs:db_node

170 	void *db_node;  in create_files()  local
203 db_node = files_db_add_byfileno(state->db_handle, in create_files()
206 files_db_update_size(db_node, file_state.size); in create_files()
207 files_db_update_filename(db_node, filename); in create_files()
213 do_one_io(void *db_node, in do_one_io() argument
228 ret = lseek(files_db_get_fd(db_node), in do_one_io()
234 progname, files_db_get_filename(db_node), in do_one_io()
242 ret = pread(files_db_get_fd(db_node), p, in do_one_io()
249 files_db_get_filename(db_node), in do_one_io()
257 ret = pwrite(files_db_get_fd(db_node), p, in do_one_io()
264 files_db_get_filename(db_node), in do_one_io()
272 ret = read(files_db_get_fd(db_node), p, in do_one_io()
279 files_db_get_filename(db_node), in do_one_io()
287 ret = write(files_db_get_fd(db_node), p, in do_one_io()
294 files_db_get_filename(db_node), in do_one_io()
302 ioshark_handle_mmap(db_node, file_op, in do_one_io()
308 fd = open(files_db_get_filename(db_node), in do_one_io()
324 files_db_get_filename(db_node), in do_one_io()
331 fd = open(files_db_get_filename(db_node), in do_one_io()
341 files_db_get_filename(db_node), in do_one_io()
348 files_db_close_fd(db_node); in do_one_io()
349 files_db_update_fd(db_node, fd); in do_one_io()
354 ret = fsync(files_db_get_fd(db_node)); in do_one_io()
359 files_db_get_filename(db_node), in do_one_io()
364 ret = fdatasync(files_db_get_fd(db_node)); in do_one_io()
369 files_db_get_filename(db_node), in do_one_io()
376 ret = close(files_db_get_fd(db_node)); in do_one_io()
381 files_db_get_filename(db_node), errno); in do_one_io()
384 files_db_update_fd(db_node, -1); in do_one_io()
397 void *db_node; in do_io() local
440 db_node = files_db_lookup_byfileno(state->db_handle, in do_io()
442 if (db_node == NULL) { in do_io()
452 files_db_get_fd(db_node) == -1) { in do_io()
460 if (files_db_readonly(db_node)) in do_io()
464 fd = open(files_db_get_filename(db_node), in do_io()
469 files_db_get_filename(db_node), in do_io()
474 files_db_update_fd(db_node, fd); in do_io()
476 do_one_io(db_node, &file_op, in do_io()