]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Update scripts to work around two sh(1) bugs found in stable/8:
authorbz <bz@FreeBSD.org>
Fri, 24 Feb 2012 14:13:06 +0000 (14:13 +0000)
committerbz <bz@FreeBSD.org>
Fri, 24 Feb 2012 14:13:06 +0000 (14:13 +0000)
commit88597370a039bd929fdd5cd0f49af9964e9fa90c
treefe23215c8659f18f1edbe7b674cf25f8a4a352d5
parent64aff966136992a8069899b16557c1c2c14f3762
Update scripts to work around two sh(1) bugs found in stable/8:
1) _x=$((_x + 1)) does not work while x=$((x + 1)) does.
2) Parameter Expansion, esp. "${x%%bar}" does not work if quoted.

Correct typos and improve some details forwarding.sh already
had in initiator, esp. related to ipfw accepting if the default
is deny.

Add an extra stat call to the "delay" function in addition to the
touch which together is still a lot faster than sleep 1 but seems
to help a lot more to mitigate the unrelated kernel race seen.

Sponsored by:   Cisco Systems, Inc.
tools/test/netfibs/README
tools/test/netfibs/forwarding.sh
tools/test/netfibs/initiator.sh
tools/test/netfibs/reflector.sh