After executing tests like test_200 and if there is not
enough space the function make_custom_file_for_progress was returning
1 on error but this error was not getting caught properly.
Modified the code to catch the error properly.
Test-Parameters: trivial testlist=sanity-hsm
Seagate-bug-id: MRP-3026
Signed-off-by: Mikhail V. Pridushchenko <mikhail.v.pridushchenko@seagate.com>
Signed-off-by: Aditya Pandit <aditya.pandit@seagate.com>
Change-Id: I0db45e327d6f49d066b5c631096a459b8acd2758
Signed-off-by: Ashish Purkar <ashish.purkar@seagate.com>
Reviewed-on: https://review.whamcloud.com/17346
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
[[ $blksz -gt 0 ]] || error "Invalid stripe size"
cleanup_large_files
- check_enough_free_space $fsize $blksz
- [ $? != 0 ] && return $?
+ check_enough_free_space $fsize $blksz || return $?
dd if=/dev/zero of=$file2 count=$fsize bs=$blksz conv=fsync ||
file_creation_failure dd $file2 $?
path2fid $1 || error "cannot get fid on $1"