]> git.proxmox.com Git - pve-container.git/commit - src/PVE/API2/LXC.pm
fix #1147: allow marking non-volume mps as shared
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 14 Oct 2016 10:51:03 +0000 (12:51 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 3 Nov 2016 09:50:20 +0000 (10:50 +0100)
commit552e168f9066c75cc1ce07b2e5e12b543565a15f
treeadd3d2ab53415224a95580119877a014d75e6c6c
parent45ebd6c7a094c44ba719ffc453c38d5c308d34b3
fix #1147: allow marking non-volume mps as shared

this introduces a new option for non-volume mount points,
modeled after the way we define 'shared' storages: the
boolean flag 'shared' marks a mount point as available on
other nodes (default: false)

when migrating containers with non-volume mount points,
this new property is checked, and a migration is only
allowed if all such mount points are 'shared'.

setting this flag allows containers with non-volume mount
points to be migrated by the ha-manager as well, which was
previously not possible.

for backwards compatibility, the old "workaround" option
'-force' for 'pct migrate' still works, but displays a
warning pointing to the new options.
src/PVE/API2/LXC.pm
src/PVE/LXC/Config.pm
src/PVE/LXC/Migrate.pm