diff options
| -rw-r--r-- | imgdiag/imgdiag.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/imgdiag/imgdiag.cc b/imgdiag/imgdiag.cc index 92953c8bf4..f3982ec342 100644 --- a/imgdiag/imgdiag.cc +++ b/imgdiag/imgdiag.cc @@ -1204,7 +1204,10 @@ class ImgDiagDumper { return false; } - // Check that the loaded boot image is really clean. + // Note: the boot image is not really clean but close enough. + // For now, log pages found to be dirty. + // TODO: Rewrite imgdiag to load boot image without creating a runtime. + // FIXME: The following does not reliably detect dirty pages. Runtime* runtime = Runtime::Current(); CHECK(!runtime->ShouldRelocate()); size_t total_dirty_pages = 0u; @@ -1254,10 +1257,6 @@ class ImgDiagDumper { total_dirty_pages += num_dirty_pages; } } - if (total_dirty_pages != 0u) { - os << "Aborting: found dirty pages in boot image that should have been clean."; - return false; - } // Commit the mappings and files. image_proc_maps_ = std::move(image_proc_maps); |