Chromium Code Reviews
DescriptionPrevent 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. #
Messages
Total messages: 17 (9 generated)
|
||||||||||||||||||||||||||||