forked from reactos/reactos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SETUPLIB] Don't immediately unmount volumes when deleting partitions…
…... (reactos#7259) ...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, is the "pending volumes to unmount" list processed and the volumes actually unmounted first.
- Loading branch information
Showing
2 changed files
with
55 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters