]> git.proxmox.com Git - pve-container.git/commitdiff
migrate: remove deprecated force parameter
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 4 Jun 2021 13:49:27 +0000 (15:49 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 8 Jun 2021 12:52:39 +0000 (14:52 +0200)
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
src/PVE/API2/LXC.pm
src/PVE/LXC/Migrate.pm

index 4965f5d9169aa26a729c552c651d90e81b948e3a..936debbc59e02af01db44a98729cbb91bd64cf1d 100644 (file)
@@ -1076,12 +1076,6 @@ __PACKAGE__->register_method({
                optional => 1,
                default => 180,
            },
-           force => {
-               type => 'boolean',
-               description => "Force migration despite local bind / device" .
-                   " mounts. NOTE: deprecated, use 'shared' property of mount point instead.",
-               optional => 1,
-           },
            bwlimit => {
                description => "Override I/O bandwidth limit (in KiB/s).",
                optional => 1,
index cb1ea7a2192591ed45ac855316617c793f69ee01..b5917e9a7060d5a0ed378437f8cf3112e44e521d 100644 (file)
@@ -44,20 +44,14 @@ sub prepare {
     }
     $self->{was_running} = $running;
 
-    my $force = $self->{opts}->{force} // 0;
-
     PVE::LXC::Config->foreach_volume($conf, sub {
        my ($ms, $mountpoint) = @_;
 
        my $volid = $mountpoint->{volume};
        my $type = $mountpoint->{type};
 
-       # skip dev/bind mps when forced / shared
+       # skip dev/bind mps when shared
        if ($type ne 'volume') {
-           if ($force) {
-               warn "-force is deprecated, please use the 'shared' property on individual non-volume mount points instead!\n";
-               return;
-           }
            if ($mountpoint->{shared}) {
                return;
            } else {