1*5d9388d4SVladimir Sementsov-Ogievskiy 2*5d9388d4SVladimir Sementsov-OgievskiyTestcase non-persistent without restart 3*5d9388d4SVladimir Sementsov-Ogievskiy 4*5d9388d4SVladimir Sementsov-Ogievskiy{"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap0", "node": "drive0", "persistent": false}} 5*5d9388d4SVladimir Sementsov-Ogievskiy{"return": {}} 6*5d9388d4SVladimir Sementsov-Ogievskiyinitial bitmap: name=bitmap0 dirty-clusters=1 7*5d9388d4SVladimir Sementsov-Ogievskiy{"execute": "blockdev-snapshot-sync", "arguments": {"device": "drive0", "format": "qcow2", "snapshot-file": "TEST_DIR/PID-top"}} 8*5d9388d4SVladimir Sementsov-Ogievskiy{"return": {}} 9*5d9388d4SVladimir Sementsov-Ogievskiycheck that no bitmaps are in snapshot: not found 10*5d9388d4SVladimir Sementsov-Ogievskiy{"execute": "block-commit", "arguments": {"device": "drive0", "top": "TEST_DIR/PID-top"}} 11*5d9388d4SVladimir Sementsov-Ogievskiy{"return": {}} 12*5d9388d4SVladimir Sementsov-Ogievskiy{"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}} 13*5d9388d4SVladimir Sementsov-Ogievskiy{"execute": "block-job-complete", "arguments": {"device": "drive0"}} 14*5d9388d4SVladimir Sementsov-Ogievskiy{"return": {}} 15*5d9388d4SVladimir Sementsov-Ogievskiy{"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}} 16*5d9388d4SVladimir Sementsov-Ogievskiycheck bitmap after commit: name=bitmap0 dirty-clusters=2 17*5d9388d4SVladimir Sementsov-Ogievskiycheck updated bitmap: name=bitmap0 dirty-clusters=3 18*5d9388d4SVladimir Sementsov-Ogievskiy 19*5d9388d4SVladimir Sementsov-OgievskiyTestcase persistent without restart 20*5d9388d4SVladimir Sementsov-Ogievskiy 21*5d9388d4SVladimir Sementsov-Ogievskiy{"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap0", "node": "drive0", "persistent": true}} 22*5d9388d4SVladimir Sementsov-Ogievskiy{"return": {}} 23*5d9388d4SVladimir Sementsov-Ogievskiyinitial bitmap: name=bitmap0 dirty-clusters=1 24*5d9388d4SVladimir Sementsov-Ogievskiy{"execute": "blockdev-snapshot-sync", "arguments": {"device": "drive0", "format": "qcow2", "snapshot-file": "TEST_DIR/PID-top"}} 25*5d9388d4SVladimir Sementsov-Ogievskiy{"return": {}} 26*5d9388d4SVladimir Sementsov-Ogievskiycheck that no bitmaps are in snapshot: not found 27*5d9388d4SVladimir Sementsov-Ogievskiy{"execute": "block-commit", "arguments": {"device": "drive0", "top": "TEST_DIR/PID-top"}} 28*5d9388d4SVladimir Sementsov-Ogievskiy{"return": {}} 29*5d9388d4SVladimir Sementsov-Ogievskiy{"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}} 30*5d9388d4SVladimir Sementsov-Ogievskiy{"execute": "block-job-complete", "arguments": {"device": "drive0"}} 31*5d9388d4SVladimir Sementsov-Ogievskiy{"return": {}} 32*5d9388d4SVladimir Sementsov-Ogievskiy{"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}} 33*5d9388d4SVladimir Sementsov-Ogievskiycheck bitmap after commit: name=bitmap0 dirty-clusters=2 34*5d9388d4SVladimir Sementsov-Ogievskiycheck updated bitmap: name=bitmap0 dirty-clusters=3 35*5d9388d4SVladimir Sementsov-Ogievskiy 36*5d9388d4SVladimir Sementsov-OgievskiyTestcase persistent with restart 37*5d9388d4SVladimir Sementsov-Ogievskiy 38*5d9388d4SVladimir Sementsov-Ogievskiy{"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap0", "node": "drive0", "persistent": true}} 39*5d9388d4SVladimir Sementsov-Ogievskiy{"return": {}} 40*5d9388d4SVladimir Sementsov-Ogievskiyinitial bitmap: name=bitmap0 dirty-clusters=1 41*5d9388d4SVladimir Sementsov-Ogievskiy{"execute": "blockdev-snapshot-sync", "arguments": {"device": "drive0", "format": "qcow2", "snapshot-file": "TEST_DIR/PID-top"}} 42*5d9388d4SVladimir Sementsov-Ogievskiy{"return": {}} 43*5d9388d4SVladimir Sementsov-Ogievskiycheck that no bitmaps are in snapshot: not found 44*5d9388d4SVladimir Sementsov-Ogievskiy... Restart ... 45*5d9388d4SVladimir Sementsov-Ogievskiy{"execute": "block-commit", "arguments": {"device": "drive0", "top": "TEST_DIR/PID-top"}} 46*5d9388d4SVladimir Sementsov-Ogievskiy{"return": {}} 47*5d9388d4SVladimir Sementsov-Ogievskiy{"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}} 48*5d9388d4SVladimir Sementsov-Ogievskiy{"execute": "block-job-complete", "arguments": {"device": "drive0"}} 49*5d9388d4SVladimir Sementsov-Ogievskiy{"return": {}} 50*5d9388d4SVladimir Sementsov-Ogievskiy{"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}} 51*5d9388d4SVladimir Sementsov-Ogievskiycheck bitmap after commit: name=bitmap0 dirty-clusters=2 52*5d9388d4SVladimir Sementsov-Ogievskiycheck updated bitmap: name=bitmap0 dirty-clusters=3 53