-read ts_check <<<$(cat /proc/sys/fs/fs-timestamp-check-on)
-
-_scratch_mount
-result=$?
-
-if [ $ts_check -ne 0 ]; then
- echo "sysctl filesystem timestamp check is on" >> $seqres.full
- # check for mount failure if the minimum requirement for max timestamp
- # supported is not met.
- if [ $sys_tsmax -ge $tsmax ]; then
- if [ $result -eq 0 ]; then
- echo "mount test failed" | tee -a $seqres.full
- exit
- fi
- else
- if [ $result -ne 0 ]; then
- echo "failed to mount $SCRATCH_DEV" | tee -a $seqres.full
- exit
- fi
- fi
-else
- # if sysctl switch is off then mount should succeed always.
- echo "sysctl filesystem timestamp check is off" >> $seqres.full
- if [ $result -ne 0 ]; then
- echo "failed to mount $SCRATCH_DEV and timestamp check is off" >> $seqres.full
- exit
- fi
-fi