summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2020-02-11 07:52:18 -0800
committerMark Salyzyn <salyzyn@google.com>2020-02-11 09:41:09 -0800
commit5ced7600d106ed4f299d6abda071a48eeb7516cb (patch)
treeef95925c669e6f70d94394b4dfcd2a202efb2e21 /libsparse/sparse.cpp
parentcd8b982e40d1cf13360e552b81fab520810c7adc (diff)
fs_mgr: overlayfs: CreateDynamicScratch for *partition_exists
Commit 69def12f08f576e824ba6ca13aeab668e49af87a ("overlayfs: Refactor how the scratch device is deduced, again.") introduced a regression which dropped a call to dm.GetDmDevicePathByName. The call was formerly done to check if a partition existed and shortcuted the logic. As a result when the partition exists and is already instantiated, CreateDynamicScratch function fails to fill out *scratch_device return value. The bandaid is to call GetBootScratchDevice() to leverage its own GetDmDevicePathByName call to fill out if it is detected as an empty value in CreateDynamicScratch, only called under this condition. Signed-off-by: Mark Salyzyn <salyzyn@google.com> Test: adb-remount-test.sh Bug: 148881519 Change-Id: I40464e8dd17d25a292a275d0b9df5f9519b794fb
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions