Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e95202e authored by Alessio Balsini's avatar Alessio Balsini
Browse files

Publish chunk size in utility.h



The chunk size of the snapshot should be kept consistent among different
files.
Move it to libsnapshot/utility.h to improve its visibility.

Change-Id: I1cae6530a07c88f3a0091ca7d8bb2eb590a6710f
Bug: 140835698
Test: m
Signed-off-by: default avatarAlessio Balsini <balsini@google.com>
parent 3f6334e6
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -71,8 +71,6 @@ using std::chrono::duration_cast;
using namespace std::chrono_literals;
using namespace std::string_literals;

// Unit is sectors, this is a 4K chunk.
static constexpr uint32_t kSnapshotChunkSize = 8;
static constexpr char kBootIndicatorPath[] = "/metadata/ota/snapshot-boot";

class DeviceInfo final : public SnapshotManager::IDeviceInfo {
+3 −0
Original line number Diff line number Diff line
@@ -27,6 +27,9 @@
namespace android {
namespace snapshot {

// Unit is sectors, this is a 4K chunk.
static constexpr uint32_t kSnapshotChunkSize = 8;

struct AutoDevice {
    virtual ~AutoDevice(){};
    void Release();