OSDN Git Service

cryptfs: kill processes with open files on tmpfs /data
authorGreg Hackmann <ghackmann@google.com>
Fri, 3 Oct 2014 00:18:20 +0000 (17:18 -0700)
committerGreg Hackmann <ghackmann@google.com>
Fri, 3 Oct 2014 01:05:40 +0000 (18:05 -0700)
commit6e8440fd5072a673dd861ffb531fc17b4673ad90
treed8ba2a4b9064b78c01efe1b5d4b012c323031a97
parent9c58a871f9fb356409d3b90734bf706d1463f041
cryptfs: kill processes with open files on tmpfs /data

cryptfs will fail to remount /data at boot if any processes (e.g.
dex2oat) have files open on the tmpfs /data partition.  Since these
files are about to be destroyed anyway, just kill the offending
processes: first with SIGHUP and finally with SIGKILL.

Also remove a stray i++ that effectively cut the number of retries in
half.

Bug: 17576594

Change-Id: I76fb90ce2e52846ffb9de706e52b7bde98b4186a
Signed-off-by: Greg Hackmann <ghackmann@google.com>
cryptfs.c