diff options
Diffstat (limited to '234/regr/testcase')
-rwxr-xr-x | 234/regr/testcase | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/234/regr/testcase b/234/regr/testcase new file mode 100755 index 0000000..96987b5 --- /dev/null +++ b/234/regr/testcase @@ -0,0 +1,36 @@ +#!/bin/bash + +description="# opendir system call on a symbolic link to a directory fails" +comments="# When opendir() system call is executed on a symbolic link to a directory, it gives an error" + +source ../../init + +start_glusterfs --no-clients + +sleep 5 + +gcc $SPECDIR/open_dir.c -o $SPECDIR/opendir + +mkdir $EXPORTDIR/export1/imp/ +ln -s $EXPORTDIR/export1/imp/ $EXPORTDIR/export1/link + +echo "$SPECDIR/client1.vol $MOUNTDIR/client1 glusterfs subvolume=client,logfile=$LOGDIR/clog,loglevel=DEBUG" > $SPECDIR/booster.conf +export GLUSTERFS_BOOSTER_FSTAB=$SPECDIR/booster.conf +export LD_PRELOAD=$(dirname $GLUSTERFSDIR)/lib/glusterfs/glusterfs-booster.so + +$SPECDIR/opendir $MOUNTDIR/client1/imp +$SPECDIR/opendir $MOUNTDIR/client1/link + +if [ $? -ne 0 ]; then + not_ok $description + comment $comments +else + ok $description + comment $comments +fi + +rm $SPECDIR/opendir $SPECDIR/booster.conf +GLUSTERFS_BOOSTER_FSTAB= +LD_PRELOAD= + +cleanup_glusterfs
\ No newline at end of file |