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

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

575.0. "VMS VER LIMIT=1 .eq. UNIX" by CARKEY::HARRIS () Fri Oct 09 1987 16:24

     I had a problem with my directory that I can't figure out.  As of 
 some time last week every time I create a file the version limit would 
 equal 1, this was a pain in the neck because I ended up losing things I 
 still needed.  At first I thought that some how the editor was doing a 
 purge but after looking around I found out about the version limit attribute.
 Nobody else on my system had this problem and I could create files in other
 directories with noversion limit.  What led me to a solution was when a 
 user with bypass set created a file in my directory and the version limit 
 was 1.  I ended up copying the contents of my directory to a new one and 
 did a $SET FILE/VER to set the limit on all files to 0 and I have no problems
 now.

 Does anyone know what happened ?

-Bruce

T.RTitleUserPersonal
Name
DateLines
575.1JON::MORONEYR.I.P. MachineFri Oct 09 1987 18:285
Somehow, someone somewhere did a $ SET DIRECTORY/VERS=1 [your_directory]

This makes all new files have version=1 in the directory.

-Mike
575.2I checked that (re-.1CARKEY::HARRISFri Oct 09 1987 18:369
>Somehow, someone somewhere did a $ SET DIRECTORY/VERS=1 [your_directory]
>
>This makes all new files have version=1 in the directory.

I did a DIR/FULL on my directory and had "No version limit" under File
attributes.

-Bruce
575.3000000.dir may be itSMOKEY::SARDESONA little more cofused every day...Fri Oct 09 1987 18:569
>>>I did a DIR/FULL on my directory and had "No version limit" under File
>>>attributes.

it could be the [000000] in the volume, if your directory was created before 
the version limit was changed to 1, then your directory would still be "0", 
but all new file would be "1"

bruce
575.4Wrong "version" infoJON::MORONEYR.I.P. MachineFri Oct 09 1987 19:0112
>I did a DIR/FULL on my directory and had "No version limit" under File
>attributes.

No, these are different.  What you saw is how many versions of the directory
may exist before VMS attempts to purge it (kinda useless for directories)

The $SET DIRECTORY command sets a field in the directory file which determines
how many versions of files created in the directory will exist by default.

Don't remember what displays this.

-Mike
575.5$ help set dir /version_limitSMOKEY::SARDESONA little more cofused every day...Fri Oct 09 1987 19:2322
>>>
>>>The $SET DIRECTORY command sets a field in the directory file which determines
>>>how many versions of files created in the directory will exist by default.
>>>
>>>Don't remember what displays this.
>>>
from $ HELP SET DIR /version_limit


...

    To find out what the current version limit is for a  directory,  you
    must  use the DUMP/HEADER command.  Specify the /FORMATTED qualifier
    to format the output and  the  /BLOCKS=COUNT:0  qualifier  to  avoid
    dumping the entire directory contents.  For example,
         DUMP/HEADER/FORMATTED/BLOCKS=COUNT:0 directory-spec


this should show you the verison limit.


bruce
575.6truth is stranger than fictionANGORA::ZARLENGAThis is not my beautiful houseFri Oct 09 1987 19:268
    	I got burnt by this 2 years ago.  It's crazy, but DUMP/HEADER
    is the way to tell the default file version limit.  Even though
    VMS recognizes directories as such (it'll say it in DUMP), it
    tells you how many versions of <whatever>.DIR you can have!!
    
    	They haven't gotten around to correcting this oversight yet.
    
    -mike z
575.7Original Version?ODIXIE::LINDQUISTFri Oct 09 1987 21:3012
    Just to venture off on a slightly different tack...
    
    Could you have copied this file, and thus started out with a
    file with a version limit of 1?  Then each time you edited or
    whatever, the new version would inherit the characteristics
    of the previous version of the file. The file would inherit
    characteristics from the directory only if a previous version
    doesn't exist. 
    
    Anyway, that's my two cents.  And worth every penny...
    
    	- Lee