#!/bin/bash MOUNT_POINT="$1" EMI_WN_ROOT=${EMI_WN_ROOT:-/opt/grid/emi-wn} MINI_DEV=/usr/share/mini-dev/dev case ${MOUNT_POINT} in bin|boot|cvmfs|etc|lib|lib64|opt|mnt|root|sbin|usr|var) echo "-bind :/${EMI_WN_ROOT}/${MOUNT_POINT}" ;; home) echo "-bind ://home" ;; work|scratch) echo "-bind ://mnt/${MOUNT_POINT}" ;; dev) echo "-bind ://${MINI_DEV}" ;; pts) echo "-fstype=devpts :devpts" ;; shm) echo "-fstype=tmpfs :tmpfs" ;; proc) echo "-fstype=proc :proc" ;; # no separate /tmp, just use the same /home partition. Noone should use /tmp for computing anyway. # tmp) # mkdir -p ${EMI_WN_TMP} # chmod 1777 ${EMI_WN_TMP} # echo "-bind :${EMI_WN_TMP}" # ;; # leave this as is for now tmp) echo "-bind ://tmp" ;; # torque mount is needed to execute /var/spool/torque/mom_priv/jobs/xxxxxxxx.SC torque) echo "-bind ://var/spool/torque" ;; # syslog forwarding log) echo "-bind ://dev/log" ;; # gLite CREAM stuff is not needed # cream_sandbox|cream_es_sandbox) # echo "-fstype=nfs,nodev,async,rw glite.univ.kiev.ua:/var/${MOUNT_POINT}" # ;; # CERN-VM FS cvmfs.*) echo "-fstype=nfs,tcp,vers=3,nfsvers=3,noatime,ac,actimeo=60,async,nodev,ro 10.25.254.205:/cvmfs/${MOUNT_POINT#cvmfs.}" ;; *) exit 0 ;; esac