Re: [PATCH 5/5] libvduse: Add support for reconnecting

2022-02-08 Thread Yongji Xie
On Tue, Feb 8, 2022 at 4:09 PM Stefan Hajnoczi wrote: > > On Tue, Feb 08, 2022 at 03:35:27PM +0800, Yongji Xie wrote: > > On Mon, Feb 7, 2022 at 10:39 PM Stefan Hajnoczi wrote: > > > > > > On Tue, Jan 25, 2022 at 09:18:00PM +0800, Xie Yongji wrote: > > > > +static void *vduse_log_get(const char

Re: [PATCH 5/5] libvduse: Add support for reconnecting

2022-02-08 Thread Stefan Hajnoczi
On Tue, Feb 08, 2022 at 03:35:27PM +0800, Yongji Xie wrote: > On Mon, Feb 7, 2022 at 10:39 PM Stefan Hajnoczi wrote: > > > > On Tue, Jan 25, 2022 at 09:18:00PM +0800, Xie Yongji wrote: > > > +static void *vduse_log_get(const char *dir, const char *name, size_t > > > size) > > > +{ > > > +

Re: [PATCH 5/5] libvduse: Add support for reconnecting

2022-02-08 Thread Yongji Xie
On Mon, Feb 7, 2022 at 10:39 PM Stefan Hajnoczi wrote: > > On Tue, Jan 25, 2022 at 09:18:00PM +0800, Xie Yongji wrote: > > To support reconnecting after restart or crash, VDUSE backend > > might need to resubmit inflight I/Os. This stores the metadata > > such as the index of inflight I/O's

Re: [PATCH 5/5] libvduse: Add support for reconnecting

2022-02-07 Thread Stefan Hajnoczi
On Tue, Jan 25, 2022 at 09:18:00PM +0800, Xie Yongji wrote: > To support reconnecting after restart or crash, VDUSE backend > might need to resubmit inflight I/Os. This stores the metadata > such as the index of inflight I/O's descriptors to a shm file so > that VDUSE backend can restore them