AFS
view release on metacpan or search on metacpan
examples/v2/vldb/syncserv view on Meta::CPAN
$server = shift;
$partition = shift;
$vldb = AFS::VLDB->new;
$AFS::CODE and print "AFS::CODE = $AFS::CODE\n";
if (defined $partition) {
$ok = $vldb->syncserv($server, $partition);
if ($AFS::CODE) { print "AFS::CODE = $AFS::CODE\n"; }
else { print "Server $server partition $partition synchronized with VLDB \n"; }
}
else {
$ok = $vldb->syncserv($server);
if ($AFS::CODE) { print "AFS::CODE = $AFS::CODE\n"; }
else { print "Server $server synchronized with VLDB \n"; }
}
examples/v2/vldb/syncvldb view on Meta::CPAN
$server = shift;
$partition = shift;
$vldb = AFS::VLDB->new;
$AFS::CODE and print "AFS::CODE = $AFS::CODE\n";
if (defined $partition and defined $server) {
$ok = $vldb->syncvldb($server, $partition);
if ($AFS::CODE) { print "AFS::CODE = $AFS::CODE\n"; }
else { print "VLDB synchronized with state of server $server partition $partition \n"; }
}
else {
$ok = $vldb->syncvldb($server);
if ($AFS::CODE) { print "AFS::CODE = $AFS::CODE\n"; }
else { print "VLDB synchronized with state of server $server \n"; }
}
examples/v2/vldb/syncvldbentry view on Meta::CPAN
die "Usage: $0 volume \n" if $#ARGV != 0;
$volume = shift;
$vldb = AFS::VLDB->new;
$AFS::CODE and print "AFS::CODE = $AFS::CODE\n";
$ok = $vldb->syncvldbentry($volume);
if ($AFS::CODE) { print "AFS::CODE = $AFS::CODE\n"; }
else { print "VLDB volume $volume synchronized \n"; }
pod/v2/afsperlvldb.pod view on Meta::CPAN
=head1 DESCRIPTION
This class is used to communicate with the B<AFS Volume Location
Server> in order to maintain and to administer the Volume Location
Database (VLDB) maintained by the Volume Location Server. The VLDB is
used to allow AFS application programs to discover the location of any
volume within its cell, along with select information about the nature
and state of that volume. This class provides methods to lookup for
volumes or to lock/unlock them in the DB. It is used to remove and to
list DB entries, and to synchronize the VLDB against the AFS
partitions.
Before you can access any VLDB records you must establish a connection
to the Volume Location Server. This is done by the constructor method
I<new> which returns a VLDB object. A VLDB object is essentially a
handle to talk to the Volume Location Server in a given cell. Such a
VLDB object is required before any of the other VLDB instance methods
can be called.
=head1 COMPATIBILITY
( run in 0.859 second using v1.01-cache-2.11-cpan-fd5d4e115d8 )