Dirq 1.2
The dirq package provides some simple tools that help to automate storage
management when a process is repeated many times. It implements queues
of directories of configurable lengths. In its simplest form, directories
are removed in the order they are created. However, the directories can
also be given states that can preserve them (make them immune to removal
until they are put back into a removable state). States can also give an
indication of the "quality" of a directory's contents, which also alters
the removal order; directories are removed in order of increasing quality
then decreasing age.
The dirq program performs the actual management of directory queues. It
creates new directories (removing old ones if needed to make room in the
queue). It can also query the state of the queue to provide an easy way
to determine which directory is "best" or predict the next directory to
be removed.
The dirqst program queries and alters the state of a specific directory.
States that participate in dirq's quality assessment are given enumerated
values. Other states may hold arbitrary ASCII strings.
The quality assessment may be done with state value constants or by
accumulating multiple state values. This gives a flexible mechanism
in which to represent and compare different levels of quality.
The dirq and dirqst programs also provide a multi-user locking mechanism
that minimizes race conditions in the event that multiple users perform
concurrent operations on queue or a directory. This is done in a way that
can be extended to larger systems.
A configuration file (named dirq.dat) specifies the queues, their locations,
naming conventions, and lengths. It also identifies which state values
contribute to quality assessments, and their weights.
Man pages are provided that describe in detail how the tools operate and
how to configure them.
To install the dirq package, unpack the gzipped tar file and copy the
dirq and dirqst programs to a location in the user's PATH. Copy the
dirq.dat file either to that same directory or to a directory named "lib"
that is a sibling of it. Copy the man pages to a place in the user's
MANPATH. Then edit the dirq.dat file as needed.
This software is donated to the public domain by its author, Paul Sander
(paul@wakawaka.com).
History:
1.0-beta -- Initial implementation.
1.0 -- Changed the format of the dirq.dat file to specify whether directories
in a queue are named with serial number only or also with a datestamp.
In serial format, the serial number indicates the creation order. In
datestamp format, sort order of the names is the same as the creation
order.
1.1 -- Added the -P option, which overrides the prefix for the given queue
type. This allows multiple queues of the same type to share a parent
directory.
1.2 -- Added the -N length option to the dirq program to allow the user to
override the queue length specified in the dirq.dat file. Also fixed
a bug that allowed the predecessor directory to be removed, and
corrected the documentation.
Name Last modified Size Description
Parent Directory 13-Aug-2005 12:37 -
dirq.tar.gz 13-Aug-2005 12:36 18k
Apache/1.3.33 Server at zul.wakawaka.com Port 80