Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Issue 282853003: Unmounts volumes before writing to a drive. (Closed)

Created:
6 years, 7 months ago by Drew Haven
Modified:
6 years, 7 months ago
Reviewers:
tbarzic
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Unmounts volumes before writing to a drive. When writing to a drive with mounted volumes, Chrome OS will recreate the partition table if it is observe to be missing and the volumes are accessed after writing. This only occurs when erasing just the partition table because enough of the volume information is still present. We also expand the amount of data erased when destroying partitions to 8k to account for 4k block sizes. This has the side effect of overwriting the LBA for 512-byte-block drives, which only increases the effect of destroying partitions. BUG=284834 BUG=335390 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271551

Patch Set 1 #

Patch Set 2 : Updates the partition table comment. #

Patch Set 3 : Adds function comments and reorganizes the unmount operation slightly. #

Total comments: 10

Patch Set 4 : Moves unmounting to the UI thread. #

Total comments: 2

Patch Set 5 : Adds Chrome OS-specific operation guards. #

Total comments: 2

Patch Set 6 : moves comment #

Patch Set 7 : Removes unused variables for Chrome OS compile. #

Patch Set 8 : Fixes Chrome OS test setup. #

Patch Set 9 : Adds compile guard to Chrome OS includes in test_utils.h #

Messages

Total messages: 22 (0 generated)
Drew Haven
Toni, I made some fixes to our Chrome OS writing to unmount volumes before writing. ...
6 years, 7 months ago (2014-05-13 19:42:28 UTC) #1
tbarzic
https://codereview.chromium.org/282853003/diff/40001/chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc File chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc (right): https://codereview.chromium.org/282853003/diff/40001/chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc#newcode51 chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc:51: LOG(ERROR) << "Unmounting volumes."; remove this https://codereview.chromium.org/282853003/diff/40001/chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc#newcode53 chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc:53: DiskMountManager::GetInstance()->UnmountDeviceRecursively( ...
6 years, 7 months ago (2014-05-13 20:09:33 UTC) #2
Drew Haven
https://codereview.chromium.org/282853003/diff/40001/chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc File chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc (right): https://codereview.chromium.org/282853003/diff/40001/chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc#newcode51 chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc:51: LOG(ERROR) << "Unmounting volumes."; On 2014/05/13 20:09:33, tbarzic wrote: ...
6 years, 7 months ago (2014-05-15 00:30:04 UTC) #3
tbarzic
https://codereview.chromium.org/282853003/diff/40001/chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc File chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc (right): https://codereview.chromium.org/282853003/diff/40001/chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc#newcode51 chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc:51: LOG(ERROR) << "Unmounting volumes."; On 2014/05/15 00:30:04, Drew Haven ...
6 years, 7 months ago (2014-05-15 00:58:58 UTC) #4
Drew Haven
https://codereview.chromium.org/282853003/diff/40001/chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc File chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc (right): https://codereview.chromium.org/282853003/diff/40001/chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc#newcode93 chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc:93: burner->SetEventHandlers( On 2014/05/15 00:58:58, tbarzic wrote: > On 2014/05/15 ...
6 years, 7 months ago (2014-05-15 02:00:28 UTC) #5
tbarzic
lgtm https://codereview.chromium.org/282853003/diff/120001/chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc File chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc (right): https://codereview.chromium.org/282853003/diff/120001/chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc#newcode21 chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc:21: // TODO(haven): The Image Burner cannot handle multiple ...
6 years, 7 months ago (2014-05-15 16:41:40 UTC) #6
Drew Haven
https://codereview.chromium.org/282853003/diff/120001/chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc File chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc (right): https://codereview.chromium.org/282853003/diff/120001/chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc#newcode21 chrome/browser/extensions/api/image_writer_private/operation_chromeos.cc:21: // TODO(haven): The Image Burner cannot handle multiple burns. ...
6 years, 7 months ago (2014-05-15 17:37:20 UTC) #7
Drew Haven
The CQ bit was checked by haven@chromium.org
6 years, 7 months ago (2014-05-15 20:17:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/282853003/160001
6 years, 7 months ago (2014-05-15 20:18:12 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 22:15:35 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-15 23:17:50 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/27523)
6 years, 7 months ago (2014-05-15 23:17:51 UTC) #12
Drew Haven
The CQ bit was checked by haven@chromium.org
6 years, 7 months ago (2014-05-16 17:53:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/282853003/180001
6 years, 7 months ago (2014-05-16 17:54:48 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-16 21:03:04 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-17 08:19:47 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-17 11:05:50 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_compile_dbg/builds/20655)
6 years, 7 months ago (2014-05-17 11:05:50 UTC) #18
Drew Haven
The CQ bit was checked by haven@chromium.org
6 years, 7 months ago (2014-05-19 20:41:43 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/282853003/200001
6 years, 7 months ago (2014-05-19 20:42:34 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-20 01:04:09 UTC) #21
commit-bot: I haz the power
6 years, 7 months ago (2014-05-20 03:03:45 UTC) #22
Message was sent while issue was closed.
Change committed as 271551

Powered by Google App Engine
This is Rietveld 408576698