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: Alessio Balsini <balsini@google.com>
This commit is contained in:
parent
3f6334e623
commit
9e95202e4d
2 changed files with 3 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue