LU-3021 ldiskfs: to not verify preallocation in umount path

When recovery test is running, device rdonly flag is set and all
updates will be erred out so on-disk data can be inconsistent with
memory data.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: I69d3fa462c69f5f85978265075165b488661e863
Reviewed-on: http://review.whamcloud.com/5883
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
MRP-1731 llog: plain llog files leak fix

filter_recov_log_unlink_cb doesn't send llog cookies back to MDS
in case of deletion of non-existing objects because OBD_MD_FLCOOKIE
flag in oa->o_valid was mistakenly overwritten by another flag
assignment. In result the cookies are not send and the llog files
are never destroyed.

Change-Id: I43156a084134bd19bb81e23f789fcb2de1103ce6
Signed-off-by: Alexander Zarochentsev <alexander_zarochentsev@xyratex.com>
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/2005
Tested-by: Jenkins
Reviewed-by: Vladimir Saveliev <vladimir_saveliev@xyratex.com>
Reviewed-by: Alexander Boyko <alexander_boyko@xyratex.com>
Tested-by: Alexander Lezhoev <alexander_lezhoev@xyratex.com>
Tested-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
MRP-1731 llog: accounting for llog cancel rpc

Signed-off-by: Alexander Zarochentsev <alexander_zarochentsev@xyratex.com>
Change-Id: If51c8ba971d39a90858087ce0da1b474c2db06ba
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/2066
Tested-by: Jenkins
Reviewed-by: Parinay Kondekar <parinay_kondekar@xyratex.com>
Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Tested-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
MRP-1658 test: add failback test with errors=panic

This is test for MRP-1658 which create activity and
emulate failback operations. Option errors=panic
is using similar to production servers. Test requires
ENABLE_QUOTA=yes option.

Signed-off-by: Alexander Boyko <alexander_boyko@xyratex.com>
Change-Id: Iae6765b747ff266e6a44df8ebcd48cfba1991837
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/1550
Tested-by: Jenkins
Tested-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
MRP-1658 ldiskfs: skip checking in readonly mode

During umount ext4_mb_release_inode_pa()->ext4_error() panic, cause
memory bitmap and on-disk bitmap are different. This happened because
umount use Lustre readonly mode.
ext4_error() function could panic on errors if no MS_RDONLY.
But for the Lustre, readonly mode should be checked with
dev_check_rdonly() function. This patch skip total check at
ext4_mb_release_inode_pa() for readonly, like it was before,
but slightly early. So ext4_error() could not be called.

Signed-off-by: Alexander Boyko <alexander_boyko@xyratex.com>
Change-Id: Ia9471b97186db41195c147f70fa871b7283e5fed
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/1534
Tested-by: Jenkins
Reviewed-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Tested-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>