This patch adds sanity-pfl.sh test_13 to verify the following fix:
https://review.whamcloud.com/#/c/26474/
test_13 uses 8 OSTs to make the LOVEA buffer bigger than the request
reply buffer, and writes data to the composite file to verify if the
layout write intent RPC resent by the client is reprocessed by
mdt_layout_change().
Test-parameters: trivial ostcount=8 testlist=sanity-pfl
Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: I7df6ff472c9cd879267912851d7288258db61d15
Reviewed-on: https://review.whamcloud.com/26700
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
}
run_test 12 "Verify ost list specification"
+test_13() { # LU-9311
+ [ $OSTCOUNT -lt 8 ] && skip "needs >= 8 OSTs" && return
+
+ local file=$DIR/$tfile
+ local dd_count=4
+ local dd_size=$(($dd_count * 1024 * 1024))
+ local real_size
+
+ rm -f $file
+ $LFS setstripe -E 1M -c 1 -E 2M -c 2 -E -1 -c -1 -i 1 $file ||
+ error "Create $file failed"
+ dd if=/dev/zero of=$file bs=1M count=$dd_count
+ real_size=$(stat -c %s $file)
+ [ $real_size -eq $dd_size ] ||
+ error "dd actually wrote $real_size != $dd_size bytes"
+
+ rm -f $file
+}
+run_test 13 "shouldn't reprocess granted resent request"
+
complete $SECONDS
check_and_cleanup_lustre
exit_status