Signed-off-by: Myoungwon Oh <omwmw@sk.com>
oi.manifest.chunk_map[src_offset].flags |=
chunk_info_t::FLAG_HAS_REFERENCE;
}
+ if (need_reference && pool.info.get_fingerprint_type() != pg_pool_t::TYPE_FINGERPRINT_NONE) {
+ oi.manifest.chunk_map[src_offset].flags |= chunk_info_t::FLAG_HAS_FINGERPRINT;
+ }
ctx->modify = true;
dout(10) << "set-chunked oid:" << oi.soid << " user_version: " << oi.user_version
FLAG_DIRTY = 1,
FLAG_MISSING = 2,
FLAG_HAS_REFERENCE = 4,
+ FLAG_HAS_FINGERPRINT = 8,
};
uint32_t offset;
uint32_t length;
if (flags & FLAG_HAS_REFERENCE) {
r += "|has_reference";
}
+ if (flags & FLAG_HAS_FINGERPRINT) {
+ r += "|has_fingerprint";
+ }
if (r.length())
return r.substr(1);
return r;