]> andersk Git - moira.git/commitdiff
Abstracted the partition information/availability (afs_partinfo)
authorprobe <probe>
Tue, 1 Sep 1992 19:48:52 +0000 (19:48 +0000)
committerprobe <probe>
Tue, 1 Sep 1992 19:48:52 +0000 (19:48 +0000)
incremental/afs_nightly.pl

index d717ad2f9452cb5563825d44fac0367e59e0b61f..68a00211d377082bb362f2e69c9edadfe98001a9 100644 (file)
@@ -33,14 +33,9 @@ for (@new_data) {
        print SRV $_ unless ($c eq $c2 && $as eq $as2 && $ap eq $ap2);
     }
     &afs_unlock;
-    
-    open(VOS,"$vos partinfo $as $ap -cell $c -noauth|");
-    chop(@vos = <VOS>);
-    close(VOS);
+
+    ($total, $used) = &afs_partinfo($as, $ap, $c);
     next if ($?);
-    @vos = split(/\s+/,$vos[0]);
-    $total = pop(@vos);
-    $used = $total-$vos[5];
     $alloc = 0;
     
     open(VOS,"$vos listvol $as $ap -cell $c -long -noauth|");
This page took 0.041439 seconds and 5 git commands to generate.