[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [Patch v6 02/13] tools/python: Scripts relating to migrationv2 streams
On Mon, 2014-07-07 at 18:37 +0100, Andrew Cooper wrote: > * format.py contains structure and constants as per the stream specificion. > > * convert-legacy-stream.py will take a legacy migration stream as an input, > and produce a v2 stream as an output. > > * verify-stream-v2.py will verify a stream against the v2 specification. > > format.py lives as part of the regular xen library, while > convert-legacy-stream and verify-stream-v2 are installed as standalone scripts > into PRIVATE_BINDIR. > > Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> > CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx> > CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> > > --- > v6: > * Move to be part of tools/python and installed in proper locations > --- > tools/python/Makefile | 5 + > tools/python/scripts/convert-legacy-stream.py | 622 > +++++++++++++++++++++++++ > tools/python/scripts/verify-stream-v2.py | 456 ++++++++++++++++++ > tools/python/setup.py | 1 + > tools/python/xen/streamv2/format.py | 148 ++++++ I think you could reasonably take the xen.migration namespace for the library bit of this, streamv2 isn't very meaningful in the long run. Have you developed any particular unit tests for the conversion stuff as you've been developing this? I think we could check them in if yes, so long as the input dataset isn't an entire domain of course... > + elif marker == -1: # XC_SAVE_ID_ENABLE_VERIFY_MODE You could define names for all these. I'm not really enough of a Pythonista to make any particularly insightful review comments, but it all looks fine to me. > +squahsed_page_data_records = 0 "squashed" (repeatedly) Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |