From: Mahesh Jagannath Salgaonkar <mahesh@linux.vnet.ibm.com>
To: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Cc: ptesarik@suse.cz, kexec@lists.infradead.org
Subject: Re: [PATCH 1/2] Move scrubbing process from reader to writer.
Date: Fri, 12 Apr 2013 18:59:49 +0530 [thread overview]
Message-ID: <51680C4D.1090309@linux.vnet.ibm.com> (raw)
In-Reply-To: <20130412151756.afe14ce0df4cdd8bf96be9e6@mxc.nes.nec.co.jp>
On 04/12/2013 11:47 AM, Atsushi Kumagai wrote:
> From: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
> Date: Thu, 11 Apr 2013 09:36:36 +0900
> Subject: [PATCH 1/2] Move scrubbing process from reader to writer.
>
> When create a dumpfile in the kdump-compressed format, scrubbing
> process is done in reading process via read_pfn(). But it would be
> better to do it just before actually writing the data like the
> case of ELF.
>
> Signed-off-by: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Hi Atsushi,
Changes looks good to me.
Thanks,
-Mahesh.
> ---
> makedumpfile.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/makedumpfile.c b/makedumpfile.c
> index 9cf907c..725100b 100644
> --- a/makedumpfile.c
> +++ b/makedumpfile.c
> @@ -5337,7 +5337,6 @@ read_pfn(unsigned long long pfn, unsigned char *buf)
> ERRMSG("Can't get the page data.\n");
> return FALSE;
> }
> - filter_data_buffer(buf, paddr, info->page_size);
> return TRUE;
> }
>
> @@ -5360,7 +5359,6 @@ read_pfn(unsigned long long pfn, unsigned char *buf)
> ERRMSG("Can't get the page data.\n");
> return FALSE;
> }
> - filter_data_buffer(buf, paddr, size1);
> if (size1 != info->page_size) {
> size2 = info->page_size - size1;
> if (!offset2) {
> @@ -5370,7 +5368,6 @@ read_pfn(unsigned long long pfn, unsigned char *buf)
> ERRMSG("Can't get the page data.\n");
> return FALSE;
> }
> - filter_data_buffer(buf + size1, paddr + size1, size2);
> }
> }
> return TRUE;
> @@ -5805,6 +5802,7 @@ write_kdump_pages(struct cache_data *cd_header, struct cache_data *cd_page)
>
> if (!read_pfn(pfn, buf))
> goto out;
> + filter_data_buffer(buf, pfn_to_paddr(pfn), info->page_size);
>
> /*
> * Exclude the page filled with zeros.
> @@ -5983,6 +5981,7 @@ write_kdump_pages_cyclic(struct cache_data *cd_header, struct cache_data *cd_pag
>
> if (!read_pfn(pfn, buf))
> goto out;
> + filter_data_buffer(buf, pfn_to_paddr(pfn), info->page_size);
>
> /*
> * Exclude the page filled with zeros.
>
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2013-04-12 13:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-12 6:17 [PATCH 0/2] Fix the regression issue in makedumpfile-1.5.3 Atsushi Kumagai
2013-04-12 6:17 ` [PATCH 1/2] Move scrubbing process from reader to writer Atsushi Kumagai
2013-04-12 13:29 ` Mahesh Jagannath Salgaonkar [this message]
2013-04-15 7:02 ` Atsushi Kumagai
2013-04-12 6:19 ` [PATCH 2/2] Fix the issue which can happen around overlapping Atsushi Kumagai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51680C4D.1090309@linux.vnet.ibm.com \
--to=mahesh@linux.vnet.ibm.com \
--cc=kexec@lists.infradead.org \
--cc=kumagai-atsushi@mxc.nes.nec.co.jp \
--cc=ptesarik@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox