Re: [Xen-devel] [PATCH RFC 02/20] libxc/xc_sr: parameterise write_record() on fd

2017-03-31 Thread Wei Liu
On Mon, Mar 27, 2017 at 05:06:14AM -0400, Joshua Otto wrote: > Right now, write_split_record() - which is delegated to by > write_record() - implicitly writes to ctx->fd. This means it can't be > used with the restore context's send_back_fd, which is unhandy. > > Add an 'fd' parameter to both

Re: [Xen-devel] [PATCH RFC 02/20] libxc/xc_sr: parameterise write_record() on fd

2017-03-28 Thread Andrew Cooper
On 27/03/17 10:06, Joshua Otto wrote: > Right now, write_split_record() - which is delegated to by > write_record() - implicitly writes to ctx->fd. This means it can't be > used with the restore context's send_back_fd, which is unhandy. Unhelpful? > > Add an 'fd' parameter to both

[Xen-devel] [PATCH RFC 02/20] libxc/xc_sr: parameterise write_record() on fd

2017-03-27 Thread Joshua Otto
Right now, write_split_record() - which is delegated to by write_record() - implicitly writes to ctx->fd. This means it can't be used with the restore context's send_back_fd, which is unhandy. Add an 'fd' parameter to both write_record() and write_split_record(), and mechanically update all