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:
Gary Bisson 2021-01-28 09:10:07 +01:00 committed by Tom Rini
parent 7a01882eb3
commit f14c5ee5ab
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}