Mount point information in the Auto.mvfs file
The auto.mvfs template is found in this folder: versionvault-install-dir/etc/auto.mvfs. The administrator must copy this file into the /etc directory and ensure that it has execute permission for the root user. You might have to modify this file might to suit the use of the specific site. There are differences in the autofs API on each OS platform, so you cannot copy an auto.mvfs script from one system to another of a different OS.
The template file includes a definition for a VOB_ROOT_PATH variable, and this variable must match the mount point key that is added to the auto.master file. If your site uses more than one path name root for naming VOBs, multiple entries must be added to the auto.master file, each entry naming a separate and distinctly named copy of the auto.mvfs executable program map.
As documented in Public and private VOBs, the default behavior is that both public and private VOBs are automounted. For best results, use this mounting configuration as the default to help avoid the potential access pitfalls that might frustrate users who manage private VOB tag mount-over directories. If you want to override this default, you can override by uncommenting a specific line in the auto.mvfs file. In this case, for best results configure the private VOBs to use a different VOB tag prefix so that the automanager does not manage them.
#!/bin/sh
#
# Licensed Materials - Property of HCL
# (C) Copyright HCL Technologies Ltd. 2020. All Rights Reserved.
#
#
key="$1"
opts="-fstype=mvfs"
#
# This string must match the corresponding string
# for the indirect map in auto.master.
#
VOB_ROOT_PATH=/vobs
…
mvfs_get_mount_info() {
vobtag=$1
dir="${vobtag#"${VOB_PATTERN}"}"
${CLEARTOOL} lsvob -long $vobtag | ${NAWK} -v mopts=${opts} -v mdir="${dir}" -- '
BEGIN { ORS=""; private=0 }
{
#
# To prevent the script from allowing private vobs to be automounted,
# uncomment out the following line.
# if (/Access: private/) private=1
#
if (/Global path:/) vobdir=$3 }
END { if (!private) print mdir " " mopts " :" vobdir} '
In accordance with the general automounter implementation, you can use an automount map other than the auto.mvfs executable script. A direct map or indirect map could be created. These must include specific entries for all VOBs references that use the automount-configured VOB root path name.