Whamcloud - gitweb
LU-14565 ofd: Do not rely on tgd_blockbit 55/43955/9
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 29 Mar 2021 05:22:11 +0000 (10:52 +0530)
committerOleg Drokin <green@whamcloud.com>
Sun, 14 Nov 2021 05:51:23 +0000 (05:51 +0000)
commitf268a03170abe5375959ace774e10b92af5b14b1
tree8738039d067881a24a7163279c041bc7b27c2655
parente7e3d1ab58a7ffbd2932077234acf853e7637045
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

Conflicts:
lustre/mdt/mdt_handler.c

Lustre-change: https://review.whamcloud.com/43154/
Lustre-commit: 8ee6e1c8825c4fabfd6c39db11081839ca53d454

Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Icc100cca0d5ae492c41d60f0bf97512450f796bc
Reviewed-on: https://review.whamcloud.com/43955
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@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