Thanks Jason, you are right.  My code didn't update in time, The bug  has fixed 
in https://tracker.ceph.com/issues/42248, 



zheng...@cmss.chinamobile.com
 
From: Jason Dillaman
Date: 2020-01-03 00:25
To: zheng...@cmss.chinamobile.com
CC: yangjun; ceph-users
Subject: Re: report librbd bug export-diff
On Sun, Dec 29, 2019 at 9:21 PM zheng...@cmss.chinamobile.com
<zheng...@cmss.chinamobile.com> wrote:
>
> Hello dillaman:
>
>         Problem: create a clone from a parent image, create a snapshot on the 
> clone, when I use command "rbd export-diff <pool>/clone@snap <file> 
> --whole-object", it can't diff  parent image data. But I use this command 
> without "--whole-object", it is ok.
>
>         steps:
>                  1、rbd create volumes/test1 -s 1G
>
>                  2、write data to volumes/test1 (offset=0, len=8388608)
>
>                  3、rbd snap create volumes/test1@snap
>
>                  4、rbd snap protect volumes/test1@snap
>
>                  5、rbd clone volumes/test1@snap volumes/clone1
>
>                  6、write data to volumes/clone1 (offset=16777216, len=4194304)
>
>                  7、rbd snap create volumes/clone1@snap1
>
>                  8、rbd export-diff volumes/clone1@snap1 /root/diff1 
> --whole-object
>                       It only diffs data [16777216L, 20971520L]
>
>                  9、rbd export-diff volumes/clone1@snap1 /root/diff2
>                       It is ok and can diffs data [0L, 8388608L], [16777216L, 
> 20971520L]
>
>          If you confirm that this is a bug or fix it, please let me know, 
> thank you very much.
 
Is this the same as this ticket [1] that was recently fixed in master
and is pending backport?
 
>
> ________________________________
> zheng...@cmss.chinamobile.com
 
[1] https://tracker.ceph.com/issues/42248
 
-- 
Jason
 
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to