[pve-devel] [PATCH v2 qemu-server] restore: implement rate limiting

2018-02-22 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller --- Changes (addressed comments from dominik): * bwlimit is now an integer, now sure if this is really better, but sub-kB/s accuracy seems rather useless here * handle undef when going through storage limits PVE/API2/Qemu.pm | 11 +++- PVE/CLI/qmrestore

Re: [pve-devel] [PATCH v2 qemu-server] restore: implement rate limiting

2018-02-21 Thread Dominik Csapak
one comment inline, rest looks ok (only tested with qmrestore --bwlimit, not with storage limits atm) On 02/15/2018 01:41 PM, Wolfgang Bumiller wrote: Signed-off-by: Wolfgang Bumiller --- This version avoids the refactoring and double-reading of the VMA file, thereby supporting reading from

[pve-devel] [PATCH v2 qemu-server] restore: implement rate limiting

2018-02-15 Thread Wolfgang Bumiller
Signed-off-by: Wolfgang Bumiller --- This version avoids the refactoring and double-reading of the VMA file, thereby supporting reading from a pipe again. Instead this now uses an extension to vma extract (see the other patch), and instead of picking the lowest limit altogether, applies limits to