Add parser for EROFS file data
This CL parses file names and compression info from input EROFS image,
so that OTA generation can use it later.
Test: th
Test: Generate an incremental OTA with erofs images, make sure we see
file lists.
Bug: 206729162
Change-Id: I70536d7762acc19a6977460738065d5557338532
diff --git a/payload_generator/filesystem_interface.h b/payload_generator/filesystem_interface.h
index 05d387f..2d2846d 100644
--- a/payload_generator/filesystem_interface.h
+++ b/payload_generator/filesystem_interface.h
@@ -31,10 +31,10 @@
#include <string>
#include <vector>
-#include <base/macros.h>
#include <brillo/key_value_store.h>
#include <puffin/utils.h>
+#include "update_engine/lz4diff/lz4diff_format.h"
#include "update_engine/update_metadata.pb.h"
namespace chromeos_update_engine {
@@ -72,6 +72,8 @@
// All the deflate locations in the file. These locations are not relative
// to the extents. They are relative to the file system itself.
std::vector<puffin::BitExtent> deflates;
+
+ CompressedFile compressed_file_info;
};
virtual ~FilesystemInterface() = default;