Whamcloud - gitweb
LU-18833 ofd: Set OS_STATE_* flags correctly for read-only devices 88/58488/4
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Thu, 20 Mar 2025 20:32:52 +0000 (02:02 +0530)
committerOleg Drokin <green@whamcloud.com>
Mon, 31 Mar 2025 05:57:43 +0000 (05:57 +0000)
commit51c4e893185088a0f0fbc4ed4327d216f26f9b5f
tree568d4125db2c4aa34109a7bcbfe750e61ad29e08
parent1063b81639d1b8f53ce9048ef3772f63079f5f6c
LU-18833 ofd: Set OS_STATE_* flags correctly for read-only devices

Set OS_STATE_* flags correctly for read-only devices
which is set via obdfilter.*.readonly params.

sanity/56ca added.

Test-Parameters: trivial
Fixes: 3483556684 ("LU-12515 ofd: allow setting a target to readonly")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Ie35c5e71ced77ebf196d0f4b27e97721e1ea60b1
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58488
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/ofd/ofd_obd.c
lustre/tests/sanity.sh