io7m / waxmill

FreeBSD BHyve Manager
https://www.io7m.com/software/waxmill
ISC License
0 stars 0 forks source link

ZFS create called incorrectly for volumes #28

Closed io7m closed 4 years ago

io7m commented 4 years ago

Realizing a VM results in this command being executed:

/sbin/zfs create -V 12800000000 /storage/vm/50613ad2-3c93-478b-afa0-d8ac613723da/disk-0_1_0

The problem is that an absolute path /storage/vm/... is being used, but the actual path should be a ZFS filesystem path. In this specific case, that would mean: zroot/storage/vm/50613ad2-3c93-478b-afa0-d8ac613723da/disk-0_1_0 instead. This requires fetching the underlying FileStore as is done elsewhere in the codebase.