
afsperlcm - Cache Manager functions

use AFS; # import all AFS names use AFS @AFS::CM; # import just the cache manager names cm_access checkconn checkservers checkvolumes flush flushcb flushvolume getcacheparms getcellstatus getcrypt getfid getquota getvolstats isafs lsmount mkmount pioctl(path,setpath,op,in,setin,setout,follow) rmmount setcachesize setcellstatus setcrypt setquota sysname unlog whereis whichcell wscell

This document describes the Cache Manager functions (fs command suite) available from the AFS module.

Emulates the VIOCGETVOLSTAT pioctl function. Blocks are returned
in 1K values. Type is ReadWrite or ReadOnly.
Returns an associative array containg the following values:
Blessed 1
BlocksInUse 38790
InService 1
MaxQuota 105000
MinQuota 0
Motd
Name user.schemers
NeedsSalvage 0
OffMsg
Online 1
ParentId 669036111
PartBlocksAvail 255972
PartMaxBlocks 1161063
Type ReadWrite
Vid 669036111

Returns current volume quota (MaxQuota from Volume Status).

Sets volume's quota.

Returns the location of $path. If $ip is set to 1 then IP addresses
will be returned instead of hostnames. Example:
@hosts = whereis("/afs",1);
# @hosts = ( 36.21.0.73, 36.21.0.108, 36.83.0.11, 36.83.0.227);

Gets (or sets) the value of @sys.

Returns the cell hosting $path. Returns undef and sets CODE on error.

Returns mount point for $path. Returns undef and sets CODE on error.

Removes given mount point. Returns 0 and sets CODE on error.

Creates given mount point.

Flushes the volume containing path.

Flushes $path from the cache.

Remove any callbacks on $path kept by the Cache Manager.

Check validity of all cached volume information.

Check status of file server machines.

Check status of all the Callers tokens held by the Cache Manager. Returns success if the caller has tokens, and all those tokens are valid (i.e, not expired).

Returns the current cache parameters. All values are expressed as 1K blocks. $max is the maximum size of the cache and $inuse is the number of blocks in use.

Sets the maximum cache size.

Discard all tokens.
($cell, $volume, $vnode, $unique ) = getfid($path [,$follow=1]);
Get the internal augmented file identifier for $PATH. See also "struct VenusFID".

Returns 1 if $path is in AFS.

Returns 1 if caller has access to given path.

Get the Cache Manager encryption flag. This function is only supported under OpenAFS.

Set the Cache Manager encryption flag 'on' or 'off'. This function is only supported under OpenAFS.

Returns 1 if setuid programs are allowed for given (default local) cell.

Sets the setuid flag for the given (default local) cell.

Returns local cell.
