Home | History | Annotate | Download | only in block

Lines Matching refs:magic

91     uint32_t magic;
95 magic = be32_to_cpu(*(uint32_t *)buf);
96 if (magic == VMDK3_MAGIC ||
97 magic == VMDK4_MAGIC)
365 uint32_t magic;
368 if (bdrv_pread(bs->file, 0, &magic, sizeof(magic)) != sizeof(magic))
371 magic = be32_to_cpu(magic);
372 if (magic == VMDK3_MAGIC) {
375 if (bdrv_pread(bs->file, sizeof(magic), &header, sizeof(header)) != sizeof(header))
384 } else if (magic == VMDK4_MAGIC) {
387 if (bdrv_pread(bs->file, sizeof(magic), &header, sizeof(header)) != sizeof(header))
671 uint32_t tmp, magic, grains, gd_size, gt_size, gt_count;
718 magic = cpu_to_be32(VMDK4_MAGIC);
752 ret = qemu_write_full(fd, &magic, sizeof(magic));
753 if (ret != sizeof(magic)) {