OSDN Git Service

Unmount public volume if FUSE mount fails
authorZim <zezeozue@google.com>
Wed, 17 Jun 2020 13:56:10 +0000 (14:56 +0100)
committerZim <zezeozue@google.com>
Mon, 22 Jun 2020 13:26:57 +0000 (14:26 +0100)
commitf71707916fdf11715bde10a7b76e92426ea1f32f
tree542490dcd96569486cf87d8b3dfc59ef4b39ec44
parentf87198e0257a7d906b2e37e1c2c0bc4f3ffb0cbc
Unmount public volume if FUSE mount fails

Sometimes, during early boot, a public volume may be created before
the user is unlocked and the mount may fail. This mount failure does
not revert the lower fs mounts (sdcardfs and vfat). Subsequent
mount attempts will then fail because we'd attempt to mount vfat on
already mounted /mnt/media_rw/<volname>

Bug: 158489548
Test: Resilient to an artificial sleep in
StorageManagerService#completeUnlockUser to
delay user unlock longer than public volume mount

Change-Id: I9a1574596434a2eb6b2553c0c9220c2118c7e4fd
model/PublicVolume.cpp