• Home
  • Raw
  • Download

Lines Matching refs:file

142 	char *file;  member
156 char *file; member
174 .file = NULL, \
182 .file = NULL, \
241 char *file, *backing_file, *serial; in ubd_setup_common() local
271 if(ubd_dev->file != NULL){ in ubd_setup_common()
315 file = strsep(&str, ",:"); in ubd_setup_common()
316 if (*file == '\0') in ubd_setup_common()
317 file = NULL; in ubd_setup_common()
333 ubd_dev->file = file; in ubd_setup_common()
334 ubd_dev->cow.file = backing_file; in ubd_setup_common()
513 char *file; in ubd_file_size() local
525 if (ubd_dev->file && ubd_dev->cow.file) { in ubd_file_size()
526 file = ubd_dev->cow.file; in ubd_file_size()
531 fd = os_open_file(ubd_dev->file, of_read(OPENFLAGS()), 0); in ubd_file_size()
540 file = ubd_dev->file; in ubd_file_size()
542 file = backing_file; in ubd_file_size()
545 return os_file_size(file, size_out); in ubd_file_size()
559 static int backing_file_mismatch(char *file, __u64 size, time64_t mtime) in backing_file_mismatch() argument
565 err = os_file_modtime(file, &modtime); in backing_file_mismatch()
568 "file \"%s\", err = %d\n", file, -err); in backing_file_mismatch()
572 err = os_file_size(file, &actual); in backing_file_mismatch()
575 "err = %d\n", file, -err); in backing_file_mismatch()
625 static int open_ubd_file(char *file, struct openflags *openflags, int shared, in open_ubd_file() argument
636 fd = os_open_file(file, *openflags, mode); in open_ubd_file()
644 fd = os_open_file(file, *openflags, mode); in open_ubd_file()
650 printk(KERN_INFO "Not locking \"%s\" on the host\n", file); in open_ubd_file()
655 file, -err); in open_ubd_file()
668 "\"%s\", errno = %d\n", file, -err); in open_ubd_file()
675 file); in open_ubd_file()
682 err = write_cow_header(file, fd, *backing_file_out, in open_ubd_file()
733 if(ubd_dev->cow.file == NULL) in ubd_close_dev()
750 create_ptr = (ubd_dev->cow.file != NULL) ? &create_cow : NULL; in ubd_open_dev()
751 back_ptr = ubd_dev->no_cow ? NULL : &ubd_dev->cow.file; in ubd_open_dev()
753 fd = open_ubd_file(ubd_dev->file, &ubd_dev->openflags, ubd_dev->shared, in ubd_open_dev()
759 fd = create_cow_file(ubd_dev->file, ubd_dev->cow.file, in ubd_open_dev()
766 "\"%s\"\n", ubd_dev->file, ubd_dev->cow.file); in ubd_open_dev()
771 printk("Failed to open '%s', errno = %d\n", ubd_dev->file, in ubd_open_dev()
777 if(ubd_dev->cow.file != NULL){ in ubd_open_dev()
796 err = open_ubd_file(ubd_dev->cow.file, &flags, ubd_dev->shared, NULL, in ubd_open_dev()
891 if(ubd_dev->file == NULL) in ubd_add()
959 ubd_devs[n].file = NULL; in ubd_config()
984 if(ubd_dev->file == NULL){ in ubd_get_config()
989 CONFIG_CHUNK(str, size, len, ubd_dev->file, 0); in ubd_get_config()
991 if(ubd_dev->cow.file != NULL){ in ubd_get_config()
993 CONFIG_CHUNK(str, size, len, ubd_dev->cow.file, 1); in ubd_get_config()
1022 if(ubd_dev->file == NULL) in ubd_remove()
1068 if(ubd_dev->file == NULL) in ubd0_init()
1069 ubd_dev->file = "root_fs"; in ubd0_init()
1166 disk->disk_name, ubd_dev->file, -err); in ubd_open()
1278 if (dev->cow.file) { in ubd_map_req()
1302 if (dev->cow.file) in ubd_alloc_req()