]> git.proxmox.com Git - pve-container.git/commitdiff
mountpoint_stage: add another comment about keeping the mount points active
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 12 Dec 2019 10:36:04 +0000 (11:36 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Dec 2019 11:30:42 +0000 (12:30 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC.pm

index 73e54cac0696703b6e6503b9bbb259e034849b45..34949c63ba55e87e63185e48822a8127c657f81e 100644 (file)
@@ -1481,6 +1481,9 @@ sub mountpoint_stage {
        die "failed to mount subvolume: $!\n";
     }
 
+    # We clone the mount point and leave it there in order to keep them connected to eg. loop
+    # devices in case we're hotplugging (which would allow contaienrs to unmount the new mount
+    # point).
     my $err;
     my $fd = PVE::Tools::open_tree(&AT_FDCWD, $stage_dir, &OPEN_TREE_CLOEXEC | &OPEN_TREE_CLONE)
        or die "open_tree() on mount point failed: $!\n";