More debug information for sanity-hsm test_24d.
Drop unnecessary condition check for mdt_hsm_cdt_stop().
Test-Parameters: testlist=sanity-hsm,sanity-hsm,sanity-hsm,sanity-hsm
Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ib4a43693d364e208468937d15e3c48a1b1afb17a
Reviewed-on: https://review.whamcloud.com/26770
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
struct mdt_thread_info *cdt_mti;
ENTRY;
struct mdt_thread_info *cdt_mti;
ENTRY;
- if (mdt->mdt_opts.mo_coordinator == 0)
- RETURN(0);
-
if (cdt->cdt_state == CDT_STOPPED) {
CERROR("%s: Coordinator already stopped\n",
mdt_obd_name(mdt));
if (cdt->cdt_state == CDT_STOPPED) {
CERROR("%s: Coordinator already stopped\n",
mdt_obd_name(mdt));
rm -f $file1
fid1=$(make_small $file1)
rm -f $file1
fid1=$(make_small $file1)
+ echo $fid1
+ $LFS getstripe $file1
+
trap cleanup_test_24d EXIT
zconf_mount $(facet_host $SINGLEAGT) "$MOUNT3" ||
error "cannot mount '$MOUNT3' on '$SINGLEAGT'"
trap cleanup_test_24d EXIT
zconf_mount $(facet_host $SINGLEAGT) "$MOUNT3" ||
error "cannot mount '$MOUNT3' on '$SINGLEAGT'"
mount -o remount,ro $MOUNT2
mount -o remount,ro $MOUNT2
+ do_nodes $(comma_list $(nodes_list)) $LCTL clear
+ start_full_debug_logging
+
fid2=$(path2fid $file2)
[ "$fid1" == "$fid2" ] ||
error "FID mismatch '$fid1' != '$fid2'"
fid2=$(path2fid $file2)
[ "$fid1" == "$fid2" ] ||
error "FID mismatch '$fid1' != '$fid2'"
error "archive should fail on read-only mount"
check_hsm_flags $file1 "0x00000000"
error "archive should fail on read-only mount"
check_hsm_flags $file1 "0x00000000"
- $LFS hsm_archive $file1
+ $LFS hsm_archive $file1 || error "Fail to archive $file1"
wait_request_state $fid1 ARCHIVE SUCCEED
wait_request_state $fid1 ARCHIVE SUCCEED
+ stop_full_debug_logging
+
$LFS hsm_release $file1
$LFS hsm_restore $file2
wait_request_state $fid1 RESTORE SUCCEED
$LFS hsm_release $file1
$LFS hsm_restore $file2
wait_request_state $fid1 RESTORE SUCCEED