]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common: new function to get real device path name and basename
authorEryu Guan <eguan@redhat.com>
Mon, 12 May 2014 23:05:43 +0000 (09:05 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 12 May 2014 23:05:43 +0000 (09:05 +1000)
commitec08236ff7849a13d8eb189ae91b9a65dc71002d
tree29a35bf214266864ce0bbc6459d4170ba16ad056
parent9f3515572c4939674bdb582e26ca12baa1575416
common: new function to get real device path name and basename

If TEST_DEV or SCRATCH_DEV is symlink(mostly a lvm lv), a simple
basename is not enough, symlink should be followed.

This task is common enough, so introduce new helper functions and
replace all readlink calls in

ext4/305
generic/009
generic/019
generic/285
generic/312

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc
tests/ext4/305
tests/generic/009
tests/generic/019
tests/generic/285
tests/generic/312