<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">2013/12/3 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">Signed-off-by: Liu Yuan <<a href="mailto:namei.unix@gmail.com">namei.unix@gmail.com</a>><br>
---<br>
 tests/functional/020     |   16 +++++++++++++++-<br>
 tests/functional/020.out |   10 ++++++++++<br>
 2 files changed, 25 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/tests/functional/020 b/tests/functional/020<br>
index 6610bb1..00af829 100755<br>
--- a/tests/functional/020<br>
+++ b/tests/functional/020<br>
@@ -1,6 +1,6 @@<br>
 #!/bin/bash<br>
<br>
-# Test object cache reclaim<br>
+# Test object cache reclaim and size parameter<br>
<br>
 . ./common<br>
<br>
@@ -21,3 +21,17 @@ nr=`ls $STORE/0/cache/7c2b25 | wc -l`<br>
 if [ $nr -gt 4 ]; then<br>
     echo "reclaim failed"<br>
 fi<br>
+<br>
+_cleanup<br>
+<br>
+_start_sheep 0 "-w size=200M"<br>
+_start_sheep 1 "-w size=200G"<br>
+_start_sheep 2 "-w size=20T"<br>
+<br>
+_wait_for_sheep 3<br>
+<br>
+_cluster_format -c 3<br>
+<br>
+for i in 0 1 2; do<br>
+    $DOG vdi cache info -p 700$i<br>
+done<br>
diff --git a/tests/functional/020.out b/tests/functional/020.out<br>
index 1c3490c..18eb020 100644<br>
--- a/tests/functional/020.out<br>
+++ b/tests/functional/020.out<br>
@@ -1,2 +1,12 @@<br>
 QA output created by 020<br>
 using backend plain store<br>
+using backend plain store<br>
+Name   Tag     Total   Dirty   Clean<br>
+<br>
+Cache size 200 MB, used 0.0 MB, non-directio<br>
+Name   Tag     Total   Dirty   Clean<br>
+<br>
+Cache size 200 GB, used 0.0 MB, non-directio<br>
+Name   Tag     Total   Dirty   Clean<br>
+<br>
+Cache size 20 TB, used 0.0 MB, non-directio<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.9.5<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>