[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference lassie::ucx

Title:DEC TCP/IP Services for OpenVMS
Notice:Note 2-SSB Kits, 3-FT Kits, 4-Patch Info, 7-QAR System
Moderator:ucxaxp.ucx.lkg.dec.com::TIBBERT
Created:Thu Nov 17 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:5568
Total number of notes:21492

5253.0. "ucx nfs client: creates files w/version numbers" by CSC32::M_MENKHUS (Mark Menkhus (719)531-5853 @home)) Thu Feb 20 1997 17:18

    Hi,
    
    A customer wants to use the UCX nfs client, mount a UNIX fs and
    then create files.  He complains there is a ;version number after the 
    file name, when it is created.  Is there a way not to have this?
    
    Mark Menkhus
T.RTitleUserPersonal
Name
DateLines
5253.2it depends, sort of...LASSIE::CORENZWITstuck in postcrypt queueThu Feb 20 1997 18:3022
    It depends on what how the application program or VMS utility creates
    the file.  If it explicitly includes a version number, the NFS client
    software simply does as requested, as it must.  A little
    experimentation shows that EDT seems to specify a version number, but
    the DCL CREATE command and the TPU editor do not.
    
    That's for creating a brand new file.  When editing an existing file
    something else comes into play.  All VMS-based editors create the next
    version of a file rather than overwrite the input file, and the NFS
    client still has to do as the program directs.  
    
    Assume you are using an editor that always defaults the version number,
    and you start with a file that has no version number.  When you exit
    the editor, the NFS client sees that you are trying to create a new
    file, but a file by that name already exists.  It does the best it can
    to help you by renaming the existing file to a ;1 name.  Then it writes
    the new file as ;2 and also creates a link to the ;2 file with no
    version number.  Now the UNIX host knows the file by its versionless
    name and by its ;2 name.  If you edit the file again, the versionless
    link is redirected to the ;3 file.
    
    Julie
5253.3thanks!CSC32::M_MENKHUSMark Menkhus (719)531-5853 @home)Wed Feb 26 1997 22:185
    Thanks!
    
    This makes sense,
    
    Mark
5253.4Beware of NEWVERUCXAXP::GEMIGNANIThu Feb 27 1997 00:4411
    There is something to watch out for in the interface (if you are watching sample
    QIOs against F11X using SET WATCH FILE):
    
    RMS has an MXV (maximize version number) which is used to assign a new
    highest version number to a file, even if an explicit version number is
    supplied in the name string.
    
    This translates to FIB$V_NEWVER [FIB$M_NEWVER in FIB$W_NMCTL].  You may
    see actual file version numbers appearing in the SET WATCH output, but
    you must notice that the NEWVER bit is set, in effect ignoring the
    version number as visible in the name string.