From: Ilya Dryomov Date: Thu, 12 Apr 2018 09:19:09 +0000 (+0200) Subject: qa: krbd_fallocate.sh: add notrim test case X-Git-Tag: v13.1.0~177^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=46853684559e6c4382a64edd93a221233b509212;p=ceph-ci.git qa: krbd_fallocate.sh: add notrim test case Signed-off-by: Ilya Dryomov --- diff --git a/qa/workunits/rbd/krbd_fallocate.sh b/qa/workunits/rbd/krbd_fallocate.sh index 8be7e1a9366..3982979919d 100755 --- a/qa/workunits/rbd/krbd_fallocate.sh +++ b/qa/workunits/rbd/krbd_fallocate.sh @@ -42,6 +42,10 @@ EOF function allocate() { xfs_io -c "pwrite -b $OBJECT_SIZE -W 0 $IMAGE_SIZE" $DEV + assert_allocated +} + +function assert_allocated() { cmp <(od -xAx $DEV) - <