[pve-devel] applied: [PATCH qemu-server] fix ceph volume with krbd not mapped for file_size_info

Thomas Lamprecht t.lamprecht at proxmox.com
Wed May 15 16:36:13 CEST 2019


On 5/15/19 12:53 PM, Mira Limbeck wrote:
> file_size_info can't find the file if it is not mapped beforehand when
> using krbd and returns 0 which we interpret as the disk not existing.
> vdisk_alloc is called but the disk already exists. with this patch we call
> activate_volume before trying file_size_info. on ceph with krbd it maps the
> volume.
> if the disk does not exist and is created with vdisk_alloc we still require an
> additional call to activate_volume for the new disk.
> 
> Signed-off-by: Mira Limbeck <m.limbeck at proxmox.com>
> ---
> tested with ceph, ceph + krbd, dir, lvm, lvm-thin, zfs
> 
>  PVE/QemuServer/Cloudinit.pm | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 

applied, but rewrote commit message, as this is not a "map issue with ceph"
but may be also needed for other storage, like LVM, and not the map but as 
your code does, the activate is the right thing, like Dominik explained
off-list.




More information about the pve-devel mailing list