tools/libxl: Identify copywhat in stream v2 datacopiers

This is an aid to debugging

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Andrew Cooper authored and Ian Campbell committed 2015-07-21 15:29:16 +01:00
1 parent e07e73ac9e
commit d72befc35f
2 files changed
+13 -10

No files matched your search

+10 -9
View File
@@ -223,9 +223,10 @@ void libxl__stream_read_start(libxl__egc *egc,
}
/* stream->fd is now a v2 stream. */
dc->ao = stream->ao;
dc->readfd = stream->fd;
dc->writefd = -1;
dc->ao = stream->ao;
dc->copywhat = "restore v2 stream";
dc->readfd = stream->fd;
dc->writefd = -1;
/* Start reading the stream header. */
rc = setup_read(stream, "stream header",
@@ -606,12 +607,12 @@ static void write_emulator_blob(libxl__egc *egc,
}
FILLZERO(*dc);
dc->ao = stream->ao;
dc->writewhat = "qemu save file";
dc->writefd = writefd;
dc->readfd = -1;
dc->maxsz = -1;
dc->callback = write_emulator_done;
dc->ao = stream->ao;
dc->writewhat = "qemu save file";
dc->copywhat = "restore v2 stream";
dc->writefd = writefd;
dc->maxsz = -1;
dc->callback = write_emulator_done;
rc = libxl__datacopier_start(dc);
if (rc)
+3 -1
View File
@@ -180,7 +180,8 @@ void libxl__stream_write_start(libxl__egc *egc,
dc->ao = ao;
dc->readfd = -1;
dc->writewhat = "save/migration stream";
dc->writewhat = "stream header";
dc->copywhat = "save v2 stream";
dc->writefd = stream->fd;
dc->maxsz = -1;
dc->callback = stream_header_done;
@@ -386,6 +387,7 @@ static void write_emulator_record(libxl__egc *egc,
FILLZERO(*dc);
dc->ao = stream->ao;
dc->readwhat = "qemu save file";
dc->copywhat = "save v2 stream";
dc->readfd = readfd;
dc->writefd = -1;
dc->maxsz = -1;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.