<div dir="auto">Thank you very much!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 26, 2020, 12:05 AM Alexander Mihalicyn <<a href="mailto:alexander@mihalicyn.com">alexander@mihalicyn.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
yes, you are right. It's because dump_one_pipe_data called from<br>
dump_one_pipe. But dump_one_pipe called when we dump each file<br>
descriptor even if it associated with the same pipe in internal<br>
(kernel) representation.<br>
<br>
Regards,<br>
Alex.<br>
<br>
On Thu, Jun 25, 2020 at 9:29 PM Abhishek Vijeev<br>
<<a href="mailto:abhishek.vijeev@gmail.com" target="_blank" rel="noreferrer">abhishek.vijeev@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I had a question about code that dumps pipe data.<br>
><br>
> Why does CRIU have to check whether a pipe's data has already been dumped?<br>
> (<a href="https://github.com/checkpoint-restore/criu/blob/criu-dev/criu/pipes.c#L415" rel="noreferrer noreferrer" target="_blank">https://github.com/checkpoint-restore/criu/blob/criu-dev/criu/pipes.c#L415</a>)<br>
> Is it because a pipe has 2 file descriptors (for read and write)<br>
> associated with it, and one of these might have been dumped earlier?<br>
><br>
> The primary reason I ask this question is because I'd like to know<br>
> whether this is something I must account for while dumping BPF map<br>
> data.<br>
><br>
> Thank you,<br>
> Abhishek Vijeev.<br>
> _______________________________________________<br>
> CRIU mailing list<br>
> <a href="mailto:CRIU@openvz.org" target="_blank" rel="noreferrer">CRIU@openvz.org</a><br>
> <a href="https://lists.openvz.org/mailman/listinfo/criu" rel="noreferrer noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br>
</blockquote></div>