[LU-1507] Fix confusing code in obd_connect_data Created: 11/Jun/12  Updated: 29/May/17  Resolved: 29/May/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Jinshan Xiong (Inactive) Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates LU-2049 add support for OBD_CONNECT_GRANT_PARAM Resolved
Severity: 3
Rank (Obsolete): 10605

 Description   

ocd_blocksize should actually be called ocd_blockbits. Similarly, ocd_inodespace should be called ocd_inodebits, and fed_pagesize should be called fed_pagebits, and ddp_inodespace called ddp_inodebits, since they are all log2 of the actual device size.
This further exposes another bug in the OFD code, that ddp_inodespace is used as a "size" in ofd_recovery_complete(), ofd_grant_chunk(), and ofd_grant_create(), instead of a log2 shift when computing the reserved space for inode precreation. Same in both the ldiskfs and ZFS osd_conf_get() implementations.


Generated at Sat Feb 10 01:17:15 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.