| Index: chromeos/disks/disk_mount_manager.cc
|
| diff --git a/chromeos/disks/disk_mount_manager.cc b/chromeos/disks/disk_mount_manager.cc
|
| index 869aa5c7555d276c4f91a19103002a9496f1b7fd..756920ac8c608f7de4a0309f2590d9458b9f811f 100644
|
| --- a/chromeos/disks/disk_mount_manager.cc
|
| +++ b/chromeos/disks/disk_mount_manager.cc
|
| @@ -123,6 +123,12 @@ class DiskMountManagerImpl : public DiskMountManager {
|
| OnFormatCompleted(FORMAT_ERROR_UNKNOWN, device_path);
|
| return;
|
| }
|
| + if (disk->second->is_read_only()) {
|
| + LOG(ERROR) << "Mount point with path \"" << mount_path
|
| + << "\" is read-only.";
|
| + OnFormatCompleted(FORMAT_ERROR_DEVICE_NOT_ALLOWED, mount_path);
|
| + return;
|
| + }
|
|
|
| UnmountPath(disk->second->mount_path(),
|
| UNMOUNT_OPTIONS_NONE,
|
|
|