From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YhsYK-0007TL-69 for mharc-grub-devel@gnu.org; Tue, 14 Apr 2015 00:34:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhsYI-0007T9-51 for grub-devel@gnu.org; Tue, 14 Apr 2015 00:34:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhsYE-0003Hp-V8 for grub-devel@gnu.org; Tue, 14 Apr 2015 00:34:22 -0400 Received: from mail-lb0-x230.google.com ([2a00:1450:4010:c04::230]:36217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhsYE-0003Hj-O7 for grub-devel@gnu.org; Tue, 14 Apr 2015 00:34:18 -0400 Received: by lbbqq2 with SMTP id qq2so75081560lbb.3 for ; Mon, 13 Apr 2015 21:34:17 -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=+wL5VPh1t5dDgOV6UZHgaMVZbVO+1+oQ3DIylqN2qTs=; b=x2kI+GzO1imiEAFTiuzqIbgE24Cnhnm/JzP+iaaE525zak6qlYu2aqG1RNHLf2DLgk jgCchmZWxInk9s794SqI+gDDynvKHR1mPuubT5HcwCgQOBOLJlP62tw9ZE/6jjNkE1op FHEUNAxS0NmMRKiLmzYOfY9l+0cdi27GD4fD6rSzQAMgE6q2/pq+MZz9HgUtdr3g462D MlgGcqOnIJEgArY+umhsKcrN9WKDRYNmJDxCZVZhb+LlKvfN4mw4gTTQVlEWF7KC1Fap f+4DX/M/CTT56kgywOw69kAYSqYVVXJo4q3A59Qb+3dUp6ofHwIyIAyVaCM8siEqIckh u9sQ== X-Received: by 10.152.18.225 with SMTP id z1mr16478007lad.124.1428986057866; Mon, 13 Apr 2015 21:34:17 -0700 (PDT) Received: from opensuse.site (ppp91-76-14-38.pppoe.mtu-net.ru. [91.76.14.38]) by mx.google.com with ESMTPSA id pd1sm2099286lbc.9.2015.04.13.21.34.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Apr 2015 21:34:17 -0700 (PDT) Date: Tue, 14 Apr 2015 07:34:15 +0300 From: Andrei Borzenkov To: Toomas Soome Subject: Re: [PATCH] zfs module update Message-ID: <20150414073415.3af557e5@opensuse.site> In-Reply-To: References: X-Mailer: Claws Mail 3.11.0 (GTK+ 2.24.27; 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::230 Cc: The development of GNU GRUB 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, 14 Apr 2015 04:34:23 -0000 =D0=92 Tue, 14 Apr 2015 02:17:43 +0300 Toomas Soome =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > hi! >=20 > this is the major update to grub2 zfs module; the work is based on Oracle= code drops from Solaris 11, and Illumos. IANAL but I suspect such changes require at least submission from someone with Oracle E-Mail + * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights res= erved > I am including here two separate patch sets, first is zfs itself, second = one is update to allow embedding. >=20 > supports: > - all current OpenZFS features > - Solaris 11 zpool versions (including reading encrypted datasets) > - can recognise and boot all pool configurations with exception that log = device is not inspected (thats something to be investigated in future, whil= e this code does not mind log device, its still probably not good idea to a= ctually have one). > - pool is readable as long as there is enough parity to reconstruct data = from > - supports multiple vdevs > - supports both mirror and raidz > - supports bootloader embedding as long as it will fit to 3.5MB space res= erved for bootblock. > - using negative cache for non-zfs devices >=20 > limitations:=20 > - no writes. at all. never will be;) > - actual pool configuration is limited by disks visibility for grub, and = that depends on actual system. if grub can see 4 disks, that will set the l= imit. > - browsing encryped datasets by tree levels is not supported, full path n= eeds to be used; as writing the encrypred datasets is possible only with so= laris 11 and it has its own grub implementation, I just left encryption sup= port as is, at least for now. > - mount cache code is there but not enabled; enabling it did trigger arte= facts with grub graphical menu, reasons yet unknown - so far all checks wit= h libumem for memory usage and integrity have been all OK. >=20 > tests done: booting with different zpool configurations, single disk, mir= ror, raidz, multiple vdev, 512B and 4096B sector sizes, missing disks (zpoo= l offline and physically removed), tests are performed on illumos and unkno= wn amount of linux systems - this code is already used by debian grub2 pack= ages. >=20 > the embedding support adds zfs GPT partition tag to allow grub to be embe= dded directly to zfs partition, without the need for BIOS boot partition. I= f BIOS boot partition exists, it will be used. This functionality is alread= y implemented in Illumos (with legacy grub), so, there is no reason not to = support his with grub 2 as well.=20 GRUB already has embedding support for ZFS; why second patch is needed? >=20 > as zfs update is pretty large, i include it compressed=E2=80=A6 >=20 Any chance to split it in series of incremental self-contained patches?