diff --git a/fs_mgr/libsnapshot/snapshot.cpp b/fs_mgr/libsnapshot/snapshot.cpp index 5b758c958..395fb40d8 100644 --- a/fs_mgr/libsnapshot/snapshot.cpp +++ b/fs_mgr/libsnapshot/snapshot.cpp @@ -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 { diff --git a/fs_mgr/libsnapshot/utility.h b/fs_mgr/libsnapshot/utility.h index 75c694c10..305118432 100644 --- a/fs_mgr/libsnapshot/utility.h +++ b/fs_mgr/libsnapshot/utility.h @@ -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();