]> git.ipfire.org Git - thirdparty/mdadm.git/commit
clear hi bits if not used after loading metadata from disk
authorCzarnowska, Anna <anna.czarnowska@intel.com>
Mon, 2 Apr 2012 00:15:08 +0000 (10:15 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 2 Apr 2012 00:15:08 +0000 (10:15 +1000)
commit97f81ee2635d8c1283ef857bc46d7314acffa1c3
tree15461c7ab513623503a7163f7a0eb433df7e58ea
parent5551b113dc18a6275fb04c7e7e3b76c656926e0a
clear hi bits if not used after loading metadata from disk

Functions retrieving sizes from metadata do not need to check
2TB attribute only when we can guarantee the hi bits are always
clear when the MPB_ATTR_2TB_DISK attribute is not set.

Therefore the following fields are cleared on metadata load
when not in use according to attribute:
struct imsm_disk.total_blocks_hi
struct imsm_map.pba_of_lba0_hi
struct imsm_map.blocks_per_member_hi
struct imsm_map.num_data_stripes_hi

Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c