xfstests: resolve symlinked devices to real paths
authorEric Sandeen <sandeen@sandeen.net>
Tue, 8 Jun 2010 20:03:39 +0000 (20:03 +0000)
committerRich Johnston <rjohnston@sgi.com>
Fri, 26 Oct 2012 15:38:30 +0000 (10:38 -0500)
commitd5ea873fcbf00b841f0511a26fb341364a5c6425
tree34a6e80f02e4af5e6923fba21eca718dca500b9e
parentac996c6686c622337bb17c36a5fc45759d318226
xfstests: resolve symlinked devices to real paths

If you try running xfstests on lvm volumes which are symlinks,
it'll fail to run several tests because our _require_scratch
framework ultimately uses lstat not stat, and does not think
the lvm device (which is usually a symlink to a dm-X device)
is a block device.  Sigh.

Last try at this - just resolve any symlinked devicenames
into their realpath(3) in common.config.

This actually seems to work.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
common.config
src/realpath.c [new file with mode: 0644]