From cc44c374684ee2f54c6446e97b6f1060784153be Mon Sep 17 00:00:00 2001 From: Daniel Zheng Date: Mon, 18 Sep 2023 14:02:17 -0700 Subject: [PATCH] Updating comments on cow layout Updating comments to match current format. Scratch space exists in between header and operation Test: th Change-Id: I2f86e9dc4078f03370cdc38918136c894c6ca484 --- fs_mgr/libsnapshot/include/libsnapshot/cow_format.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs_mgr/libsnapshot/include/libsnapshot/cow_format.h b/fs_mgr/libsnapshot/include/libsnapshot/cow_format.h index aac71de9c..9359b9ec1 100644 --- a/fs_mgr/libsnapshot/include/libsnapshot/cow_format.h +++ b/fs_mgr/libsnapshot/include/libsnapshot/cow_format.h @@ -49,7 +49,9 @@ static constexpr uint32_t kDefaultCowVersion = 2; // | Footer (fixed) | // +-----------------------+ // -// The operations begin immediately after the header, and the "raw data" +// After the header is a 2mb scratch space that is used to read ahead data during merge operations +// +// The operations begin immediately after the scratch space, and the "raw data" // immediately follows the operation which refers to it. While streaming // an OTA, we can immediately write the op and data, syncing after each pair, // while storing operation metadata in memory. At the end, we compute data and