From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VPVSG-0003Hd-07 for mharc-grub-devel@gnu.org; Fri, 27 Sep 2013 06:39:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPVSD-0003HN-T7 for grub-devel@gnu.org; Fri, 27 Sep 2013 06:39:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPVSD-0004dk-47 for grub-devel@gnu.org; Fri, 27 Sep 2013 06:39:21 -0400 Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:48076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPVSC-0004dc-UX for grub-devel@gnu.org; Fri, 27 Sep 2013 06:39:21 -0400 Received: by mail-we0-f178.google.com with SMTP id u57so2495945wes.9 for ; Fri, 27 Sep 2013 03:39:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=IujnFpceJXnf0xUB4RP/GV+d6Vj8US2LCvHNRdwArtQ=; b=T13nkmGlU7SECKqIPWuafn0VCfHBnv+Fd1Ws9OLaY9q/X3tsXNa6TIljcNjkt3JUrn M1+AlJzej4Lu1suz5lOq31k+s37SJ8rYXepqqqHd1EsOtvF3j4J+eYh21nL+1M3N+/cq fPn7OMUxbdJ3Hx7V+YplYihmPUK2wMjGktsWo8GFGSgwZN/xz1h8gtGcVrvi/C3/Hzx5 YYuikMPgcS3buOstqAwteVM/UvGs8w9l5mYw4vrVMbaTWWDdguyzHaPLExIc/Ol9YFeC rxJYYtjnU43ymNa2yTISRohgnbcOYDPraKdtd0+xRQ94gHOxwIVTt+4xscmnoqGlmSXi o5IQ== X-Received: by 10.180.38.36 with SMTP id d4mr2006706wik.7.1380278359624; Fri, 27 Sep 2013 03:39:19 -0700 (PDT) Received: from ?IPv6:2a01:e35:8a2c:b230:2408:120:9d59:eb5c? ([2a01:e35:8a2c:b230:2408:120:9d59:eb5c]) by mx.google.com with ESMTPSA id iz19sm12620313wic.9.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Sep 2013 03:39:19 -0700 (PDT) Message-ID: <52456056.1030101@gmail.com> Date: Fri, 27 Sep 2013 12:39:18 +0200 From: Gabriel de Perthuis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: GRUB development , LVM2 development , Peter Rajnoha Subject: Re: [PATCH] Install to LVM PVs References: <5243F5FF.4000804@gmail.com> In-Reply-To: <5243F5FF.4000804@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::232 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: Fri, 27 Sep 2013 10:39:23 -0000 Le 26/09/2013 10:53, Vladimir 'φ-coder/phcoder' Serbinenko a écrit: > On 25.09.2013 14:39, Gabriel de Perthuis wrote: >> Hello, >> This patch lets grub install to a reserved area in LVM physical volumes. >> These bootloader areas can be created with LVM 2.02.99 and the >> --bootloaderareasize argument to pvcreate and vgconvert. >> I tested it in QEMU, installing to and booting a disk that contains a PV >> and no partition table. >> > This is not how the use of this area was imagined. There are couple of > subtleties which your patch didn't take in account. > Currently there is joint developpement with LVM guys but it wasn't > published yet. For anyone else who may be interested, apparently patches exist and are waiting for Peter Rajnoha to finish them. They haven't been posted or discussed publicly and I've never seen them. According to Vladimir: > the zone will be subdivided to cover more cases and the agreement was to use "pvs" to get offsets rather than having own code for this As shipped in 2.02.99, pvs exposes exactly one ba_start/ba_size area. Other areas will have to use extra extension fields and extra fields in the pvs output, to be compatible with released versions of LVM. Parsing pvs output would be easy, and will behave exactly the same as this patch.