Whamcloud - gitweb
LU-15900 hsm: don't return error on state change during mount 73/47473/2
authorMikhail Pershin <mpershin@whamcloud.com>
Sat, 28 May 2022 06:59:03 +0000 (09:59 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 27 Jun 2022 04:57:39 +0000 (04:57 +0000)
commit34a15de1432814f848f7c794664f0048daa3f9ef
tree2c57fe469cf84ba665a70704d3867db6011ad2eb
parent0c91d49a44e1214b5c65d4a557f6969b3d217881
LU-15900 hsm: don't return error on state change during mount

HSM coordinator is started in stopped state always, but
mount may have hsm_control parameters 'disabled'. Such
parameter cause wrong state change so mount would fail
with error.

Treat parameter change from 'stopping/stopped' to 'disabled'
as not critical error, keep state unchanged and report
no error back to a caller.

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I9d1366423391971b9511c46b6aed39d21ebf637c
Reviewed-on: https://review.whamcloud.com/47473
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_coordinator.c