summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils_unittest.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-08-22 19:51:59 -0700
committerAlex Deymo <deymo@google.com>2016-08-22 22:42:18 -0700
commit5ba93ad42fad1efc40ae2e7abcda9c8793363508 (patch)
tree8e43215ccc93f6ab623a36da8d12cb4fb48207fd /scripts/update_payload/format_utils_unittest.py
parent6cacaf530132707475dd372b60386e031935c9b2 (diff)
Lazy unmount postinstall if it fails to unmount.
If postinstall forks a new child that's not killed when killing the main postinstall process or if postinstall makes any other running process to hold a file descriptor open in the mounted filesystem, the filesystem is busy an we can't unmount /postinstall. Since the postinstall mountpoint is fix in Android, we need to force a lazy unmount in order for the process to succeed in a future run. This case can only occur when canceling an update during postinstall (for example if the update was retried from the server) and would otherwise clear itself after a few unmount retries if the process using the fd stops using it. Bug: 31021934 Test: Added native tests to excersice this case. Change-Id: I69404658f481082b944f2ea6077e9a754a690ae6
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions