mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
...but wait until the partitions are actually updated on disk. CORE-13525 DeletePartition() deletes partitions only in the virtual partitions list in memory; the partitions still exist on the disk and are written only later when committing all partition changes. Thus, we do the same for file system volumes that lay on top of these partitions being deleted: we move the linked VOLENTRY structures to a list of "pending volumes to unmount", while they still actually stay mounted on the system. Only when partition changes are about to be committed to disk, the "pending volumes to unmount" list is processed and the volumes actually unmounted, prior to modifying the partitions.