[BACK]Return to gpt.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sbin / gpt

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sbin/gpt/gpt.c between version 1.57 and 1.58

version 1.57, 2015/12/02 20:01:44 version 1.58, 2015/12/02 20:09:33
Line 340  gpt_mbr(gpt_t gpt, off_t lba)
Line 340  gpt_mbr(gpt_t gpt, off_t lba)
                             mbr->mbr_part[i].part_typ,                              mbr->mbr_part[i].part_typ,
                             (uintmax_t)start, (uintmax_t)size);                              (uintmax_t)start, (uintmax_t)size);
                 if (mbr->mbr_part[i].part_typ != MBR_PTYPE_EXT_LBA) {                  if (mbr->mbr_part[i].part_typ != MBR_PTYPE_EXT_LBA) {
                           // XXX: map add with non-allocated memory
                         m = map_add(gpt, start, size, MAP_TYPE_MBR_PART, p);                          m = map_add(gpt, start, size, MAP_TYPE_MBR_PART, p);
                         if (m == NULL)                          if (m == NULL)
                                 return -1;                                  return -1;
Line 442  gpt_gpt(gpt_t gpt, off_t lba, int found)
Line 443  gpt_gpt(gpt_t gpt, off_t lba, int found)
                             (uintmax_t)le64toh(ent->ent_lba_start),                              (uintmax_t)le64toh(ent->ent_lba_start),
                             (uintmax_t)size);                              (uintmax_t)size);
                 }                  }
                   // XXX: map add with not allocated memory.
                 m = map_add(gpt, le64toh(ent->ent_lba_start), size,                  m = map_add(gpt, le64toh(ent->ent_lba_start), size,
                     MAP_TYPE_GPT_PART, ent);                      MAP_TYPE_GPT_PART, ent);
                 if (m == NULL)                  if (m == NULL)

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58

CVSweb <webmaster@jp.NetBSD.org>