Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752195AbcDZSKa (ORCPT ); Tue, 26 Apr 2016 14:10:30 -0400 Received: from mx2.suse.de ([195.135.220.15]:59332 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751798AbcDZSK2 (ORCPT ); Tue, 26 Apr 2016 14:10:28 -0400 Date: Tue, 26 Apr 2016 11:10:18 -0700 From: Davidlohr Bueso To: "Austin S. Hemmelgarn" Cc: Julius Werner , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Gwendal Grignou , Doug Anderson , Karel Zak Subject: Re: [PATCH] block: partitions: efi: Always check for alternative GPT at end of drive Message-ID: <20160426181018.GA16601@linux-uzut.site> References: <1461632806-5946-1-git-send-email-jwerner@chromium.org> <571F7D6D.8020209@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <571F7D6D.8020209@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 665 Lines: 15 On Tue, 26 Apr 2016, Austin S. Hemmelgarn wrote: >At the absolute minimum, we should be logging (at least at a warning >level) that we had to fall back the the backup GPT. If somebody is >dealing with a disk that had a torn write to the primary GPT, that's >one thing, but this could also be caused by any number of other >problems (hardware issues, malicious intent, etc), and we need to log >that we detected corrupted data. We already complain about corrupted primary gpt (at a warn level), and there's also plenty of verbosity about differences between primary and backup (see compare_gpts()), or are you referring to something else? Thanks, Davidlohr