<div dir="ltr">Reviewed-by: Robin Dong <<a href="mailto:sanbai@taobao.com">sanbai@taobao.com</a>></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-19 14:28 GMT+08:00 Liu Yuan <span dir="ltr"><<a href="mailto:namei.unix@gmail.com" target="_blank">namei.unix@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">max_vdi is overflowed<br>
<br>
Signed-off-by: Liu Yuan <<a href="mailto:namei.unix@gmail.com">namei.unix@gmail.com</a>><br>
---<br>
dog/vdi.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/dog/vdi.c b/dog/vdi.c<br>
index e4346f2..0b2d21b 100644<br>
--- a/dog/vdi.c<br>
+++ b/dog/vdi.c<br>
@@ -888,7 +888,7 @@ static int vdi_object_map(int argc, char **argv)<br>
vid = INODE_GET_VID(inode, idx);<br>
printf("%08"PRIu64" %8"PRIx32"\n", idx, vid);<br>
} else {<br>
- uint32_t max_idx = count_data_objs(inode);<br>
+ uint64_t max_idx = count_data_objs(inode);<br>
<br>
for (idx = 0; idx < max_idx; idx++) {<br>
vid = INODE_GET_VID(inode, idx);<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.1.2<br>
<br>
--<br>
sheepdog mailing list<br>
<a href="mailto:sheepdog@lists.wpkg.org">sheepdog@lists.wpkg.org</a><br>
<a href="http://lists.wpkg.org/mailman/listinfo/sheepdog" target="_blank">http://lists.wpkg.org/mailman/listinfo/sheepdog</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>--<br>Best Regard<br>Robin Dong
</div>