[Sheepdog] [PATCH 2/4] sheep: write zeros when creating objects
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Thu Dec 15 23:01:18 CET 2011
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/simple_store.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sheep/simple_store.c b/sheep/simple_store.c
index f264200..21b5404 100644
--- a/sheep/simple_store.c
+++ b/sheep/simple_store.c
@@ -51,6 +51,7 @@ static int store_write_last_sector(uint64_t oid, struct siocb *iocb)
eprintf("failed to allocate memory\n");
return SD_RES_NO_MEM;
}
+ memset(buf, 0, size);
iocb->buf = buf;
iocb->length = size;
--
1.7.2.5
More information about the sheepdog
mailing list