Whamcloud - gitweb
LU-5759 tests: use lfs getstripe -M instead of get_mds_num 63/12363/14
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 7 Jan 2015 01:37:06 +0000 (17:37 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 8 Jan 2015 05:16:42 +0000 (05:16 +0000)
commit9804f872d28315a7ddfe835138bb33e2206ffe52
tree071590389e0fae4acd6c0544e0e27eb9bc0cf607
parent65a17be2d9e1acdec5d9aebaed007d4cb6d0ca11
LU-5759 tests: use lfs getstripe -M instead of get_mds_num

The get_mds_num() helper function returned the MDS facet number,
but now that can be done via "lfs getdirstripe -M".

Remove this function and fix the few callers to use
"lfs getstripe -M" and create test directory with -c1
flag to prevent directory striping.

Fix some coding style issues in the affected functions.

Test-Parameters: alwaysuploadlogs \
envdefinitions=SLOW=yes,ENABLE_QUOTA=yes \
mdtfilesystemtype=ldiskfs mdsfilesystemtype=ldiskfs \
ostfilesystemtype=ldiskfs mdtcount=1 testlist=replay-dual

Test-Parameters: alwaysuploadlogs \
envdefinitions=SLOW=yes,ENABLE_QUOTA=yes \
mdtfilesystemtype=ldiskfs mdsfilesystemtype=ldiskfs \
ostfilesystemtype=ldiskfs mdtcount=1 testlist=sanity

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Change-Id: I35d2ad5d859190c0292d3cc09df23fec40165751
Reviewed-on: http://review.whamcloud.com/12363
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Jian Yu <jian.yu@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/tests/replay-dual.sh
lustre/tests/sanity.sh
lustre/tests/test-framework.sh