[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131011095139.GA24613@x2.net.home>
Date: Fri, 11 Oct 2013 11:51:39 +0200
From: Karel Zak <kzak@...hat.com>
To: Doug Anderson <dianders@...omium.org>
Cc: linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Jens Axboe <axboe@...nel.dk>,
Matt Fleming <matt.fleming@...el.com>,
Sean Paul <seanpaul@...omium.org>,
Olof Johansson <olof@...om.net>,
Bill Richardson <wfrichar@...omium.org>,
Josh Triplett <josh@...htriplett.org>,
Davidlohr Bueso <davidlohr@...com>
Subject: Re: [PATCH] partitions/efi: treat size mismatch as a warning, not an
error
On Thu, Oct 10, 2013 at 04:28:22PM -0700, Doug Anderson wrote:
> + *
> + * Consider a bad value here to be a warning to support dd-ing
> + * an image from a smaller disk to a bigger disk.
> */
> if (ret == GPT_MBR_PROTECTIVE) {
> sz = le32_to_cpu(mbr->partition_record[part].size_in_lba);
> if (sz != (uint32_t) total_sectors - 1 && sz != 0xFFFFFFFF)
> - ret = 0;
> + pr_warn("%s: mbr size mismatch (%u != %u)\n", __func__,
> + sz, (uint32_t)((uint32_t) total_sectors - 1));
> }
I did the same change to util-linux v2.24 fdisk, so you can use the fdisk
to update your protective MBR and boot without warnings.
Karel
--
Karel Zak <kzak@...hat.com>
http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists