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.limb...@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.

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to