Home
last modified time | relevance | path

Searched refs:backing_file (Results 1 – 7 of 7) sorted by relevance

/external/qemu/block/
Dcow.c40 char backing_file[1024]; member
94 pstrcpy(bs->backing_file, sizeof(bs->backing_file), in cow_open()
95 cow_header.backing_file); in cow_open()
246 pstrcpy(cow_header.backing_file, sizeof(cow_header.backing_file), in cow_create()
Dvmdk.c187 static int vmdk_snapshot_create(const char *filename, const char *backing_file) in vmdk_snapshot_create() argument
215 p_fd = open(backing_file, O_RDONLY | O_BINARY | O_LARGEFILE); in vmdk_snapshot_create()
256 snprintf(s_desc, sizeof(s_desc), desc_template, p_cid, p_cid, backing_file, in vmdk_snapshot_create()
341 if ((end_name - p_name) > sizeof (s->hd->backing_file) - 1) in vmdk_parent_open()
344 pstrcpy(s->hd->backing_file, end_name - p_name + 1, p_name); in vmdk_parent_open()
345 if (stat(s->hd->backing_file, &file_buf) != 0) { in vmdk_parent_open()
347 filename, s->hd->backing_file); in vmdk_parent_open()
350 s->hd->backing_file); in vmdk_parent_open()
716 const char *backing_file = NULL; in vmdk_create() local
724 backing_file = options->value.s; in vmdk_create()
[all …]
Dqcow2.c246 if (bdrv_pread(s->hd, header.backing_file_offset, bs->backing_file, len) != len) in qcow_open()
248 bs->backing_file[len] = '\0'; in qcow_open()
653 const char *backing_file, const char *backing_format, in qcow_create2() argument
676 if (backing_file) { in qcow_create2()
684 backing_filename_len = strlen(backing_file); in qcow_create2()
746 if (backing_file) { in qcow_create2()
760 write(fd, backing_file, backing_filename_len); in qcow_create2()
781 const char *backing_file = NULL; in qcow_create() local
792 backing_file = options->value.s; in qcow_create()
805 return qcow_create2(filename, sectors, backing_file, backing_fmt, flags, in qcow_create()
Dqcow.c161 if (bdrv_pread(s->hd, header.backing_file_offset, bs->backing_file, len) != len) in qcow_open()
163 bs->backing_file[len] = '\0'; in qcow_open()
751 const char *backing_file = NULL; in qcow_create() local
759 backing_file = options->value.s; in qcow_create()
775 if (backing_file) { in qcow_create()
776 if (strcmp(backing_file, "fat:")) { in qcow_create()
778 backing_filename_len = strlen(backing_file); in qcow_create()
783 backing_file = NULL; in qcow_create()
805 if (backing_file) { in qcow_create()
806 write(fd, backing_file, backing_filename_len); in qcow_create()
/external/qemu/
Dblock.c439 if (bs->backing_file[0] != '\0') { in bdrv_open2()
444 filename, bs->backing_file); in bdrv_open2()
1085 if (bs->backing_file[0] != '\0') { in bdrv_info()
1087 monitor_print_filename(mon, bs->backing_file); in bdrv_info()
1120 return bs->backing_file; in bdrv_get_encrypted_filename()
1133 pstrcpy(filename, filename_size, bs->backing_file); in bdrv_get_backing_filename()
Dblock_int.h132 char backing_file[1024]; /* if non zero, the image is a diff of member
Dblock.h53 const char *backing_file, const char *backing_format,