[pve-devel] [PATCH pve-container] don't add binds and block devices as unused volume
Wolfgang Bumiller
w.bumiller at proxmox.com
Thu Oct 1 11:37:53 CEST 2015
---
src/PVE/LXC.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index 8dc6a29..2c4fcec 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -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";
--
2.1.4
More information about the pve-devel
mailing list