From 8fa9dec271556a984f7da2a6c311852857a3e5f8 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Mon, 19 Feb 2018 20:02:57 +0100 Subject: [PATCH] qa: krbd_fallocate.sh: add -ENOENT handling test case Signed-off-by: Ilya Dryomov --- qa/workunits/rbd/krbd_fallocate.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qa/workunits/rbd/krbd_fallocate.sh b/qa/workunits/rbd/krbd_fallocate.sh index 73f6036917e50..97d240a27e0a2 100755 --- a/qa/workunits/rbd/krbd_fallocate.sh +++ b/qa/workunits/rbd/krbd_fallocate.sh @@ -89,6 +89,11 @@ IMAGE_ID="$(rbd info --format=json $IMAGE_NAME | DEV=$(sudo rbd map $IMAGE_NAME) +# make sure -ENOENT is hidden +assert_deallocated +py_blkdiscard 0 +assert_deallocated + # blkdev_issue_discard allocate py_blkdiscard 0 -- 2.39.5