Revert "Format formattable partitions if mount fails"
This reverts commit 29dd6b6c01295222fee5ef2fc70692b2ecb12504. Change-Id: I7b76cd920019ae8cb7270b3f83e777ea9de7f7a4
This commit is contained in:
parent
a6ae84ec5a
commit
8c55ebccde
1 changed files with 0 additions and 9 deletions
|
|
@ -123,15 +123,6 @@ bool TryPathMount(FstabEntry* rec, const std::string& mount_pt) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int result = fs_mgr_do_mount_one(*rec, mount_point);
|
int result = fs_mgr_do_mount_one(*rec, mount_point);
|
||||||
if (result == -1 && rec->fs_mgr_flags.formattable) {
|
|
||||||
PERROR << "Failed to mount " << mount_point << "; formatting";
|
|
||||||
if (fs_mgr_do_format(*rec) != 0) {
|
|
||||||
PERROR << "Failed to format " << mount_point;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
result = fs_mgr_do_mount_one(*rec, mount_point);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (result == -1) {
|
if (result == -1) {
|
||||||
PERROR << "Failed to mount " << mount_point;
|
PERROR << "Failed to mount " << mount_point;
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue