disk: part_dos: update partition table entries after write
Fixes issues when switching from GPT to MBR partition tables. Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
This commit is contained in:
parent
7a01882eb3
commit
f14c5ee5ab
@ -423,6 +423,9 @@ int write_mbr_partitions(struct blk_desc *dev,
|
||||
ext_part_sect = next_ebr;
|
||||
}
|
||||
|
||||
/* Update the partition table entries*/
|
||||
part_init(dev_desc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -499,6 +502,9 @@ int write_mbr_sector(struct blk_desc *dev_desc, void *buf)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Update the partition table entries*/
|
||||
part_init(dev_desc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user