Whamcloud - gitweb
LU-4904 test: write_append_truncate failed with divide error 58/12358/3
authorAndriy Skulysh <Andriy_Skulysh@xyratex.com>
Tue, 21 Oct 2014 07:06:43 +0000 (00:06 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 1 Dec 2014 04:19:08 +0000 (04:19 +0000)
commit88faf0ab6e2ebdbc3a3c70010fe04cf56f11ea97
treeab8c1cb444c7e85b4f5e1f7d35990b06a9abc3a8
parentdd7d3a41b8f14f5013a8f5d605cdc85a16825b75
LU-4904 test: write_append_truncate failed with divide error

fix trunc_size calculation in case of append_size == 1
Don't allow to specify write_max and append_max < 2.

This patch is back-ported from the following one:
Lustre-commit: 85b037f5da6a022919783ef9a87ed6d2a4d102d2
Lustre-change: http://review.whamcloud.com/9948

Test-Parameters: alwaysuploadlogs \
envdefinitions=SLOW=yes,ENABLE_QUOTA=yes,ONLY=write_append_truncate \
mdtfilesystemtype=ldiskfs mdsfilesystemtype=ldiskfs ostfilesystemtype=ldiskfs \
mdtcount=4 mdssizegb=2 ostcount=7 ostsizegb=2 \
testlist=parallel-scale

Xyratex-bug-id: MRP-1779

Signed-off-by: Andriy Skulysh <Andriy_Skulysh@xyratex.com>
Change-Id: Ia2cf141b3cc78e4f1488a96fc602b78b16869678
Reviewed-on: http://review.whamcloud.com/12358
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/mpi/write_append_truncate.c