1ddd113beSAndrey ShinkevichTest 1 2ddd113beSAndrey Shinkevich{"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 16384, "name": "bitmap-0", "node": "drive0", "persistent": false}} 3ddd113beSAndrey Shinkevich{"return": {}} 4ddd113beSAndrey Shinkevichwrote 262144/262144 bytes at offset 0 5ddd113beSAndrey Shinkevich256 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 6ddd113beSAndrey Shinkevich 7ddd113beSAndrey Shinkevichqemu-img info dump: 8ddd113beSAndrey Shinkevich 9ddd113beSAndrey Shinkevichimage: TEST_IMG 10ddd113beSAndrey Shinkevichfile format: IMGFMT 11de38b500SEric Blakevirtual size: 1 MiB (1048576 bytes) 12ddd113beSAndrey Shinkevichcluster_size: 65536 13ddd113beSAndrey ShinkevichFormat specific information: 14ddd113beSAndrey Shinkevich compat: 1.1 15*e877bba3SVladimir Sementsov-Ogievskiy compression type: COMPRESSION_TYPE 16ddd113beSAndrey Shinkevich lazy refcounts: false 17ddd113beSAndrey Shinkevich refcount bits: 16 18ddd113beSAndrey Shinkevich corrupt: false 197be20252SAlberto Garcia extended l2: false 20ddd113beSAndrey Shinkevich 21ddd113beSAndrey ShinkevichNo bitmap in JSON format output 22ddd113beSAndrey Shinkevich 23ddd113beSAndrey ShinkevichTest 2 24ddd113beSAndrey Shinkevich{"execute": "block-dirty-bitmap-add", "arguments": {"disabled": true, "granularity": 32768, "name": "bitmap-1", "node": "drive0", "persistent": true}} 25ddd113beSAndrey Shinkevich{"return": {}} 26ddd113beSAndrey Shinkevichwrote 262144/262144 bytes at offset 262144 27ddd113beSAndrey Shinkevich256 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 28ddd113beSAndrey Shinkevich 29ddd113beSAndrey Shinkevichqemu-img info dump: 30ddd113beSAndrey Shinkevich 31ddd113beSAndrey Shinkevichimage: TEST_IMG 32ddd113beSAndrey Shinkevichfile format: IMGFMT 33de38b500SEric Blakevirtual size: 1 MiB (1048576 bytes) 34ddd113beSAndrey Shinkevichcluster_size: 65536 35ddd113beSAndrey ShinkevichFormat specific information: 36ddd113beSAndrey Shinkevich compat: 1.1 37*e877bba3SVladimir Sementsov-Ogievskiy compression type: COMPRESSION_TYPE 38ddd113beSAndrey Shinkevich lazy refcounts: false 39ddd113beSAndrey Shinkevich bitmaps: 40ddd113beSAndrey Shinkevich [0]: 41ddd113beSAndrey Shinkevich flags: 42ddd113beSAndrey Shinkevich name: bitmap-1 43ddd113beSAndrey Shinkevich granularity: 32768 44ddd113beSAndrey Shinkevich refcount bits: 16 45ddd113beSAndrey Shinkevich corrupt: false 467be20252SAlberto Garcia extended l2: false 47ddd113beSAndrey Shinkevich 48ddd113beSAndrey ShinkevichThe same bitmaps in JSON format: 49ddd113beSAndrey Shinkevich[ 50ddd113beSAndrey Shinkevich { 51ddd113beSAndrey Shinkevich "flags": [], 52ddd113beSAndrey Shinkevich "granularity": 32768, 53ddd113beSAndrey Shinkevich "name": "bitmap-1" 54ddd113beSAndrey Shinkevich } 55ddd113beSAndrey Shinkevich] 56ddd113beSAndrey Shinkevich 57ddd113beSAndrey ShinkevichTest 3 58ddd113beSAndrey Shinkevich{"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 65536, "name": "bitmap-2", "node": "drive0", "persistent": true}} 59ddd113beSAndrey Shinkevich{"return": {}} 60ddd113beSAndrey Shinkevichwrote 262144/262144 bytes at offset 524288 61ddd113beSAndrey Shinkevich256 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 62ddd113beSAndrey Shinkevich 63ddd113beSAndrey Shinkevichqemu-img info dump: 64ddd113beSAndrey Shinkevich 65ddd113beSAndrey Shinkevichimage: TEST_IMG 66ddd113beSAndrey Shinkevichfile format: IMGFMT 67de38b500SEric Blakevirtual size: 1 MiB (1048576 bytes) 68ddd113beSAndrey Shinkevichcluster_size: 65536 69ddd113beSAndrey ShinkevichFormat specific information: 70ddd113beSAndrey Shinkevich compat: 1.1 71*e877bba3SVladimir Sementsov-Ogievskiy compression type: COMPRESSION_TYPE 72ddd113beSAndrey Shinkevich lazy refcounts: false 73ddd113beSAndrey Shinkevich bitmaps: 74ddd113beSAndrey Shinkevich [0]: 75ddd113beSAndrey Shinkevich flags: 76ddd113beSAndrey Shinkevich name: bitmap-1 77ddd113beSAndrey Shinkevich granularity: 32768 78ddd113beSAndrey Shinkevich [1]: 79ddd113beSAndrey Shinkevich flags: 80ddd113beSAndrey Shinkevich [0]: auto 81ddd113beSAndrey Shinkevich name: bitmap-2 82ddd113beSAndrey Shinkevich granularity: 65536 83ddd113beSAndrey Shinkevich refcount bits: 16 84ddd113beSAndrey Shinkevich corrupt: false 857be20252SAlberto Garcia extended l2: false 86ddd113beSAndrey Shinkevich 87ddd113beSAndrey ShinkevichThe same bitmaps in JSON format: 88ddd113beSAndrey Shinkevich[ 89ddd113beSAndrey Shinkevich { 90ddd113beSAndrey Shinkevich "flags": [], 91ddd113beSAndrey Shinkevich "granularity": 32768, 92ddd113beSAndrey Shinkevich "name": "bitmap-1" 93ddd113beSAndrey Shinkevich }, 94ddd113beSAndrey Shinkevich { 95ddd113beSAndrey Shinkevich "flags": [ 96ddd113beSAndrey Shinkevich "auto" 97ddd113beSAndrey Shinkevich ], 98ddd113beSAndrey Shinkevich "granularity": 65536, 99ddd113beSAndrey Shinkevich "name": "bitmap-2" 100ddd113beSAndrey Shinkevich } 101ddd113beSAndrey Shinkevich] 102ddd113beSAndrey Shinkevich 103ddd113beSAndrey ShinkevichTest 4 104ddd113beSAndrey ShinkevichChecking "in-use" flag... 105ddd113beSAndrey Shinkevichqemu-img info dump: 106ddd113beSAndrey Shinkevich 107ddd113beSAndrey Shinkevichimage: TEST_IMG 108ddd113beSAndrey Shinkevichfile format: IMGFMT 109de38b500SEric Blakevirtual size: 1 MiB (1048576 bytes) 110ddd113beSAndrey Shinkevichcluster_size: 65536 111ddd113beSAndrey ShinkevichFormat specific information: 112ddd113beSAndrey Shinkevich compat: 1.1 113*e877bba3SVladimir Sementsov-Ogievskiy compression type: COMPRESSION_TYPE 114ddd113beSAndrey Shinkevich lazy refcounts: false 115ddd113beSAndrey Shinkevich bitmaps: 116ddd113beSAndrey Shinkevich [0]: 117ddd113beSAndrey Shinkevich flags: 118ddd113beSAndrey Shinkevich [0]: in-use 119ddd113beSAndrey Shinkevich name: bitmap-1 120ddd113beSAndrey Shinkevich granularity: 32768 121ddd113beSAndrey Shinkevich [1]: 122ddd113beSAndrey Shinkevich flags: 123ddd113beSAndrey Shinkevich [0]: in-use 124ddd113beSAndrey Shinkevich [1]: auto 125ddd113beSAndrey Shinkevich name: bitmap-2 126ddd113beSAndrey Shinkevich granularity: 65536 127ddd113beSAndrey Shinkevich refcount bits: 16 128ddd113beSAndrey Shinkevich corrupt: false 1297be20252SAlberto Garcia extended l2: false 130ddd113beSAndrey Shinkevich 131ddd113beSAndrey ShinkevichThe same bitmaps in JSON format: 132ddd113beSAndrey Shinkevich[ 133ddd113beSAndrey Shinkevich { 134ddd113beSAndrey Shinkevich "flags": [ 135ddd113beSAndrey Shinkevich "in-use" 136ddd113beSAndrey Shinkevich ], 137ddd113beSAndrey Shinkevich "granularity": 32768, 138ddd113beSAndrey Shinkevich "name": "bitmap-1" 139ddd113beSAndrey Shinkevich }, 140ddd113beSAndrey Shinkevich { 141ddd113beSAndrey Shinkevich "flags": [ 142ddd113beSAndrey Shinkevich "in-use", 143ddd113beSAndrey Shinkevich "auto" 144ddd113beSAndrey Shinkevich ], 145ddd113beSAndrey Shinkevich "granularity": 65536, 146ddd113beSAndrey Shinkevich "name": "bitmap-2" 147ddd113beSAndrey Shinkevich } 148ddd113beSAndrey Shinkevich] 149ddd113beSAndrey Shinkevich 150ddd113beSAndrey ShinkevichTest 5 151ddd113beSAndrey Shinkevich{"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 16384, "name": "bitmap-0", "node": "drive0", "persistent": true}} 152ddd113beSAndrey Shinkevich{"return": {}} 153ddd113beSAndrey ShinkevichWrite an unknown bitmap flag '0x4' into a new QCOW2 image at offset 327695 154ddd113beSAndrey Shinkevichqemu-img: Could not open 'TEST_IMG': Bitmap 'bitmap-0' doesn't satisfy the constraints 155ddd113beSAndrey Shinkevich 156ddd113beSAndrey ShinkevichUnset the unknown bitmap flag '0x4' in the bitmap directory entry: 157ddd113beSAndrey Shinkevich 158ddd113beSAndrey Shinkevichimage: TEST_IMG 159ddd113beSAndrey Shinkevichfile format: IMGFMT 160de38b500SEric Blakevirtual size: 1 MiB (1048576 bytes) 161ddd113beSAndrey Shinkevichcluster_size: 65536 162ddd113beSAndrey ShinkevichFormat specific information: 163ddd113beSAndrey Shinkevich compat: 1.1 164*e877bba3SVladimir Sementsov-Ogievskiy compression type: COMPRESSION_TYPE 165ddd113beSAndrey Shinkevich lazy refcounts: false 166ddd113beSAndrey Shinkevich bitmaps: 167ddd113beSAndrey Shinkevich [0]: 168ddd113beSAndrey Shinkevich flags: 169ddd113beSAndrey Shinkevich [0]: auto 170ddd113beSAndrey Shinkevich name: bitmap-0 171ddd113beSAndrey Shinkevich granularity: 16384 172ddd113beSAndrey Shinkevich refcount bits: 16 173ddd113beSAndrey Shinkevich corrupt: false 1747be20252SAlberto Garcia extended l2: false 175ddd113beSAndrey Shinkevich 176ddd113beSAndrey ShinkevichTest complete 177