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

Issue 2247263002: Prevent formatting a device being mounted in read-only mode. (Closed)

Created:
4 years, 4 months ago by yamaguchi
Modified:
4 years, 4 months ago
Reviewers:
satorux1
CC:
chromium-reviews, oshima+watch_chromium.org, hashimoto, fukino
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent formatting a device being mounted in read-only mode. The change adds a double check before starting unmount-for-format operation to ensure that the read-only devices cannot be formatted even when the UI issues that command. It will also apply for devices mounted in read-only mode by the policy after https://codereview.chromium.org/2230713003/ , in addition to HW write-protected device. The UI issue (crbug.com/636373) will also be fixed separately. TEST=unittest and manual test utilizing the repro steps noted in crbug.com/636373 to see formatting a writable device results in an error. The manual test requires to merge 2230713003 and 2248033003 locally. BUG=629945, 636373 Committed: https://crrev.com/bffc32eb63e5e211a1f2bd44cae8c91bc5ac2922 Cr-Commit-Position: refs/heads/master@{#412461}

Patch Set 1 #

Patch Set 2 : Fix indent to preserve existing style. #

Total comments: 2

Patch Set 3 : Fix indent to preserve existing style. #

Patch Set 4 : Revert some more changes to preserve existing style. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -0 lines) Patch
M chromeos/disks/disk_mount_manager.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chromeos/disks/disk_mount_manager_unittest.cc View 1 2 3 4 chunks +42 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
yamaguchi
4 years, 4 months ago (2016-08-16 08:34:16 UTC) #4
satorux1
Please also add TEST= line in the description that describes how you tested the change. ...
4 years, 4 months ago (2016-08-16 20:24:04 UTC) #5
yamaguchi
https://codereview.chromium.org/2247263002/diff/20001/chromeos/disks/disk_mount_manager_unittest.cc File chromeos/disks/disk_mount_manager_unittest.cc (right): https://codereview.chromium.org/2247263002/diff/20001/chromeos/disks/disk_mount_manager_unittest.cc#newcode63 chromeos/disks/disk_mount_manager_unittest.cc:63: { On 2016/08/16 20:24:04, satorux1 wrote: > Is this ...
4 years, 4 months ago (2016-08-17 04:06:17 UTC) #6
satorux1
LGTM. Re testing, did you also test this manually? Please also mention it in TEST= ...
4 years, 4 months ago (2016-08-17 05:15:03 UTC) #8
yamaguchi
On 2016/08/17 05:15:03, satorux1 wrote: > LGTM. > > Re testing, did you also test ...
4 years, 4 months ago (2016-08-17 05:53:41 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2247263002/60001
4 years, 4 months ago (2016-08-17 05:54:24 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-17 06:36:05 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 06:37:54 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bffc32eb63e5e211a1f2bd44cae8c91bc5ac2922
Cr-Commit-Position: refs/heads/master@{#412461}

Powered by Google App Engine
This is Rietveld 408576698