#!/bin/bash source $cwd/regression_helpers brick=`perl -e 'print "thisisbrickname"x40'` longpath=`perl -e 'print "/reallylong/"x50'` mkdir -p $EXPORT_DIR/$global_bug_id/$longpath # This check is for NAME_MAX name_status=$($GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/$brick\ |grep 'too long'|wc -l ) # This check is for PATH_MAX path_status=$($GLUSTERFSDIR/gluster volume create $global_bug_id \ $(hostname):$EXPORT_DIR/$global_bug_id/$longpath/brick1|grep 'too long'|wc -l) if [ $name_status -ne 1 -o $path_status -ne 1 ]; then exit 1 else exit 0 fi