Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ciPdn-00015p-S3 for mharc-grub-devel@gnu.org; Mon, 27 Feb 2017 13:03:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciPdl-00014e-R7 for grub-devel@gnu.org; Mon, 27 Feb 2017 13:03:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciPdi-0001Ss-PW for grub-devel@gnu.org; Mon, 27 Feb 2017 13:03:17 -0500 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:36319) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciPdi-0001Sn-Ik for grub-devel@gnu.org; Mon, 27 Feb 2017 13:03:14 -0500 Received: by mail-lf0-x22e.google.com with SMTP id y193so8585397lfd.3 for ; Mon, 27 Feb 2017 10:03:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=oO5FyhtERUhnbzwzXzsMJJUy7iTCugAsB1xuBaX28+I=; b=GF2cuCzKJ0YEQicux524YtlsTtvB/OAztPN+CEMfAgB+Ps85Ude48oivtcQWZMUDwl 8JdFrL5ad7avzsjRHsER7O4tgXIh9gKcnoym1/Ali03n6LXASoKYCl9JRxWQOzd2ohJ9 NizsnTKYTIaWAXMgF3uEpiDGVUTPxyxzayDMCn+Q9lqBYkg8Gy/38pchEs4DlXD4s1u4 yLO8j7rElwbXGv8AWH+SO4B8B3HOxv1DnYIBLz7MVhauHcaUpn+KnlPzHCRfq1yGAr2o 9vXHrd7MswWInbAhIZa5v2C/HVn4eiocdgAd8u1y4uXPujHKpLoiVdfEYa5oZYLiTtVf FoVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=oO5FyhtERUhnbzwzXzsMJJUy7iTCugAsB1xuBaX28+I=; b=QIXKNM7sb1idJkxEJ1MNk59Zeevs//G5U1jixkQi0v6wBUdLza7opsS73tQNRDlmFE skrmFZfgvVK/j+BSk0HpytRpLS8AnsZWH2MHqJDP3lPUQvRhBdsMDYDFYyZjOWuogsOI kw/PNJTynFCy9XZUyTkgRFSLlulCCom8tLmcVvOSjtPpEXdGnEfyPeg/Y5l9FDYHTqSN WaQZ3qr9RYoMaNvUn7lgdn91INQwQdKsnu+un2gzDOUVfoPcgGc3V5hlykWPUGye+Wok HK6oqZyH0fW7vCbvDmQWrbTWF+nGn2d6++wr17MS+YyGJzm6/aNug2dfsZawdZohDjwx iSJg== X-Gm-Message-State: AMke39mpDRkwU5bzM0LjRCb9YFWNNGELAMAhPlpCg8R8eA2rIOq/2K02zoMOuaR/RfIECw== X-Received: by 10.46.33.136 with SMTP id h8mr4266807lji.57.1488218593187; Mon, 27 Feb 2017 10:03:13 -0800 (PST) Received: from [192.168.1.6] (ppp109-252-90-129.pppoe.spdop.ru. [109.252.90.129]) by smtp.gmail.com with ESMTPSA id q98sm4088289lfi.11.2017.02.27.10.03.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Feb 2017 10:03:12 -0800 (PST) Subject: Re: [GRUB PARTUUID PATCH V3 5/5] Harmonize patches To: The development of GNU GRUB , skenton@ou.edu References: <20170227002055.5829-1-nvinson234@gmail.com> <20170227002055.5829-6-nvinson234@gmail.com> From: Andrei Borzenkov Message-ID: Date: Mon, 27 Feb 2017 21:03:11 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22e X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2017 18:03:18 -0000 27.02.2017 03:34, Vladimir 'phcoder' Serbinenko пишет: >> if (state[6].set) >> { >> char *partuuid = NULL; /* NULL to silence a spurious GCC warning */ >> - /* Nested partitions are not supported for now. */ >> - /* Non-nested partitions must have dev->disk->partition->parent == >> NULL */ >> - if (dev->disk && dev->disk->partition && >> dev->disk->partition->parent == NULL) >> + /* >> + * Nested partitions are not supported for now. >> + * Non-nested partitions must have dev->disk->partition->parent == >> NULL >> + */ >> > I'm not sure that this is enough. In presence of nested partitions Linux > may shift extended partitions as well. I think we need to do tests with > qemu and bsd-formatted partitions > In my testing Linux never sees nested partitions (it never scans partitions for nested partitions). For all I can tell this check has been there at least since 2006 (I'm lacy to look beyond introduction of block/ directory).