Bug:
17576594
Change-Id: I7320aa597210896b4db6e663e1b2cb0c24d96557
Signed-off-by: Greg Hackmann <ghackmann@google.com>
static int wait_and_unmount(char *mountpoint)
{
- int i, rc;
+ int i, err, rc;
#define WAIT_UNMOUNT_COUNT 20
/* Now umount the tmpfs filesystem */
*/
break;
}
+ err = errno;
sleep(1);
i++;
} else {
rc = 0;
} else {
vold_killProcessesWithOpenFiles(mountpoint, 0);
- SLOGE("unmounting %s failed\n", mountpoint);
+ SLOGE("unmounting %s failed: %s\n", mountpoint, strerror(err));
rc = -1;
}