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;