Date: Mon, 20 Jun 2016 16:10:50 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 210410] /usr/share/examples/bhyve/vmrun.sh assumes virtio_diskdev to be a regular file Message-ID: <bug-210410-8@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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: vas@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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210410-8>
