]> git.proxmox.com Git - pve-storage.git/commit
workaround zfs create -V error for unaligned sizes
authorMira Limbeck <m.limbeck@proxmox.com>
Fri, 29 Mar 2019 09:13:10 +0000 (10:13 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Mar 2019 14:38:35 +0000 (15:38 +0100)
commitcdef3abb25984c369571626b38f97f92a0a2fd15
treed500bb42bff43d98af32b71b775dafd7d26961ae
parent074bdd354f0fe9e4543b0fdad19376fc6559df60
workaround zfs create -V error for unaligned sizes

fixes the 'cannot create 'nvme/foo': volume size must be a multiple of
volume block size' error by always rounding the size up to the next 1M
boundary. this is a workaround until
https://github.com/zfsonlinux/zfs/issues/8541 is solved.
the current manpage says 128k is the maximum blocksize, but a local test
showed that values up to 1M are allowed. it might be possible to
increase it even further (see f1512ee61).

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
PVE/Storage/ZFSPoolPlugin.pm