Print this page


Split Close
Expand all
Collapse all
          --- old/./ld_pd_map.c
          +++ new/./ld_pd_map.c
↓ open down ↓ 120 lines elided ↑ open up ↑
 121  121          MR_FW_RAID_MAP *pFwRaidMap = &map->raidMap;
 122  122  
 123  123  
 124  124          if (pFwRaidMap->totalSize !=
 125  125              (sizeof (MR_FW_RAID_MAP) - sizeof (MR_LD_SPAN_MAP) +
 126  126              (sizeof (MR_LD_SPAN_MAP) * pFwRaidMap->ldCount))) {
 127  127  
 128  128                  con_log(CL_ANN1, (CE_NOTE,\
 129  129                      "map info structure size 0x%x\
 130  130                      is not matching with ld count\n",\
 131      -                    ((sizeof (MR_FW_RAID_MAP) - sizeof (MR_LD_SPAN_MAP)) +\
      131 +                    (int)((sizeof (MR_FW_RAID_MAP) - sizeof (MR_LD_SPAN_MAP)) +\
 132  132                      (sizeof (MR_LD_SPAN_MAP) * pFwRaidMap->ldCount))));
 133  133  
 134  134                  con_log(CL_ANN1, (CE_NOTE, "span map 0x%x total size 0x%x\n",\
 135      -                    sizeof (MR_LD_SPAN_MAP), pFwRaidMap->totalSize));
      135 +                    (int)sizeof (MR_LD_SPAN_MAP), pFwRaidMap->totalSize));
 136  136  
 137  137                  return (0);
 138  138          }
 139  139  
 140  140          mr_update_load_balance_params(map, lbInfo);
 141  141  
 142  142          return (1);
 143  143  }
 144  144  
 145  145  U32
↓ open down ↓ 367 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX