Re: python binding - snap rollback - progress reporting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.ciprich@xxxxxxxxxxx>
> To: "ceph-users" <ceph-users@xxxxxxxxxxxxxx>
> Sent: Sunday, November 8, 2015 4:27:13 AM
> Subject:  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: servis@xxxxxxxxxxx
> -------------------------------------
> 
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> 
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux