Commit 13a4950
committed
linstor: add QemuImg 3-param constructor for skip-zero copy optimization
Add QemuImg(timeout, skipZeroIfSupported, noCache) constructor that
detects --target-is-zero support in qemu-img and uses it during convert
to skip writing zeroes on pre-zeroed block devices. This significantly
improves copy performance on thin-provisioned LINSTOR volumes.
Update LinstorStorageAdaptor.copyPhysicalDisk and
LinstorRevertBackupSnapshotCommandWrapper to use the new constructor
with zeroedDevice detection via LinstorUtil.resourceSupportZeroBlocks.1 parent 0142594 commit 13a4950
File tree
3 files changed
+53
-2
lines changed- plugins
- hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/qemu
- storage/volume/linstor/src/main/java/com/cloud/hypervisor/kvm
- resource/wrapper
- storage
3 files changed
+53
-2
lines changedLines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
100 | 135 | | |
101 | 136 | | |
102 | 137 | | |
| |||
254 | 289 | | |
255 | 290 | | |
256 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
257 | 302 | | |
258 | 303 | | |
259 | 304 | | |
| |||
281 | 326 | | |
282 | 327 | | |
283 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
284 | 334 | | |
285 | 335 | | |
286 | 336 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
623 | 622 | | |
624 | 623 | | |
625 | 624 | | |
| |||
634 | 633 | | |
635 | 634 | | |
636 | 635 | | |
| 636 | + | |
637 | 637 | | |
| 638 | + | |
638 | 639 | | |
639 | 640 | | |
640 | 641 | | |
| |||
0 commit comments