As part of an automated software deployment, I'm writing a harddisk image from an EFI application. After that is complete, the cached partition table is no longer up to date, so I need to force a reload.
I haven't found an API to either explicitly flush the partition table cache or to simulate a media change (which would probably violate the expectations of ...->MediaInfo->Removable == FALSE anyway).
Do I need a reboot, or have I overlooked something?