]> git.proxmox.com Git - pve-container.git/commitdiff
don't add binds and block devices as unused volume
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 1 Oct 2015 09:37:53 +0000 (11:37 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 1 Oct 2015 09:44:16 +0000 (11:44 +0200)
src/PVE/LXC.pm

index 62d0370330a168a8bf19f0c0af35bce87a05b4c9..c0c7ff226e3e17662535d494bbeb9e181f5eb7c5 100644 (file)
@@ -1165,6 +1165,9 @@ sub verify_searchdomain_list {
 sub add_unused_volume {
     my ($config, $volid) = @_;
 
+    # skip bind mounts and block devices
+    return if $volid =~ m|^/|;
+
     my $key;
     for (my $ind = $MAX_UNUSED_DISKS - 1; $ind >= 0; $ind--) {
        my $test = "unused$ind";