# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!
# skip all tests for PPC until we can get sanity-pfl to pass
# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!
# skip all tests for PPC until we can get sanity-pfl to pass
$LFS setstripe -E EOF -o 0 $DIR/$tfile
dd if=/dev/urandom of=$DIR/$tfile bs=1M count=$((RANDOM % 10 + 2))
$LFS setstripe -E EOF -o 0 $DIR/$tfile
dd if=/dev/urandom of=$DIR/$tfile bs=1M count=$((RANDOM % 10 + 2))
$LFS setstripe -E 1M -S 1M -c 1 -E 4M -c 2 -E eof -c -1 $tf ||
error "creating $tf failed"
$LFS setstripe -E 2M -S 1M -c 1 -E 6M -c 2 -E 8M -c -1 -E eof -c -1 \
$LFS setstripe -E 1M -S 1M -c 1 -E 4M -c 2 -E eof -c -1 $tf ||
error "creating $tf failed"
$LFS setstripe -E 2M -S 1M -c 1 -E 6M -c 2 -E 8M -c -1 -E eof -c -1 \
[ -z "$stale_mirror" ] && error "stale mirror doesn't exist"
[ -z "$valid_mirror" ] && error "valid mirror doesn't exist"
[ -z "$stale_mirror" ] && error "stale mirror doesn't exist"
[ -z "$valid_mirror" ] && error "valid mirror doesn't exist"
# create 3 mirrors FLR file, the first 2 mirrors are preferred
$LFS setstripe -N -Eeof --flags=prefer -N -Eeof --flags=prefer \
# create 3 mirrors FLR file, the first 2 mirrors are preferred
$LFS setstripe -N -Eeof --flags=prefer -N -Eeof --flags=prefer \
$LFS setdirstripe -i 0 -c 1 $DIR/$tdir ||
error "create directory failed"
$LFS setdirstripe -i 1 -c 1 $DIR/$tdir-1 ||
$LFS setdirstripe -i 0 -c 1 $DIR/$tdir ||
error "create directory failed"
$LFS setdirstripe -i 1 -c 1 $DIR/$tdir-1 ||