Skip to content

Commit

Permalink
Regression Test Case for the bug 2426
Browse files Browse the repository at this point in the history
Signed-off-by: Vijay Bellur <[email protected]>
  • Loading branch information
Vishwanath authored and vbellur committed Mar 21, 2011
1 parent 8d97979 commit 2b9ca0e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions dvm/2426/testcase
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

source ./regression_helpers

$GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/brick1 $(hostname):$EXPORT_DIR/$global_bug_id/brick2 2>/dev/null 1>/dev/null

$GLUSTERFSDIR/gluster volume start $global_bug_id 2>/dev/null 1>/dev/null

mount_glusterfs $global_bug_id

mkdir -p $FUSE_MOUNT/dir.{1..100}/foo

setfattr -n trusted.author -v ms $FUSE_MOUNT/dir.{1..100}

$GLUSTERD_DIR/gluster volume add-brick $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/brick3 $(hostname):$EXPORT_DIR/$global_bug_id/brick4 2>/dev/null 1>/dev/null
ls -lR $FUSE_MOUNT 2>/dev/null 1>/dev/null

setfattr -x trusted.author $FUSE_MOUNT/dir.{1..100} 2>/dev/null 1>/dev/null

if [ $? -ne 0 ]; then
exit 1;
fi
temp=`getfattr -d -m '.*' $FUSE_MOUNT/dir.{1..100} | grep author | wc -l` 2>/dev/null 1>/dev/null

rm -rf $FUSE_MOUNT/dir.{1..100}

umount $FUSE_MOUNT

exit $temp

0 comments on commit 2b9ca0e

Please sign in to comment.