]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/CIFSPlugin.pm
fix #3580: plugins: make preallocation mode selectable for qcow2 and raw images
authorLorenz Stechauner <l.stechauner@proxmox.com>
Tue, 12 Oct 2021 12:32:32 +0000 (14:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 Oct 2021 09:00:23 +0000 (11:00 +0200)
commit95ff5dbd646497a69852c05668e33a11a13da146
tree8c152408a20d2a42b5c526f05dc58a4369c37ceb
parent2caa1194e912be705efd3b761d4316a16784adb1
fix #3580: plugins: make preallocation mode selectable for qcow2 and raw images

the plugins for file based storages
 * BTRFS
 * CIFS
 * Dir
 * Glusterfs
 * NFS
now allow the option 'preallocation'.

'preallocation' can have four values:
 * default
 * off
 * metadata
 * falloc
 * full
see man pages for `qemu-img` for what these mean exactly. [0]

the defualt value was chosen to be
 * qcow2: metadata (as previously)
 * raw: off

when using 'metadata' as preallocation mode, for raw images 'off'
is used.

[0] https://qemu.readthedocs.io/en/latest/system/images.html#disk-image-file-formats

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
Tested-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage/BTRFSPlugin.pm
PVE/Storage/CIFSPlugin.pm
PVE/Storage/DirPlugin.pm
PVE/Storage/GlusterfsPlugin.pm
PVE/Storage/NFSPlugin.pm
PVE/Storage/Plugin.pm