mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
exFAT cannot store sparse files, so a write far past the end of a file makes the kernel zero-fill the whole gap in one uninterruptible call. Steam, Epic and EA installs write chunks out of order, so a single write on an SD card could block for minutes, holding up cancel, uninstall and the storage service. Probe each install folder for hole support once. On storage without it, grow files in bounded zero-filled steps that check the cancel flag, and queue Steam chunks in file offset order. Uninstall now cancels a running download or update of the game and waits for it to stop instead of refusing.