-/* $OpenBSD: vioqcow2.c,v 1.19 2022/05/13 16:46:34 dv Exp $ */
+/* $OpenBSD: vioqcow2.c,v 1.20 2022/05/20 22:06:47 dv Exp $ */
/*
* Copyright (c) 2018 Ori Bernstein <ori@eigenstate.org>
/* Grow the disk */
if (ftruncate(disk->fd, disk->end + disk->clustersz) < 0)
- fatalx("%s: could not grow disk", __func__);
+ fatal("%s: could not grow disk", __func__);
if (src_phys > 0)
copy_cluster(disk, base, disk->end, src_phys);
cluster = disk->end;
if (base_path) {
fd = open(base_path, O_RDONLY);
if (read(fd, &basehdr, sizeof(basehdr)) != sizeof(basehdr))
- err(1, "failure to read base image header");
+ errx(1, "failure to read base image header");
close(fd);
if (strncmp(basehdr.magic,
VM_MAGIC_QCOW, strlen(VM_MAGIC_QCOW)) != 0)