Debian Codegraph @

tests/00raid5-zero

raw
1
2 if mdadm -CfR $md0 -l 5 -n3 $dev0 $dev1 $dev2 --write-zeroes ; then
3 check nosync
4 echo check > /sys/block/md0/md/sync_action;
5 check wait
6 elif grep "zeroing [^ ]* failed: Operation not supported" \
7 $targetdir/stderr; then
8 echo "write-zeros not supported, skipping"
9 else
10 echo >&2 "ERROR: mdadm return failure without not supported message"
11 exit 1
12 fi