Whamcloud - gitweb
LU-14565 ofd: Do not rely on tgd_blockbit 54/43154/23
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 29 Mar 2021 05:22:11 +0000 (10:52 +0530)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 May 2021 02:03:22 +0000 (02:03 +0000)
commit8ee6e1c8825c4fabfd6c39db11081839ca53d454
treeaccde1de0b2a1bdf8689d338f0ff484f8bf44cc5
parent41d99c4902836b7265db946dfa49cf99381f0db4
LU-14565 ofd: Do not rely on tgd_blockbit

tgd_blockbit is recordsize bits set during mkfs.
This once set does not change. However, 'zfs set'
can be used to change the OST blocksize. Instead
of using cached value of 'tgd_blockbit' always
calculate the blocksize bits which may have
changed.

Test-case: sanity/104c added.

Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Icc100cca0d5ae492c41d60f0bf97512450f796bc
Reviewed-on: https://review.whamcloud.com/43154
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_handler.c
lustre/ofd/ofd_obd.c
lustre/tests/sanity.sh