]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: stat the dev we're removing to make sure its' really gone
authorJosef Bacik <jbacik@fusionio.com>
Mon, 21 Oct 2013 16:13:53 +0000 (16:13 +0000)
committerRich Johnston <rjohnston@sgi.com>
Tue, 22 Oct 2013 21:25:36 +0000 (16:25 -0500)
commit22ebe357198ea2519af6fd7e9082b9ac432631de
tree723c587756df46e24db3f75119dd58e18dd25a6b
parent0c6fb9f3acb4bca2c4abebaf92ed5bb48472cae0
xfstests: stat the dev we're removing to make sure its' really gone

I've been periodically failing btrfs/003 because my box sometimes takes a little
longer to unregister the device when we remove it and so the output from btrfs
dev show doesn't match what we are wanting since it still sees the device.  To
fix this just stat and sleep if we still see the device node and only continue
once udev or whatever actually removes the device node so that we don't get
random failures.

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
common/rc
tests/btrfs/003