[CRIU] Pipe Data Dump
Abhishek Vijeev
abhishek.vijeev at gmail.com
Thu Jun 25 21:36:56 MSK 2020
Thank you very much!
On Fri, Jun 26, 2020, 12:05 AM Alexander Mihalicyn <alexander at mihalicyn.com>
wrote:
> Hello,
>
> yes, you are right. It's because dump_one_pipe_data called from
> dump_one_pipe. But dump_one_pipe called when we dump each file
> descriptor even if it associated with the same pipe in internal
> (kernel) representation.
>
> Regards,
> Alex.
>
> On Thu, Jun 25, 2020 at 9:29 PM Abhishek Vijeev
> <abhishek.vijeev at gmail.com> wrote:
> >
> > Hi,
> >
> > I had a question about code that dumps pipe data.
> >
> > Why does CRIU have to check whether a pipe's data has already been
> dumped?
> > (
> https://github.com/checkpoint-restore/criu/blob/criu-dev/criu/pipes.c#L415
> )
> > Is it because a pipe has 2 file descriptors (for read and write)
> > associated with it, and one of these might have been dumped earlier?
> >
> > The primary reason I ask this question is because I'd like to know
> > whether this is something I must account for while dumping BPF map
> > data.
> >
> > Thank you,
> > Abhishek Vijeev.
> > _______________________________________________
> > CRIU mailing list
> > CRIU at openvz.org
> > https://lists.openvz.org/mailman/listinfo/criu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20200626/e414ac66/attachment.html>
More information about the CRIU
mailing list