Commit 0b4d20d
committed
Enable searching for mounted public volumes under any user
Currently, InstalldNativeServices when collecting mounted storage to
invalidate, only looks for mounts under /mnt/pass_through/0. This means
that public volumes mounted under users that aren't user 0 are never
collected. This change ensures that all of these public volumes are
collected by checking for /mnt/pass_through/0/emulated and for
/mnt/pass_through/x/UUID, where x is an integer greater than or equal to
0 and UUID is of the format HHHH-HHHH, H being any uppercase
letter or a digit. In this change, the regex checks for /emulated only
under user 0 because /mnt/pass_through/x/emulated/10 points to the same
thing regardless of the value of x, so only checking under user 0, which
is always mounted, prevents killing the same mount twice.
Test: atest ExternalStorageHostTest
Fixes: 299996244
Flag: EXEMPT refactor
Change-Id: Icb4fca7213f9e656594625a83ba16a7ffc8251fe1 parent c9e5f47 commit 0b4d20d
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| |||
3697 | 3696 | | |
3698 | 3697 | | |
3699 | 3698 | | |
3700 | | - | |
| 3699 | + | |
| 3700 | + | |
| 3701 | + | |
3701 | 3702 | | |
3702 | 3703 | | |
3703 | 3704 | | |
| |||
0 commit comments