From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1W5Wgt-00062a-Jv for mharc-grub-devel@gnu.org; Tue, 21 Jan 2014 03:28:11 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5Wgo-00062Q-JI for grub-devel@gnu.org; Tue, 21 Jan 2014 03:28:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5Wgn-0002Mf-Cd for grub-devel@gnu.org; Tue, 21 Jan 2014 03:28:06 -0500 Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:32892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5Wgn-0002Mb-54 for grub-devel@gnu.org; Tue, 21 Jan 2014 03:28:05 -0500 Received: by mail-la0-f45.google.com with SMTP id b8so6376894lan.32 for ; Tue, 21 Jan 2014 00:28:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=CuHGhVXCW1zUgjt6WJL+fRhuh4DfTe4IzLebl0NPDjc=; b=NJxU9zPv0++PpzbxeYAhAkb7UKv3iR3bZHyGsgANutraOfPUTylro1wIEeG8FWOTJR f3/bVikZezFMeL/GuTaatIJUEBqfWdzdIpmwoQ9VbRWM/AiHVGw1BO1YS+FzVH14gjol qx9josVroP5gTvBdGxDHJ561iV+K+Wv20Kr/j0+/fi7snqFOejtDGEfMYpGqRlMpRHm3 NEPz/hGLXRClTgLVzsGH8m2iwmtW3ZmG0vWBPDZhcS28eQUJHs5phe/FPLv8TzaC0aH7 NwBMuO90xynrWR6GP/gmYd+GHBB9WfNyUOZ3sbmL8kjOOR7Kt0B3NhV1gVhwsTtNscET EwUA== MIME-Version: 1.0 X-Received: by 10.112.201.167 with SMTP id kb7mr4757868lbc.32.1390292884123; Tue, 21 Jan 2014 00:28:04 -0800 (PST) Received: by 10.112.26.174 with HTTP; Tue, 21 Jan 2014 00:28:04 -0800 (PST) In-Reply-To: <52DE2C79.2000507@gmail.com> References: <1389301657-8236-1-git-send-email-tilmann@bubecks.de> <52CF282C.4070408@gmail.com> <52CFA5FF.7070200@bubecks.de> <52DE2C79.2000507@gmail.com> Date: Tue, 21 Jan 2014 12:28:04 +0400 Message-ID: Subject: Re: [PATCH] Improve ext2 driver to allow embedding of the boot loader code. From: Andrey Borzenkov To: The development of GNU GRUB Content-Type: text/plain; charset=ISO-8859-7 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:c03::22d 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: Tue, 21 Jan 2014 08:28:10 -0000 On Tue, Jan 21, 2014 at 12:14 PM, Vladimir '=F6-coder/phcoder' Serbinenko wrote: > On 10.01.2014 08:49, Dr. Tilmann Bubeck wrote: >> >> The blocklist is fixed and stable and will never change. > What guarantees that it won't change on grub-setup invocation? I'm under > impression that it will change on every grub-setup invocation as file > gets recreated. > If I read code correctly, it checks current size and if new core.img fits, space is reused. So we could effectively make it preallocate reasonable size (or even unreasonable - I guess 10MB will be enough for foreseeable future) the very first time it is done.