[pve-devel] [PATCH container 1/3] remove unused next_free_nbd_dev function
Wolfgang Bumiller
w.bumiller at proxmox.com
Mon Jun 26 09:32:58 CEST 2017
---
src/PVE/LXC/Create.pm | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm
index d93159c..5b2e5b9 100644
--- a/src/PVE/LXC/Create.pm
+++ b/src/PVE/LXC/Create.pm
@@ -13,17 +13,6 @@ use PVE::VZDump::ConvertOVZ;
use PVE::Tools;
use POSIX;
-sub next_free_nbd_dev {
-
- for(my $i = 0;;$i++) {
- my $dev = "/dev/nbd$i";
- last if ! -b $dev;
- next if -f "/sys/block/nbd$i/pid"; # busy
- return $dev;
- }
- die "unable to find free nbd device\n";
-}
-
sub get_elf_class {
my ($rootdir, $elf_fn) = @_;
--
2.11.0
More information about the pve-devel
mailing list