OSDN Git Service

Handle virtio in private fs mapping
authorAlistair Delva <adelva@google.com>
Tue, 19 May 2020 22:49:26 +0000 (15:49 -0700)
committerAlistair Delva <adelva@google.com>
Wed, 20 May 2020 00:42:20 +0000 (17:42 -0700)
commitc6717310750c1cdd4fbde2479e0966a6c444022f
tree3ca0446be939d9c59509b105037a3e0164ef338b
parentff1fc9bc417c8a4b6bffb2b12ab69a705676c17a
Handle virtio in private fs mapping

When the vold core decides if a device is SD or USB, it checks for MMC
or virtio, however when the filesystem type is decided, it does not
check for virtio, only MMC. This causes virtio SD cards to be formatted
with ext4 unconditionally.

This fix is independently correct, but it incidentally gets adopted
storage working on cuttlefish (and Android Emulator) because f2fs can
support fscrypt and casefolding at the same time; ext4 currently cannot.

Bug: 156286088
Change-Id: I0b41670d5f76b2506dad437917c2276f8e0aaccf
model/PrivateVolume.cpp