diff --git a/yottadisk.go b/yottadisk.go index c65ddbd112ed9efe6bc14a31858ef6a3398af162..e508460ca2509f2dea09fa8ff0eab83dc31e0f9a 100644 --- a/yottadisk.go +++ b/yottadisk.go @@ -313,6 +313,7 @@ func buildYottaDisk(header *ydcommon.Header, storage storage.Storage, opt *opt.O for i := uint32(0); i < header.RangeCaps; i++ { index.sizes[i] = (uint16(indexSizeBuf[(i << 1) + 1]) << 8) | uint16(indexSizeBuf[i << 1]) } + index.total = header.DataCount yd := &YottaDisk{ opt,