[pve-devel] [PATCH storage 0/5] replace the rest of storage_migrate + fixes

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Jun 21 14:59:34 CEST 2017


Adds raw+size, tar+size, qcow2+size & vmdk+size format types.
(Explanation follows in patch 2)

Replaces the storage_migrate() cases with the import/export code the
zfs code path was recently replaced with.

Changes the behavior of the default import/export plugin implementations
to not die. Instead they'll try some sane default by implementing
`raw+size` or `$format+size` for path based storages, and return an
empty list for any other case.

Note that the cleanup phase of the remote side's import command
currently doesn't get properly executed when aborting the migrate
command. (I'm working on that. But note that previously eg. a migration
where some disks were transfered completely successfully, an abort
wouldn't clean them up remotely either.)

Wolfgang Bumiller (5):
  export: add missing format query call parameter
  import/export: new formats: raw, tar, qcow2, vmdk
  lvm: import/export: implement raw+size format
  lvmthin: import/export: implement snapshot exporting
  migrate: only use import/export

 PVE/CLI/pvesm.pm             |   7 +-
 PVE/Storage.pm               | 244 ++++++++++++-------------------------------
 PVE/Storage/LVMPlugin.pm     |  78 ++++++++++++++
 PVE/Storage/LvmThinPlugin.pm |  15 +++
 PVE/Storage/Plugin.pm        | 148 +++++++++++++++++++++++++-
 5 files changed, 309 insertions(+), 183 deletions(-)

-- 
2.11.0





More information about the pve-devel mailing list