]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage.pm
implement vdisk_clone and vdisk_create_base
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 30 Jan 2013 11:55:37 +0000 (12:55 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 30 Jan 2013 11:55:37 +0000 (12:55 +0100)
commit2502b33b08abc7e568d35956a57dba64ab4dc719
tree38129447ab613a7eb9bcca5b2e88fe0fdc6fde0e
parent249cb64756a5685799c588942d90950dd391cfd2
implement vdisk_clone and vdisk_create_base

This is an iplementation for file base storage types.

changes compared to patches from Alexandre:

* use correct locking
* private find_free_diskname() with bug fixes
* changed names of new methods
* always refer to base volumes in volume names

Example volume names:

local:6000/base-6000-disk-9.raw
local:6000/base-6000-disk-9.raw/7000/vm-7000-disk-9.qcow2
local:6000/base-6000-disk-9.raw/7000/base-7000-disk-10.qcow2
PVE/Storage.pm
PVE/Storage/Plugin.pm