AFS
view release on metacpan or search on metacpan
examples/v2/vldb/changeloc view on Meta::CPAN
#!/usr/local/bin/perl
use blib;
use strict;
use warnings;
use AFS::VLDB;
my ($vldb, $volume, $server, $part, $ok);
die "Usage: $0 volume dest_server dest_partition \n" if $#ARGV != 2;
$volume = shift;
$server = shift;
$part = shift;
$vldb = AFS::VLDB->new;
$AFS::CODE and print "AFS::CODE = $AFS::CODE\n";
$ok = $vldb->changeloc($volume, $server, $part);
if ($AFS::CODE) { print "AFS::CODE = $AFS::CODE\n"; }
else { print "Changed location to $server /vicep$part for volume $volume \n"; }
( run in 1.125 second using v1.01-cache-2.11-cpan-d8267643d1d )