cout << " --report-period <seconds> " << std::endl;
cout << " --max-seconds <seconds>" << std::endl;
cout << " --max-read-size <bytes> " << std::endl;
+ cout << "explanations: " << std::endl;
+ cout << " chunk-dedup performs deduplication using a chunk generated by given source" << std::endl;
+ cout << " offset and length. object-dedup deduplicates the entire object, not a chunk" << std::endl;
exit(1);
}
return ret;
}
+ /*
+ * TODO: add a better way to make an object a manifest object.
+ * We're using set_chunk with an incorrect object here simply to make
+ * the object a manifest object, the tier_flush() will remove
+ * it and replace it with the real contents.
+ */
// convert object to manifest object
ObjectWriteOperation op;
bufferlist temp;
return chunk_scrub_common(opts, args);
} else if (op_name == "chunk-dedup" ||
op_name == "object-dedup") {
+ /*
+ * chunk-dedup:
+ * using a chunk generated by given source,
+ * create a new object in the chunk pool or increase the reference
+ * if the object exists
+ *
+ * object-dedup:
+ * perform deduplication on the entire object, not a chunk.
+ *
+ */
return make_dedup_object(opts, args);
} else {
cerr << "unrecognized op " << op_name << std::endl;