From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cjdZc-0006PN-6U for kexec@lists.infradead.org; Fri, 03 Mar 2017 03:08:05 +0000 Date: Fri, 3 Mar 2017 11:07:35 +0800 From: "bhe@redhat.com" Subject: Re: [Makedumpfile Patch v3 7/7] mem-usage: allow to work only with -f for kernel version < 4.11 Message-ID: <20170303030735.GB24001@x1> References: <6689d9cf1e69f79b0e8c74ecab8e003e5507a79b.1488443170.git.panand@redhat.com> <0910DD04CBD6DE4193FCF86B9C00BE9701EAABEE@BPXM01GP.gisp.nec.co.jp> <3b32aab8-0cbe-fb9a-f884-3b0713717aca@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <3b32aab8-0cbe-fb9a-f884-3b0713717aca@redhat.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Pratyush Anand Cc: "kexec@lists.infradead.org" , Atsushi Kumagai , "dyoung@redhat.com" On 03/03/17 at 08:18am, Pratyush Anand wrote: > > > On Friday 03 March 2017 07:40 AM, Atsushi Kumagai wrote: > > > + if (info->kernel_version < KERNEL_VERSION(4, 11, 0) && > > > + !info->flag_force) { > > > + MSG("mem-usage not supported for this kernel.\n"); > > > + MSG("You can try with -f if your kernel's kcore has valid p_paddr\n"); > > > + goto out; > > > + } > > You forgot to set COMPLETED to retcd before goto. > > The behavior will be different from the v2 patch. > > > I had thought about it. Should not an unsupported feature be a FAILED case? Judging from the result, it should be a failed case. People expect to get a dumped vmcore, it failed to collect at last because of unmatched kernel and tool. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec