From: paulr Date: Mon, 12 Jul 2010 04:49:35 +0000 (+1000) Subject: actually working against bacula... sweeet. X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=de4013942de5aaedf8e223b46e2a4a82cade751d;p=php-bacula-disk-changer.git actually working against bacula... sweeet. --- diff --git a/bin/pbdc-bacula.php b/bin/pbdc-bacula.php index b136d05..bb7804f 100644 --- a/bin/pbdc-bacula.php +++ b/bin/pbdc-bacula.php @@ -179,31 +179,7 @@ function num_slots() } echo "$mslot\n"; - return; - -// $amloc = conf_getVal($changer, "automountdir"); - -// $ret = false; -// $i=1; -// foreach($res as $row) { -// //echo "Listing tapes for disk ".$row["disk_id"].", ".$row["disk_name"]."\n"; -// //echo "dir: $amloc/".$row["disk_name"]."/pbdc/".$argv[1]."/tapes/\n"; -// //exit(0); -// $dh = opendir("$amloc/".$row["disk_name"]."/pbdc/".$argv[1]."/tapes/"); -// while(($file = readdir($dh)) !== false) { -// if(ereg("d[0-9]+_vol[0-9]+", $file)!=false) { -// $i++; -// } else { -// //echo "didnt match: $file\n"; -// } -// //exit(0); -// } -// closedir($dh); -// } -// $i--; - -// echo "$i\n"; - + return; } function listall()