https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210410
Bug ID: 210410 Summary: /usr/share/examples/bhyve/vmrun.sh assumes virtio_diskdev to be a regular file Product: Base System Version: 10.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: v...@mpeks.tomsk.su The /usr/share/examples/bhyve/vmrun.sh script has the following code: # Create the virtio diskdev file if needed if [ ! -f ${virtio_diskdev} ]; then echo "virtio disk device file \"${virtio_diskdev}\" does not exist." echo "Creating it ..." truncate -s 8G ${virtio_diskdev} > /dev/null fi which assumes that ${virtio_diskdev} should be a regular file. When ${virtio_diskdev} is a ZFS volume or an md(4) memory disk, it causes an unnecessary warning message and an attempt to truncate the device. Should we replace -f with something more reasonable, perhaps "-f -o -c" -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"