diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2009-12-01 22:02:59 -0800 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2010-01-26 20:48:20 +0530 |
commit | bdc172371ec2a9823f91b0cfb1f5ac8b7d92c5f0 (patch) | |
tree | 94eea8fc5f2b0dc55e96f812e383ae4a8785b372 /277/regr/testcase | |
parent | 864565ab9030a93b93c7c30a7adc60134816a2a1 (diff) |
Regression testcase for bug 277
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to '277/regr/testcase')
-rwxr-xr-x | 277/regr/testcase | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/277/regr/testcase b/277/regr/testcase new file mode 100755 index 0000000..10ad25a --- /dev/null +++ b/277/regr/testcase @@ -0,0 +1,33 @@ +#!/bin/bash + +description="# fcntl system with F_DUPFD command fails on booster" +comments="# when fcntl system call is executed with the F_DUPFD command the call fails with EINVAL as the error status" + +source ../../init + +start_glusterfs --no-clients + +sleep 5 + +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 +touch $MOUNTDIR/client1/a1 + +sleep 2 +gcc $SPECDIR/fcntl.c -o $SPECDIR/fcntl +$SPECDIR/fcntl $MOUNTDIR/client1/a1 + +if [ $? -eq 22 ]; then + not_ok $description + comment $comments +else + ok $description + comment $comments +fi + +rm $SPECDIR/fcntl $SPECDIR/booster.conf +GLUSTERFS_BOOSTER_FSTAB= +LD_PRELOAD= + +cleanup_glusterfs
\ No newline at end of file |