From: Sage Weil Date: Thu, 3 Apr 2008 20:29:28 +0000 (-0700) Subject: ebofs: zero tail bit of cnode blocks X-Git-Tag: v0.2~209^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e768ad183d1fe1ae6d90c3f095dfd9fa14318076;p=ceph.git ebofs: zero tail bit of cnode blocks --- diff --git a/src/ebofs/Ebofs.cc b/src/ebofs/Ebofs.cc index ef0b8d260617..607f3276fc5e 100644 --- a/src/ebofs/Ebofs.cc +++ b/src/ebofs/Ebofs.cc @@ -1219,6 +1219,8 @@ void Ebofs::write_cnode(Cnode *cn) unsigned off = 0; csum_t csum = encode_cnode(cn, bl, off); assert(off == bytes); + if (off < bl.length()) + bl.zero(off, bl.length()-off); // update pointer collection_tab->remove(cn->coll_id);