Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 41 lines (26 sloc) 0.656 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
#!/bin/bash

# Test vdi setattr/getattr

seq=`basename $0`
echo "QA output created by $seq"

here=`pwd`
tmp=/tmp/$$
status=1 # failure is the default!

# get standard environment, filters and checks
. ./common.rc
. ./common.filter

_cleanup

for i in 0 2; do
_start_sheep $i
done

_wait_for_sheep 2

$COLLIE cluster format -c 2
$COLLIE vdi create test 4G

echo -n value > $STORE/tmp.dat

echo "key shouldn't be found"
$COLLIE vdi getattr test key

$COLLIE vdi setattr test key value
$COLLIE vdi getattr test key | diff - $STORE/tmp.dat

$COLLIE vdi setattr test key value -d

echo "key shouldn't be found"
$COLLIE vdi getattr test key

status=0
Something went wrong with that request. Please try again.