[CRIU] [PATCH] mm: Dump vmas into separate image file

Andrew Vagin avagin at parallels.com
Wed Mar 21 07:16:31 EDT 2012


ACK

> @@ -1377,13 +1373,12 @@ static long restorer_get_vma_hint(pid_t pid, struct list_head *self_vma_list, lo
>  	 * better to stick with it.
>  	 */
>  
> -	fd = open_image_ro_nocheck(FMT_FNAME_CORE, pid);
> +	fd = open_image_ro_nocheck(FMT_FNAME_VMAS, pid);
>  	if (fd < 0)
>  		return -1;
>  
>  	prev_vma_end = 0;
> -
> -	lseek(fd, GET_FILE_OFF_AFTER(struct core_entry), SEEK_SET);
> +	lseek(fd, sizeof(u32), SEEK_SET);
	lseek(fd, MAGIC_OFFSET,
>  
>  	while (1) {
>  		ret = read(fd, &vma, sizeof(vma));



More information about the CRIU mailing list