Page MenuHomeFreeBSD

D6576.1794401392.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D6576.1794401392.diff

Index: usr.sbin/bhyve/block_if.c
===================================================================
--- usr.sbin/bhyve/block_if.c
+++ usr.sbin/bhyve/block_if.c
@@ -37,6 +37,7 @@
#include <sys/disk.h>
#include <assert.h>
+#include <err.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
@@ -447,12 +448,12 @@
}
if (fd < 0) {
- perror("Could not open backing file");
+ warn("Could not open backing file: %s", nopt);
goto err;
}
if (fstat(fd, &sbuf) < 0) {
- perror("Could not stat backing file");
+ warn("Could not stat backing file %s", nopt);
goto err;
}
Index: usr.sbin/bhyve/pci_virtio_block.c
===================================================================
--- usr.sbin/bhyve/pci_virtio_block.c
+++ usr.sbin/bhyve/pci_virtio_block.c
@@ -36,6 +36,7 @@
#include <sys/ioctl.h>
#include <sys/disk.h>
+#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
@@ -308,7 +309,7 @@
snprintf(bident, sizeof(bident), "%d:%d", pi->pi_slot, pi->pi_func);
bctxt = blockif_open(opts, bident);
if (bctxt == NULL) {
- perror("Could not open backing file");
+ warn("Could not open backing file %s", opts);
return (1);
}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 11, 12:49 PM (19 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41659733
Default Alt Text
D6576.1794401392.diff (1 KB)

Event Timeline