]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common: Fixes for testing NFS over IPv6
authorAnna Schumaker <Anna.Schumaker@netapp.com>
Mon, 10 Nov 2014 07:06:23 +0000 (18:06 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 10 Nov 2014 07:06:23 +0000 (18:06 +1100)
commit73dfa4ae3eac939d84b53285a36c50248b9b8b21
tree5f50525b12fa4ea315b562dea7814752208f7b4a
parent155cf517b0cfc3bfe27e476dfa290f4780c3da21
common: Fixes for testing NFS over IPv6

When testing NFS over IPv6, the user may set a $TEST_DEV of the form
[fe80::42]:/export.  The use of square brackets surrounding the IPv6
address is an accepted convention, but grep and awk think that our IPv6
address is actually a regex and tries to evaluate it instead.  The
result is that xfstests reports our filesystem "is busy or already
mounted".

This patch fixes the IPv6 problem by telling awk and grep to treat
$TEST_DEV as a fixed string rather than a regex.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc