Since the RBD python bindings use the C++ librbd interface and the librbd 
rollback interface requires you to provide an instance of class 
ProgressContext, you could add a new class to the API which derives from 
ProgressContext and bridges the interface to a simple C-style function 
callback.  This is actually what librbd does internally for the C interface.

-- 

Jason Dillaman 


----- Original Message -----
> From: "Nikola Ciprich" <nikola.cipr...@linuxbox.cz>
> To: "ceph-users" <ceph-users@lists.ceph.com>
> Sent: Sunday, November 8, 2015 4:27:13 AM
> Subject: [ceph-users] python binding - snap rollback - progress reporting
> 
> Hello,
> 
> I'd like to ask - I'm using python RBD/rados bindings. Everything
> works well for me, the only thing I'd like to improve is snapshots rollback
> as the operation is quite time consuming, I would like to report it's
> progress.
> 
> is this somehow possible? even at the cost of implementing whole rollback
> operation by myself?
> 
> thanks a lot in advance!
> 
> BR
> 
> nik
> 
> 
> --
> -------------------------------------
> Ing. Nikola CIPRICH
> LinuxBox.cz, s.r.o.
> 28.rijna 168, 709 00 Ostrava
> 
> tel.:   +420 591 166 214
> fax:    +420 596 621 273
> mobil:  +420 777 093 799
> www.linuxbox.cz
> 
> mobil servis: +420 737 238 656
> email servis: ser...@linuxbox.cz
> -------------------------------------
> 
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> 
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to