• Home
  • Raw
  • Download

Lines Matching refs:cow

119 struct cow {  struct
144 struct cow cow; member
171 .cow = DEFAULT_COW, \
378 ubd_dev->cow.file = backing_file; in ubd_setup_common()
511 if (ubd_dev->file && ubd_dev->cow.file) { in ubd_file_size()
512 file = ubd_dev->cow.file; in ubd_file_size()
584 static int path_requires_switch(char *from_cmdline, char *from_cow, char *cow) in path_requires_switch() argument
611 from_cmdline, from_cow, cow); in path_requires_switch()
723 if(ubd_dev->cow.file == NULL) in ubd_close_dev()
726 os_close_file(ubd_dev->cow.fd); in ubd_close_dev()
727 vfree(ubd_dev->cow.bitmap); in ubd_close_dev()
728 ubd_dev->cow.bitmap = NULL; in ubd_close_dev()
740 create_ptr = (ubd_dev->cow.file != NULL) ? &create_cow : NULL; in ubd_open_dev()
741 back_ptr = ubd_dev->no_cow ? NULL : &ubd_dev->cow.file; in ubd_open_dev()
744 back_ptr, &ubd_dev->cow.bitmap_offset, in ubd_open_dev()
745 &ubd_dev->cow.bitmap_len, &ubd_dev->cow.data_offset, in ubd_open_dev()
749 fd = create_cow_file(ubd_dev->file, ubd_dev->cow.file, in ubd_open_dev()
751 &ubd_dev->cow.bitmap_offset, in ubd_open_dev()
752 &ubd_dev->cow.bitmap_len, in ubd_open_dev()
753 &ubd_dev->cow.data_offset); in ubd_open_dev()
756 "\"%s\"\n", ubd_dev->file, ubd_dev->cow.file); in ubd_open_dev()
767 if(ubd_dev->cow.file != NULL){ in ubd_open_dev()
771 ubd_dev->cow.bitmap = vmalloc(ubd_dev->cow.bitmap_len); in ubd_open_dev()
772 if(ubd_dev->cow.bitmap == NULL){ in ubd_open_dev()
778 err = read_cow_bitmap(ubd_dev->fd, ubd_dev->cow.bitmap, in ubd_open_dev()
779 ubd_dev->cow.bitmap_offset, in ubd_open_dev()
780 ubd_dev->cow.bitmap_len); in ubd_open_dev()
786 err = open_ubd_file(ubd_dev->cow.file, &flags, ubd_dev->shared, NULL, in ubd_open_dev()
789 ubd_dev->cow.fd = err; in ubd_open_dev()
956 if(ubd_dev->cow.file != NULL){ in ubd_get_config()
958 CONFIG_CHUNK(str, size, len, ubd_dev->cow.file, 1); in ubd_get_config()
1221 io_req->fds[0] = (ubd_dev->cow.file != NULL) ? ubd_dev->cow.fd : in prepare_request()
1232 io_req->offsets[1] = ubd_dev->cow.data_offset; in prepare_request()
1236 if(ubd_dev->cow.file != NULL) in prepare_request()
1237 cowify_req(io_req, ubd_dev->cow.bitmap, in prepare_request()
1238 ubd_dev->cow.bitmap_offset, ubd_dev->cow.bitmap_len); in prepare_request()
1250 io_req->fds[0] = (ubd_dev->cow.file != NULL) ? ubd_dev->cow.fd : in prepare_flush_request()