Received: from list by lists.gnu.org with archive (Exim 4.71) id 1b2jJG-0002ht-8F for mharc-grub-devel@gnu.org; Tue, 17 May 2016 14:01:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2jJD-0002hC-5K for grub-devel@gnu.org; Tue, 17 May 2016 14:01:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2jJ8-0006Q7-TE for grub-devel@gnu.org; Tue, 17 May 2016 14:01:30 -0400 Received: from smtp1.dds.nl ([91.142.252.201]:29903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2jJ8-0006Pg-MW for grub-devel@gnu.org; Tue, 17 May 2016 14:01:26 -0400 Received: from webmail.dds.nl (app1.dds.nl [81.21.136.61]) by smtp1.dds.nl (Postfix) with ESMTP id C52207FC8C for ; Tue, 17 May 2016 20:01:21 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Date: Tue, 17 May 2016 20:01:21 +0200 From: Dryden Personalis To: The development of GNU GRUB Subject: Re: [PATCH] Install to LVM PVs In-Reply-To: <57302925.2000000@gmail.com> References: <572ED720.30800@gmail.com> <57302925.2000000@gmail.com> Message-ID: <8754e20b9a1b8071704917d057092968@dds.nl> X-Sender: list@xenhideout.nl User-Agent: Roundcube Webmail/1.1.5 X-Virus-Scanned: clamav-milter 0.99.1 at smtp1 X-Virus-Status: Clean Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 91.142.252.201 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: Tue, 17 May 2016 18:01:32 -0000 Andrei Borzenkov schreef op 09-05-2016 8:07: I'm sorry, this email had gone missing from my system. I just found it=20 back in the trash, after thinking I had already searched for it. I'm not sure why no one responds anymore, of course Andrei was the only=20 one to respond in the first place. I hope nothing is the matter with=20 Andrei himself, I mean it could be personal circumstances. I have basically implemented all suggestions, with just two questions=20 that I would like to have answered: - is it okay to drop the requirement of having a VG configured in the PV - is it okay to skip the FS-presence test in a LVM that cannot have it=20 in any case? If the group or the ones in charge of this software would be willing to=20 shed their light on these issues, I could at least make something that=20 you would agree with, if it would be intended for real submission. So from my perspective the feature works, I tend to think these are the=20 only choices to make, and perhaps additional safety checks are required=20 to deal with the size of the bootloaderarea, which I can look into if=20 needed. Presently I do not have the knowledge about the PV structure yet. I did not write the original patch, after all. I could easily test or demonstrate what would happen if the=20 bootloaderareasize were really small; whether grub would overwrite=20 essential structures if I did. I think safety is the biggest requirement here? As demonstrated, booting itself is not an issue except that I cannot=20 test installing on partitions (at all) currently. I do not know why, but=20 Grub on my system will not install on any partition whatsoever, not the=20 new version, or the standard ubuntu version. I have still not installed my system again on that harddisk, still=20 working off of a USB stick. ;-). So I am actually waiting with=20 installing until people have indicated whether additional development or=20 testing is required? I would hope to work with you on this. (Not just grub, I'm also worried about LVM thin safety, but that is=20 another issue). I'm sorry if I seem not to understand how things work around here, or if=20 I actually do not (understand). I have tried to reach Andrei off-list,=20 but no response. But I've waited for a week, so I need to go and start=20 doing something else if it is not going to happen anyway. So please. And regards, and thanks for cooperating (thus far) and of having been of=20 help, in any case, regardless. Regards. > 08.05.2016 16:01, Dryden Personalis =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>=20 >>>> - if (fs_probe) >>>> + if (!is_lvm && fs_probe) >>>=20 >>> No, we want to probe for FS here to eliminate corner case of both PV=20 >>> and >>> FS metadata. >>=20 >> You mean you want to change it to: >>=20 >=20 > No, I do not want to change it at all. It should remain as is and=20 > always > probe for FS so that test below actually works > ... >>> And you need to add check for LVM here >>>=20 >>> if (ctx.multiple_partmaps || (ctx.dest_partmap && fs) || (is_ldm >>> && fs)) >>=20 >> I take it you mean: >>=20 >> if (!is_lvm && (ctx.multiple_partmaps || (ctx.dest_partmap && fs) || >> (is_ldm && fs))) >>=20 >=20 > I mean >=20 > if (ctx.multiple_partmaps || (ctx.dest_partmap && fs) || ((is_ldm || > is_lvm) && fs))