OSDN Git Service

Wait for dm device to be ready before format
authorPaul Crowley <paulcrowley@google.com>
Tue, 30 Oct 2018 22:59:24 +0000 (15:59 -0700)
committerPaul Crowley <paulcrowley@google.com>
Mon, 5 Nov 2018 21:59:08 +0000 (13:59 -0800)
commitcfe3972f2d31ae0bfc33b0d9d84ea08d1cb55589
treea0f28c864a88bdba3b294e6d8bf5409e078f93c8
parentddbd8325f53a29200d512e018d0a456cb0942ead
Wait for dm device to be ready before format

It can sometimes take a moment for the dm-device to appear after
creation, causing operations on it such as formatting to fail.
Ensure the device exists before create_crypto_blk_dev returns.

Test: adb sm set-virtual-disk true and format as adoptable.
Bug: 117586466
Change-Id: Id8f571b551f50fc759e78d917e4ac3080e926722
Merged-In: Id8f571b551f50fc759e78d917e4ac3080e926722
Utils.cpp
Utils.h
cryptfs.cpp