MRP-1257 test: do cleanup only if required

change check_and_cleanup_lustre() to do cleanup
only if required

Signed-off-by: Elena Gryaznova <Elena_Gryaznova@xyratex.com>
Change-Id: I63daea3db9a88be5db05f937b83644a9684dfab6
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/607
Tested-by: Jenkins
Reviewed-by: Vladimir Saveliev <vladimir_saveliev@xyratex.com>
Tested-by: Elena Gryaznova <elena.gryaznova@seagate.com>
Reviewed-by: Vitaly Fertman <vitaly.fertman@seagate.com>
MRP-2106 test: Client not umount after racer complete

To address this problem MRP-1423 added a fix, which
was missed in one file in racer directory.So adding
the fix in it as well.

Signed-off-by: Rahul Deshmukh <rahul_deshmukh@xyratex.com>
Change-Id: I7f59eb6aef3e110b860b2c8b12136f5dcc6ca3e2
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/3969
Tested-by: Jenkins
Reviewed-by: Elena Gryaznova <elena.gryaznova@seagate.com>
Tested-by: Elena Gryaznova <elena.gryaznova@seagate.com>
Reviewed-by: Alexander Zarochentsev <alexander_zarochentsev@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly.fertman@seagate.com>
MRP-2093 osd: find bufsize in declare_xattr_set

mdd_link/mdd_unlink need to know LINKEA buffer size before
transaction start for correct estimation of tx credits.
In case if xattr size not known, make a call to osd_xattr_set()
to find correct buffer size.

Change-Id: Ia1d72c77a62e213337e8b81da0456481fd7ad81b
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@seagate.com>
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/4560
Tested-by: Jenkins
Reviewed-by: Sergey Cheremencev <sergey_cheremencev@xyratex.com>
Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Tested-by: Elena Gryaznova <elena.gryaznova@seagate.com>
Reviewed-by: Vitaly Fertman <vitaly.fertman@seagate.com>
MRP-2229 obd: fix error handing

lustre_fill_super() allocates lsi and assumes that on failures lsi
will be freed by server_fill_super() or ll_fill_super().
- server_fill_super() does not free lsi when lsi_prepare() fails.
- ll_fill_super() does not free lsi when OBD_ALLOC_PTR(cfg) or
  ll_init_sbi() fail.
Fix the leaks on the error handling code paths.

Change-Id: I6d50beee642493fb10fb46ceb1c21663d62269b4
Signed-off-by: Vladimir Saveliev <vladimir.saveliev@seagate.com>
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/4403
Tested-by: Jenkins
Reviewed-by: Sergey Cheremencev <sergey_cheremencev@xyratex.com>
Reviewed-by: Andriy Skulysh <andriy.skulysh@seagate.com>
Tested-by: Elena Gryaznova <elena.gryaznova@seagate.com>
Reviewed-by: Vitaly Fertman <vitaly.fertman@seagate.com>
MRP-2277 tests: add test for conf_param for mdd parameter

Add call to conf_param for mdd parameter to serie of conf_param calls
performed by test_32.

Change-Id: I11d89cbb34af8504d2dfb34786031299704888cf
Signed-off-by: Vladimir Saveliev <vladimir.saveliev@seagate.com>
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/4586
Tested-by: Jenkins
Tested-by: Elena Gryaznova <elena.gryaznova@seagate.com>
Reviewed-by: Elena Gryaznova <elena.gryaznova@seagate.com>
Reviewed-by: Artem Blagodarenko <artem_blagodarenko@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly.fertman@seagate.com>
MRP-2277 mdd: initialize mdd's obd->obd_vars

mdd_procfs_init() initializes obd->obd_vars of not mdd's obd, but
mdt's one. Having mdd's obd->obd_vars uninitialized leads conf_param
to fail on setting mdd' parametes.

Change-Id: Icf8e191202b94d418524516f2b091cc3e2a76696
Signed-off-by: Vladimir Saveliev <vladimir.saveliev@seagate.com>
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/4587
Tested-by: Jenkins
Reviewed-by: Alexander Boyko <alexander_boyko@xyratex.com>
Tested-by: Elena Gryaznova <elena.gryaznova@seagate.com>
Reviewed-by: Artem Blagodarenko <artem_blagodarenko@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly.fertman@seagate.com>