* Should stop osp precreate thread before releasing its last used
oid/seq files.
* git commit
71bdcf99 changes the return value of
writeconf_or_reformat, it's a cleanup function and when writeconf
does not work it reformat device and should return 0 (success)
in the end.
Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I82307dea94bd9ec62088bc931c6b4dd7b90776a0
Reviewed-on: http://review.whamcloud.com/5528
Tested-by: Hudson
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
ENTRY;
LASSERT(env);
- /* release last_used file */
- if (!d->opd_connect_mdt)
- osp_last_used_fini(env, d);
rc = osp_disconnect(d);
/* stop sync thread */
osp_sync_fini(d);
+
+ /* release last_used file */
+ osp_last_used_fini(env, d);
}
obd_fid_fini(d->opd_obd);
# Better reformat if it fails...
writeconf_all $MDSCOUNT 2 ||
{ echo "tunefs failed, reformatting instead" &&
- reformat_and_config && return 1; }
+ reformat_and_config && return 0; }
return 0
}