actually working against bacula... sweeet.
authorpaulr <me@pjr.cc>
Mon, 12 Jul 2010 04:49:35 +0000 (14:49 +1000)
committerpaulr <me@pjr.cc>
Mon, 12 Jul 2010 04:49:35 +0000 (14:49 +1000)
bin/pbdc-bacula.php

index b136d05..bb7804f 100644 (file)
@@ -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()