Commit 8f08cfc8 authored by Amin Hassani's avatar Amin Hassani Committed by chrome-bot
Browse files

Fix the long time ioctl problem.

On some boards ioctl() takes a long time (several seconds) to perform
discarding blocks for a few hundred MB (which might be expected). This
causes the UE (which is single threaded) to block for ioctl for several
seconds and prevents the message loop from responding to dbus requests.
'update_engine_client --status' relies on dbus signals to get the status
of the update engine. This can cause 'cros flash' or provisionning of
devices to fail due error returned from ssh invokation of
update_engine_client. This CL fixes the issue by doing
BLKDISCARD before BLKSECDISCARD.

Discarding the end of partition were originally added for b/28744609.

BUG=chromium:734731
TEST=cros flash; test_that provision_AutoUpdate;

Change-Id: I1f9b572f5155284b3aa399285630daee560573a0
Reviewed-on: https://chromium-review.googlesource.com/547015


Commit-Ready: Amin Hassani <ahassani@chromium.org>
Tested-by: default avatarAmin Hassani <ahassani@chromium.org>
Reviewed-by: default avatarGwendal Grignou <gwendal@chromium.org>
Reviewed-by: default avatarGrant Grundler <grundler@chromium.org>
Reviewed-by: default avatarAlex Deymo <deymo@google.com>
parent fca4775f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment