From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XW99m-00081f-Vq for mharc-grub-devel@gnu.org; Mon, 22 Sep 2014 15:20:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW99f-0007z7-UP for grub-devel@gnu.org; Mon, 22 Sep 2014 15:20:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XW99Z-000620-W0 for grub-devel@gnu.org; Mon, 22 Sep 2014 15:20:11 -0400 Received: from mail-lb0-x22f.google.com ([2a00:1450:4010:c04::22f]:44142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW99Z-0005qA-OZ for grub-devel@gnu.org; Mon, 22 Sep 2014 15:20:05 -0400 Received: by mail-lb0-f175.google.com with SMTP id w7so1793519lbi.34 for ; Mon, 22 Sep 2014 12:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=1NRzQayQXCeSxI/9c68V7KznMzG6hD4ddzNzcd/HGEw=; b=kEAZ2mLA7sB5s2Bt98MUhg9htYc0S3Mr0f2WjGWyRrtGj72oSpNNmulDmxOB0WPe6a GrN9PbgcGlruUOY9LjUe86U1uyDD989bg3eUsowILhUKb4R/tOcvLDQso247nymdlroh jLOjVYt0p+NwHj3vlAu5/vmTk2GWQCU/O8PILiXTGdxG1AuBfB2BBoA5naTlcvQOP06V 5wEyLNp2XpHsV52aUs11X58ZLiWoyDnSbjAv3hGMlaqWEWWBMfiFoRh/67rSiaceg0yJ 0nOU8a5oMv3IfLih8RSZ8lvSWLJZyhaLf7T1KAb2a7WqcNWutPqCDzIFxiaw9WyvmxcU UnCQ== X-Received: by 10.152.205.9 with SMTP id lc9mr28051144lac.34.1411413599532; Mon, 22 Sep 2014 12:19:59 -0700 (PDT) Received: from opensuse.site (ppp94-29-94-89.pppoe.spdop.ru. [94.29.94.89]) by mx.google.com with ESMTPSA id or5sm4050854lbb.42.2014.09.22.12.19.58 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Sep 2014 12:19:58 -0700 (PDT) Date: Mon, 22 Sep 2014 23:19:57 +0400 From: Andrei Borzenkov To: The development of GNU GRUB Subject: Re: [RFC PATCH] Add new partition type API and convert GPT type checks. Message-ID: <20140922231957.18ebb350@opensuse.site> In-Reply-To: <1411412346-4003-1-git-send-email-michael.marineau@coreos.com> References: <1411412346-4003-1-git-send-email-michael.marineau@coreos.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.23; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22f Cc: michael.marineau@coreos.com X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 19:20:18 -0000 =D0=92 Mon, 22 Sep 2014 11:59:06 -0700 Michael Marineau =D0=BF=D0=B8=D1=88=D0=B5=D1= =82: > This introduces a new type() function for partmaps modeled after the > label() and uuid() functions for filesystems. A likely future extension > will be support partition labels and uuids as well. Is there other partition type beyond GPT that supports it? What advantages it has over using filesystem label or uuid? > This is in > preparation for adding more functionality like a search.part_type > command. >=20 What is use case? search is expected to return a single object; but you cannot presume uniqueness of partition of given type. That's different from label or uuid.