• Magnus Malmborn's avatar
    Delay disk inserted broadcast until disk is ready · 3dafc26e
    Magnus Malmborn authored
    Delay sending of "VolumeDiskInserted" broadcast until the disk is
    ready (ie until all the partitions have been received from
    kernel). This solves a race with MountService, otherwise there is a
    risk that MountService tries to mount the SD-card before the
    partition(s) have been received and the card will fail to mount.
    
    Change-Id: Ie2a28227ae9a7d6fe9106fb6875f469a0e899014
    3dafc26e
DirectVolume.cpp 13.7 KB