TestShortId - test program for repository





See the Terminology section of the vesta-intro man page for definitions of terms.

TestShortId is a test program for the Vesta repository. It provides a way to exercise most of the functions of the SourceOrDerived interface. A portion of the SourceOrDerived interface is implemented in library code, but the code also makes SRPC calls to the repository server, using the underlying ShortIdSRPC interface.

After starting the program, type "?" for a list of available commands. Most commands relate directly to a similarly-named method of SourceOrDerived.

For some of the commands to work, you must be running under the user id that is permitted to read and write directly to files named by ShortId. This is normally vadmin. Affected commands include create, open, and touch.




The following values are obtained from the [Repository] section of the Vesta configuration file (vesta.cfg).

All files and directories in the underlying filesystem that are needed by the repository server are named relative to metadata_root. This value must begin and end with "/". The repository server does a chdir() to this directory.
The directory tree rooted at metadata_root/sid_dir is used to store source and derived files, with names derived from their ShortIds. The sid_dir must end with "/" (or be empty).
UDP port on which the SRPC interface that supports SourceOrDerived is exported. The SRPC interface itself is described in ShortIdSRPC.H; hence the name.
Host from which ShortIdSRPC is exported. This must be the host on which the repository process is running.


TestShortId has very rudimentary input error checking. If you type a letter where it wants to see a number, you could easily put it into an infinite loop.

See Also

vesta-intro(1), repository(8), TestVDirSurrogate(8).


Tim Mann

Last modified on Tue Apr 29 23:15:37 PDT 2003 by mann
     modified on Mon Nov 12 18:37:13 EST 2001 by ken@xorian.net
This page was generated automatically by mtex software.