Freaky / Compactor

A user interface for Windows 10 filesystem compression
MIT License
1.16k stars 47 forks source link

Windows Defender history is broken after compression #67

Open Marocco2 opened 2 years ago

Marocco2 commented 2 years ago

After a restart, Windows Defender history will appear blank and non functional. I did recover this in the past but I don't remember the exact steps and what files are involved.

I'll update the issue if I will find a solution

Marocco2 commented 2 years ago

Seems like corruption takes place when you're going to compress ProgramData\Microsoft\Windows Defender

Restore Defender logging functionality is a mess. I would suggest add this path to blacklist

Marocco2 commented 2 years ago

Found the culprit: compressing C:\ProgramData\Microsoft\Windows Defender\Scans\mpenginedb.db would lead into corruption of history log

Freaky commented 1 year ago

Given I'm gaining exclusive locks on these files I'm surprised embedded db libraries continue to have issues. Perhaps I should also be setting share_mode.

Either way I'm going to add .db, .db-shm, and .db-wal to the default excluded file types.