Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cellSaveData improvements #6637

Merged
merged 3 commits into from Sep 25, 2019
Merged

cellSaveData improvements #6637

merged 3 commits into from Sep 25, 2019

Conversation

Nekotekina
Copy link
Member

@Nekotekina Nekotekina commented Sep 24, 2019

Add savedata maintenance routine:

  1. Removes junk backup directories
  2. Fixes interrupted save data process in edge case
    This case can happen if emu terminates between two atomic renames.

Also use directory renaming technique for delete op.

Improve sys_fs_unlink and sys_fs_rmdir behaviour on Windows.

@Nekotekina Nekotekina changed the title cellSaveData: add auto maintenance routine in Emu.Init() cellSaveData improvements Sep 25, 2019
This routine:
1) Removes junk backup directories
2) Fixes interrupted save data process in edge case
This case can happen if emu terminates between two atomic renames.

Also use directory renaming technique for delete op.
Also rewrite recreate operation to be part of atomic process.
Make sure the changes which are already done are written.
Possibly fixes sys_fs_rmdir and other cases of directory removal.
Make sure the directory with deleted files always becomes empty.
For this purpose, temp files are moved to the root of the device.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant