List of ods5 specific mount options

- option dotversion

Change the ';' to something easier to deal with in shells: '.'. Then the master file directory will be '000000.DIR.1' and the file '.;1' will be '..1'. A dot shows in the output of 'ls' and can be used as input as well. (For input this in not new for VMS users, but that doesn't matter, here.) However, the dotversion option is silently disabled when the syml option is also specified.

- option dirless (not yet implemented)

Directories always have the suffix '.DIR;1'. That can be suppressed for input and output. The master file directory shows as '000000'. This does not conflict with a file that has a name '000000'. That file will show as '000000.;1'. This will make it easier to look at /mnt/000000/000000/000000/ which is - as we know - still the masterfile directory.

- option home=lbn

Use an alternate home block with the specified block number, a non-zero decimal value.

By default ods5 uses lbn 1, the second block on the disk, also known as the primary home block (lbn zero usually is the boot block). ODS disks which require a GPT, for Integrity servers, do not have a primary home block: the GPT is expected at the first disk blocks. VMS then uses an alternate home block. Depending on the size of the ODS disk, good candidates for alternate home blocks are 1034, 2067, ...

The ods5 file system does not try to find an alternate home block. But it tries to use any lbn as specified with the 'home=' option. To find the first two (alternate) home blocks simply do a

# od -a -Ax small.dsk | grep -m2 'D   E   C   F   I   L   E   1   1   B'
0047f0   D   E   C   F   I   L   E   1   1   B  sp  sp nul nul   e   x
0049f0   D   E   C   F   I   L   E   1   1   B  sp  sp nul nul   i   x
# printf "%d\n" $((0x47f0/512))
35
# mount -v -o ro,loop -t ods5 -o home=35 small.dsk /mnt


- option mode=omask

Make the files accessible for other users, set an octal mask value with the mode option. This enables the according protection bits.

- option nomfd

Don't show the masterfile directory, 000000.DIR;1, from the top level directory.

- option syml

With ODS5 VMS supports symbolic links. An 'ls -l' always shows the target of the symbolic link. To follow such a link specify the option syml. Enabling this feature has some side effects. As input, files and directories without a version number will be found. That is the latest version of a file, if there are more. Also directories without '.DIR;1' will be found. If there is a ';' in the symbolic link, the target will not be found, or a wrong file may be found.
Because of these side effects following a symbolic link is not enabled by default.
If the option syml is enabled the dotversion option is silently disabled.