OSDN Git Service

Remove special handling for missing crypto_blkdev
authorEric Biggers <ebiggers@google.com>
Tue, 3 Nov 2020 22:11:01 +0000 (14:11 -0800)
committerEric Biggers <ebiggers@google.com>
Tue, 3 Nov 2020 22:11:01 +0000 (14:11 -0800)
commit69520d2d39daf87edb75c3b68fef934ccf894c2f
tree5e4b1ad73f5c80095a8ee274e4804e1987bdb781
parent88f993b4a85d5a8638f9c2fd369b5ce6a078c847
Remove special handling for missing crypto_blkdev

This logic is no longer necessary, since the code that creates the
crypto_blkdev (create_crypto_blk_dev() in MetadataCrypt.cpp or in
cryptfs.cpp) now waits for the block device to appear before continuing.

It's also worth noting that the retry loop was only present for ext4,
not for f2fs, yet most Android devices are using f2fs these days.

Test: see I08fc8465f7962abd698904b5466f3ed080d53953
Change-Id: I173ca6cc187a810e008990dfa22aede58632db25
EncryptInplace.cpp
EncryptInplace.h
cryptfs.cpp