replicate file versioning of VMS in UNIX
We are migrating the Code set of VMS to Unix.
In this process we are also taking care of all I/O operations of file.
In VMS, whenever we create a file, it generates a Version # associated with the file. Best part is we have a common library which we use to OPEN/USE/CLOSE/DELETE/RENAME/COPY the file.
Now, when we talk about VMS on cache, if we two processes creates a file "ABC.TXT", for 1st process it will create the version #1 and for second it will create #2.
This versioning cache handles internally, like which cache process is referring to #1 and which one for #2
Can someone help me to understand how cache handles / deal in such scenarios, like which process is referring to which number, as we are not modifying the filename when we issue USE / CLOSE command, it is cache process which internally take care of it ?
Thanks in Advance