From cab8646a07e5afd8dd5f3aa6b2809bc89d88292d Mon Sep 17 00:00:00 2001 From: Daniel Zheng Date: Thu, 12 Oct 2023 14:10:50 -0700 Subject: [PATCH] Add v3 to CreateCowWriter Adding v3 writer as a return type to CreateCowWriter Test: write_cow Change-Id: Ia68ddf17b9f5f9fae27da4d6ab5fb150078d0c38 --- fs_mgr/libsnapshot/libsnapshot_cow/cow_format.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs_mgr/libsnapshot/libsnapshot_cow/cow_format.cpp b/fs_mgr/libsnapshot/libsnapshot_cow/cow_format.cpp index 5ab4f7a52..b9052915e 100644 --- a/fs_mgr/libsnapshot/libsnapshot_cow/cow_format.cpp +++ b/fs_mgr/libsnapshot/libsnapshot_cow/cow_format.cpp @@ -23,6 +23,7 @@ #include #include #include "writer_v2.h" +#include "writer_v3.h" namespace android { namespace snapshot { @@ -149,6 +150,9 @@ std::unique_ptr CreateCowWriter(uint32_t version, const CowOptions& case 2: base = std::make_unique(options, std::move(fd)); break; + case 3: + base = std::make_unique(options, std::move(fd)); + break; default: LOG(ERROR) << "Cannot create unknown cow version: " << version; return nullptr;