Home | History | Annotate | Download | only in block

Lines Matching full:sizeof

52     if (buf_size >= sizeof(struct cow_header_v2) &&
68 if (bdrv_pread(bs->file, 0, &cow_header, sizeof(cow_header)) !=
69 sizeof(cow_header)) {
82 pstrcpy(bs->backing_file, sizeof(bs->backing_file),
85 bitmap_size = ((bs->total_sectors + 7) >> 3) + sizeof(cow_header);
98 uint64_t offset = sizeof(struct cow_header_v2) + bitnum / 8;
102 ret = bdrv_pread(bs->file, offset, &bitmap, sizeof(bitmap));
109 ret = bdrv_pwrite_sync(bs->file, offset, &bitmap, sizeof(bitmap));
118 uint64_t offset = sizeof(struct cow_header_v2) + bitnum / 8;
122 ret = bdrv_pread(bs->file, offset, &bitmap, sizeof(bitmap));
243 memset(&cow_header, 0, sizeof(cow_header));
262 pstrcpy(cow_header.backing_file, sizeof(cow_header.backing_file),
267 ret = qemu_write_full(cow_fd, &cow_header, sizeof(cow_header));
268 if (ret != sizeof(cow_header)) {
274 ret = ftruncate(cow_fd, sizeof(cow_header) + ((image_sectors + 7) >> 3));
306 .instance_size = sizeof(BDRVCowState),