[PATCH] qcow2: remove QCowL2Meta parameter from handle_copied

2020-03-09 Thread Yi Li
The QCowL2Meta **m parameter is not used Signed-off-by: Yi Li --- block/qcow2-cluster.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 17f1363..db9efa5 100644 --- a/block/qcow2-cluster.c +++ b/block/qcow2-cluster.c

[PATCH] qemu-img: Explicit number replaced by a constant

2020-08-17 Thread Yi Li
Signed-off-by: Yi Li --- qemu-img.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 5308773811..a0fbc2757c 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -1181,7 +1181,7 @@ static int64_t find_nonzero(const uint8_t *buf, int64_t n

[PATCH v2] qemu-img: Explicit number replaced by a constant

2020-08-18 Thread Yi Li
Signed-off-by: Yi Li --- qemu-img.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 5308773811..aa2e31c8ae 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -1200,10 +1200,10 @@ static int is_allocated_sectors(const uint8_t *buf, int n, int

[PATCH] rbd: Use RBD fast-diff for querying actual allocation

2020-06-09 Thread Yi Li
": "raw", "file": {"pool": "cepharm", "image": "liyi-rbd", "driver": "rbd"}} file format: raw virtual size: 20 GiB (21474836480 bytes) disk size: 0 B cluster_size: 4194304 Newl

[PATCH v2] rbd: Use RBD fast-diff for querying actual allocation

2020-06-09 Thread Yi Li
or example: image: json:{"driver": "raw", "file": {"pool": "cepharm", "image": "liyi-rbd", "driver": "rbd"}} file format: raw virtual size: 20 GiB (21474836480 bytes) disk size: 0 B cluster_size: 4194304

[PATCH v2] rbd: Use RBD fast-diff for querying actual allocation

2020-06-11 Thread Yi Li
or example: image: json:{"driver": "raw", "file": {"pool": "cepharm", "image": "liyi-rbd", "driver": "rbd"}} file format: raw virtual size: 20 GiB (21474836480 bytes) disk size: 0 B cluster_size: 4194304

Re: [PATCH v2] rbd: Use RBD fast-diff for querying actual allocation

2020-06-17 Thread Yi Li
ping ? On 6/11/20, Yi Li wrote: > Since Ceph version Infernalis (9.2.0) the new fast-diff mechanism > of RBD allows for querying actual rbd image usage. > > Prior to this version there was no easy and fast way to query how > much allocation a RBD image had inside a Ceph cluster.