[CRIU] Pipe Data Dump

Alexander Mihalicyn alexander at mihalicyn.com
Thu Jun 25 21:44:01 MSK 2020


You are welcome! ;)

On Thu, Jun 25, 2020 at 9:37 PM Abhishek Vijeev
<abhishek.vijeev at gmail.com> wrote:
>
> 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


More information about the CRIU mailing list