Skip to content
Commit e56dab21 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Forget volumes that have been freshly formatted.

When the user formats an existing volume, the old partition will never
appear again, so we can immediately clean up any VolumeRecord
information.

This change ensures that the next MediaProvider idle maintenance pass
will see the UUID has been removed via getRecentStorageVolumes(),
and will clean up stale metadata, instead of waiting an entire week
for the volume to appear stale.

Bug: 157164840
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ia60440a423d980de141a87e957cfe03f91a6d9ff
parent c744ad24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment