Bug 1375229

Summary: BAT Handling in Checkpoint Disks Issues
Product: Red Hat CloudForms Management Engine Reporter: John Prause <jprause>
Component: SmartState AnalysisAssignee: Jerry Keselman <jkeselma>
Status: CLOSED CURRENTRELEASE QA Contact: Jeff Teehan <jteehan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.6.0CC: jhardy, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.7.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1376172 (view as bug list) Environment:
Last Closed: 2017-01-11 20:24:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1376172    

Description John Prause 2016-09-12 14:00:15 UTC
Address two problems handling the BAT for Checkpoint disks:

Depending upon the disk an attempt may be made to
access BAT information prior to initializing it, so initialize when appropriate.

Based on the VHDX spec the size of the BAT for checkpoint disks is:

Total BAT Entries = Sector Bitmap Blocks Count * (Chunk Ratio + 1)

but there are checkpoint disks where the Sector Bitmap Blocks count is 0.

This is because the calculation of Sector Bitmap Blocks count (as well as
Data Blocks count) was using Integer division and ".ceil", resulting in an
incorrect value.

Comment 2 John Prause 2016-09-12 14:02:05 UTC
https://github.com/ManageIQ/manageiq/pull/10063

Comment 4 Jeff Teehan 2016-10-20 18:25:27 UTC
Verified the same was as the clone.  Created a bunch of checkpoints and resynced.  Moving to verified using 5.7.0.6 on https://10.16.6.104/ems_infra/1019000000000003