MRP-1840 mdd: rename forgets updating target linkea

Back-port of LU-4659. MDD rename forgets updating
target LinkEA if target is not unlinked, which will
cause LinkEA inconsistency.

Change-Id: I9d42960da2d07d551ce08baed925bc25218fc0a4
Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Signed-off-by: Sergey Cheremencev <sergey_cheremencev@xyratex.com>
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/2144
Tested-by: Jenkins
Reviewed-by: Andriy Skulysh <andriy_skulysh@xyratex.com>
Reviewed-by: Rahul Deshmukh <rahul_deshmukh@xyratex.com>
Tested-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
MRP-1841 tests: set env vars correctly

avoid using an n in get_env_vars output to avoid lost variables
during internodes communications. fix test failing in conf-sanity
tests number 53x

Signed-off-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Change-Id: Ia1b58d8e20cebb83638771c449a9eefacaa2da63
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/2141
Tested-by: Jenkins
Reviewed-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Tested-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
MRP-1642 tests: delete memory limit from obdfilter-survey

This limit prevents to do enogh load on newer HW, and have no
relation to current Lustre code. It is safe to remove this limit.

For disk usage the echo_client_brw_ioctl() limit the npages to
PTLRPC_MAX_BRW_SIZE>>PAGE_SHIFT. The total transfer is divided on
small portion with ptlrpc transfer size. Echo client will return
ENOMEM for bad memory allocation. And obdfilter-survey .detail file
will have next error message.
error: test_brw-1: #1 - Cannot allocate memory on write

Signed-off-by: Alexander Boyko <alexander_boyko@xyratex.com>
Change-Id: I61374de2bc3c7750f38e18cc32d533e35c788668
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/2184
Tested-by: Jenkins
Reviewed-by: Vladimir Saveliev <vladimir_saveliev@xyratex.com>
Reviewed-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Tested-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
MRP-1423 tests: improve racer cleanup

On cleanup racer terminates child scripts: file_create.sh,
dir_create.sh, etc. Children of those srcipts do not get terminated
that way. Long running commands, like dd, causes annoying warnings:
     /mnt/lustre2 is still busy, wait one second
on attempt to umount $DIR2.

Add trap to all child scripts to have then to cleanup on exiting.

Signed-off-by: Vladimir Saveliev <vladimir_saveliev@xyratex.com>
Change-Id: I9ec7638ad8c6980d3b35f0ac6d47e856ec4feb04
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/2151
Tested-by: Jenkins
Reviewed-by: Alexander Boyko <alexander_boyko@xyratex.com>
Reviewed-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Tested-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
LU-1415 tests: Adapt oos to the new grant and osd-zfs behavior

This was originally developed by Johann Lombardi under ORI-151 and
ORI-398.  See http://review.whamcloud.com/1545 and
http://review.whamcloud.com/1665.

Change-Id: If778df1d672e2adb182cb801036aaef950d80af4
Whamcloud-bug-id: ORI-151
Whamcloud-bug-id: ORI-398
Signed-off-by: Li Wei <liwei@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/2978
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>