Browse Prior Art Database

CDSEL - Recursive Delete Tool for the Distributed Computing Environment Cell Directory Services Namespace

IP.com Disclosure Number: IPCOM000113245D
Original Publication Date: 1994-Jul-01
Included in the Prior Art Database: 2005-Mar-27
Document File: 2 page(s) / 65K

Publishing Venue

IBM

Related People

Cantor, GM: AUTHOR

Abstract

Cell Directory Services is the location independent lookup facility of the Open Software Foundation's Distributed Computing Environment. The CDS name-space is similar to a Unix filesystem in that its heirarchial structure can contain directories, objects and softlinks. The standard control program to CDS, as delivered by the OSF is cdscp. This control program allows a user to delete CDS namespace entities at a single directory level only. This can be a serious drawback if a directory subtree contained many sub-levels and the user needed to remove the entire sub-tree. DCE as it is shipped from OSF does not contain any tool that allows recursive removal of directory entries in the CDS namespace. This was the rational for developing cdsdel.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

CDSEL - Recursive Delete Tool for the Distributed Computing Environment
Cell Directory Services Namespace

      Cell Directory Services is the location independent lookup
facility of the Open Software Foundation's Distributed Computing
Environment.  The CDS name-space is similar to a Unix filesystem in
that its heirarchial structure can contain directories, objects and
softlinks.  The standard control program to CDS, as delivered by the
OSF is cdscp.  This control program allows a user to delete CDS
namespace entities at a single directory level only.  This can be a
serious drawback if a directory subtree contained many sub-levels and
the user needed to remove the entire sub-tree.  DCE as it is shipped
from OSF does not contain any tool that allows recursive removal of
directory entries in the CDS namespace.  This was the rational for
developing cdsdel.

      Design - cdsdel is a command line tool that allows a user to
delete entities in the CDS namespace.  cdsdel uses the Cell Directory
Portable Interface directly.  cdsdel accepts -flags similar to Unix
utilities.  The standard C routine getopt() processes these flags.
For each flag that is processed, a bit is turned on in an entity mode
or action mode (depending on the flag).  After all flags are
processed, the entity mode and action mode are combined (using the |
operator in C) into a final mode.  The entry to be listed is
processed next.  This entry is processed with the standard C routine
strtok().  After processing is complete, a switch statement is
entered and the proper functions are called based on the final mode.
The main routine in cdsdel is get_dirs().  get_dirs() is
non-recursive unless the user wishes to delete entries in a recursive
fashion, in which cas...