Home
last modified time | relevance | path

Searched refs:extract_to (Results 1 – 1 of 1) sorted by relevance

/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dinspect_cow.cpp42 DEFINE_string(extract_to, "", "Extract the COW contents to the given file");
117 unique_fd extract_to; in Inspect() local
119 extract_to.reset(open(FLAGS_extract_to.c_str(), O_RDWR | O_CREAT | O_TRUNC, 0664)); in Inspect()
120 if (extract_to < 0) { in Inspect()
202 if ((FLAGS_decompress || extract_to >= 0) && op->type() == kCowReplaceOp) { in Inspect()
208 if (extract_to >= 0) { in Inspect()
210 if (!android::base::WriteFullyAtOffset(extract_to, buffer.data(), buffer.size(), in Inspect()
216 } else if (extract_to >= 0 && !IsMetadataOp(*op) && op->type() != kCowZeroOp) { in Inspect()