Merge "Add v3 to CreateCowWriter" into main
This commit is contained in:
commit
452f176ca8
1 changed files with 4 additions and 0 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include <android-base/stringprintf.h>
|
||||
#include <libsnapshot/cow_format.h>
|
||||
#include "writer_v2.h"
|
||||
#include "writer_v3.h"
|
||||
|
||||
namespace android {
|
||||
namespace snapshot {
|
||||
|
|
@ -149,6 +150,9 @@ std::unique_ptr<ICowWriter> CreateCowWriter(uint32_t version, const CowOptions&
|
|||
case 2:
|
||||
base = std::make_unique<CowWriterV2>(options, std::move(fd));
|
||||
break;
|
||||
case 3:
|
||||
base = std::make_unique<CowWriterV3>(options, std::move(fd));
|
||||
break;
|
||||
default:
|
||||
LOG(ERROR) << "Cannot create unknown cow version: " << version;
|
||||
return nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue