summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a0223bf)
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Idf4933f9b40c74b99bf763eb896680a4e0c942ff
Reviewed-on: http://review.whamcloud.com/1588
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
f=$TDIR/$tfile
rm -f $f
sync && sleep 2 && sync # wait for delete thread
f=$TDIR/$tfile
rm -f $f
sync && sleep 2 && sync # wait for delete thread
+
+ # wait till space is returned, following
+ # (( $before > $after_dd)) test counting on that
+ wait_mds_ost_sync || return 4
+ wait_destroy_complete || return 5
+
before=`kbytesfree`
dd if=/dev/urandom bs=4096 count=1280 of=$f || return 28
lfs getstripe $f
before=`kbytesfree`
dd if=/dev/urandom bs=4096 count=1280 of=$f || return 28
lfs getstripe $f
f=$TDIR/$tfile
rm -f $f
sync && sleep 5 && sync # wait for delete thread
f=$TDIR/$tfile
rm -f $f
sync && sleep 5 && sync # wait for delete thread
+
+ # wait till space is returned, following
+ # (( $before > $after_dd)) test counting on that
+ wait_mds_ost_sync || return 4
+ wait_destroy_complete || return 5
+
before=`kbytesfree`
dd if=/dev/urandom bs=4096 count=1280 of=$f || return 4
sync
before=`kbytesfree`
dd if=/dev/urandom bs=4096 count=1280 of=$f || return 4
sync