[Bug 284629] sysutils/vm-bhyve: Cannot specify more than two zfs_vol_opts

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 07 Feb 2025 03:20:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284629

            Bug ID: 284629
           Summary: sysutils/vm-bhyve: Cannot specify more than two
                    zfs_vol_opts
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: driesm@freebsd.org
          Reporter: sstallion@gmail.com
          Assignee: driesm@freebsd.org
             Flags: maintainer-feedback?(driesm@freebsd.org)

If vm templates specify more than two zfs_vol_opts the -o flag is skipped for
subsequent properties, resulting in a failed call to zfs create:

# sh -x /usr/local/sbin/vm create -t example -s 32G test
...
+ zfs create -sV 32G -o 'volmode=dev' -o 'volblocksize=4k' -o 'compression=off'
'autobackup:local=false' zroot/vm/test/disk0
too many arguments
usage:
        create [-Pnpuv] [-o property=value] ... <filesystem>
        create [-Pnpsv] [-b blocksize] [-o property=value] ... -V <size>
<volume>

For the property list, run: zfs set|get

For the delegated permission list, run: zfs allow|unallow

A PR has been submitted upstream to fix this issue:
https://github.com/churchers/vm-bhyve/pull/590

-- 
You are receiving this mail because:
You are the assignee for the bug.