OSDN Git Service

Last ditch check for partition on raw disk.
authorJeff Sharkey <jsharkey@android.com>
Fri, 26 Jun 2015 18:16:14 +0000 (11:16 -0700)
committerJeff Sharkey <jsharkey@android.com>
Fri, 26 Jun 2015 18:16:17 +0000 (11:16 -0700)
commit63123c067a4e709198d9b8d3279c98561f8c990e
tree57b489e092bba89842ad5ca9aa6c98e6fa516b6b
parent66270a21df1058434e4d63691221f11ff5387a0f
Last ditch check for partition on raw disk.

Some storage devices can be formatted as bare partitions, without an
MBR or GPT header.  If we found no partitions, try poking at the raw
disk, and treat it as a public volume if we found a valid filesystem.

Bug: 20503551
Change-Id: I80304e1ad865435321c341b667c0daf2daf4d56c
Disk.cpp