Whamcloud - gitweb
LU-2353 tests: Introduce back end mount/unmount helpers 85/5785/6
authorLi Wei <wei.g.li@intel.com>
Wed, 20 Mar 2013 12:06:20 +0000 (20:06 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 14 Nov 2013 08:14:57 +0000 (08:14 +0000)
commit2b13169cd86b4868730f2c45432645b7d2cc0073
tree98a9d910826aaa1d7162946234e452d5342b2c25
parent4add39c3775a69c2b3daf212b8e3fc9976bd53e6
LU-2353 tests: Introduce back end mount/unmount helpers

Some tests need to access back end file systems directly.  Currently,
for ldiskfs targets, they either mount the devices as ldiskfs or
invoke the ldiskfs-specific debugfs tool; for ZFS targets, they simply
skip forward.  Many of them could actually work on both back end
types.  Since the mount/unmount procedures diff for ldiskfs and ZFS
back ends, this patch introduces a pair of generic helpers,
mount_fstype()/unmount_fstype(), to hide the differences from tests.
Then, sanity 27z is adapted to work with ZFS targets using the new
helpers, as an example.

Test-Parameters: mdsfilesystemtype=zfs ostfilesystemtype=zfs mdtfilesystemtype=zfs
Change-Id: I0b6b358b147240519f28852ba2c8fea85c09aab3
Signed-off-by: Li Wei <wei.g.li@intel.com>
Reviewed-on: http://review.whamcloud.com/5785
Tested-by: Jenkins
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh
lustre/tests/test-framework.sh