Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177440631
D6576.1794401392.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D6576.1794401392.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6576: Explicitly say which file cannot be open when failing to open a backing file
Attached
Detach File
Event Timeline