info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS VMS Client and RMS file handling


From: Piet Schuermans
Subject: CVS VMS Client and RMS file handling
Date: Thu, 9 Jun 2005 00:12:00 +0200

CVS VMS client and RMS file handling.
 
CVS changes file attributes of RMS files. For most files (text, executables / binary) these changes are harmless and are easy dealt with by the tools or the Operating System. Some files however result in unrecoverable damage.
 
It can be a major problem for using CVS on OpenVMS. In our case, FMS files fall it the last category. Even checking those files in with ‘– kb’ option did not eliminate the problem.
 
Main problem CVS isn’t handling the RMS files in the correct way. Handling RMS proper would lead to rewriting some core CVS routines. Most “open source” tools used on the VMS platform have this problem.
 
A number of years ago some people released an adjusted version of ZIP a compressing tool. That specific VMS/AXP ZIP release had a few extra options (/VAX or “–V”) to deal with RMS files.
The Zip files are binary sets. CVS file attribute change will not have effect on extracting files.
Unzipping will change the RMS file attributes.
 
VMS has a utility “backup” that creates save sets of RMS files similar as TAR on UNIX.
The backup utility handles file attributes and the container contents. When restoring a container file attributes are correctly restored.  Unfortunately, those backup save set are also RMS files. (fixed record format and fixed record length of 32256 byte.)
 
 
Summary:
  1. FMS files when checked in/out are damaged unrecoverable.
  2. ZIP tool can safely handle RMS files. Preserve the file format (starting bytes)
  3. Altered ZIP files attributes will have no effect on extracting original files.
  4. Unzipping will restore the whole file including its starting bytes but will change the file attributes.
  5. VMS backup utility can create save set containers.
  6. VMS backup utility restores files from a save set with their RMS specific attributes.
  7. Save sets are RMS files with fixed (known) file attributes.
Work around:
Check-in

-       Place one or more (all) FMS files in a backup save set  ($backup *.frm frmcontainer.bck/save_set

-       ZIP the backup save set with the RMS zip option         ($ZIP/vax/keep frmcontainer.bck

-       Store the zipped backup save set in CVS (option –kb)  ($cvs add -kb <zipped file>

Check-out

-       Retrieve the zipped backup save set from CVS

-       Unzip the backup save set

-       Restore the file attributes  $set file / attributes=(RFM: FIX, LRL=32256)  [backup save set]

-       Restore the FMS files from the backup save set.

 
Implementation tip:
Use a DCL command script to check-in/out and maintain a changelog file  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]