All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Laager <rlaager@wiktel.com>
To: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
Cc: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Freeze on 27 February
Date: Mon, 27 Feb 2012 01:32:13 -0600	[thread overview]
Message-ID: <1330327933.2901.32.camel@watermelon.coderich.net> (raw)
In-Reply-To: <4F45DDF0.2090908@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1244 bytes --]

On Thu, 2012-02-23 at 07:34 +0100, Vladimir 'φ-coder/phcoder' Serbinenko
wrote:
> > Index: grub/util/getroot.c
> > ===================================================================
> > --- grub.orig/util/getroot.c	2012-02-03 05:22:36.227364000 -0600
> > +++ grub/util/getroot.c	2012-02-03 05:22:41.255135000 -0600
> > @@ -301,7 +301,10 @@
> >   		    devices = xrealloc (devices, sizeof (devices[0])
> >   					* devices_allocated);
> >   		  }
> > -		devices[ndevices++] = xasprintf ("/dev/%s", name);
> > +		if (name[0] == '/')
> > +		  devices[ndevices++] = xstrdup (name);
> > +		else
> > +		  devices[ndevices++] = xasprintf ("/dev/%s", name);
> >   	      }
> >   	    break;
> >   	  }
> >
> This one is ok other than the missing ChangeLog.

Updated zfs-devices.patch attached

> @@ -478,7 +558,8 @@
>         if (!*entries[i].device)
>   	continue;
> 
> -      if (grub_strcmp (entries[i].fstype, "fuse.zfs") == 0)
> +      if (grub_strcmp (entries[i].fstype, "fuse.zfs") == 0 ||
> +          grub_strcmp (entries[i].fstype, "zfs") == 0)
>   	{
>   	  char *slash;
>   	  slash = strchr (entries[i].device, '/');
> This should go as a separate patch

Attached as zfs-fstype.patch.

-- 
Richard

[-- Attachment #1.2: zfs-devices.patch --]
[-- Type: text/x-patch, Size: 992 bytes --]

Index: grub/util/getroot.c
===================================================================
--- grub.orig/util/getroot.c	2012-02-27 01:09:58.142614829 -0600
+++ grub/util/getroot.c	2012-02-27 01:10:07.237344000 -0600
@@ -302,7 +302,10 @@ find_root_devices_from_poolname (char *p
 		    devices = xrealloc (devices, sizeof (devices[0])
 					* devices_allocated);
 		  }
-		devices[ndevices++] = xasprintf ("/dev/%s", name);
+		if (name[0] == '/')
+		  devices[ndevices++] = xstrdup (name);
+		else
+		  devices[ndevices++] = xasprintf ("/dev/%s", name);
 	      }
 	    break;
 	  }
Index: grub/ChangeLog.zfs-devices
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ grub/ChangeLog.zfs-devices	2012-02-27 01:20:10.839892000 -0600
@@ -0,0 +1,5 @@
+2012-02-27  Richard Laager <rlaager@wiktel.com>
+
+	* util/getroot.c (find_root_devices_from_poolname): Handle ZFS vdevs
+	  with full paths.
+

[-- Attachment #1.3: zfs-fstype.patch --]
[-- Type: text/x-patch, Size: 1027 bytes --]

Support native ZFS on Linux.

Index: grub/util/getroot.c
===================================================================
--- grub.orig/util/getroot.c	2012-02-27 01:10:07.237344000 -0600
+++ grub/util/getroot.c	2012-02-27 01:24:13.693145000 -0600
@@ -479,7 +479,8 @@ grub_find_root_devices_from_mountinfo (c
       if (!*entries[i].device)
 	continue;
 
-      if (grub_strcmp (entries[i].fstype, "fuse.zfs") == 0)
+      if (grub_strcmp (entries[i].fstype, "fuse.zfs") == 0 ||
+          grub_strcmp (entries[i].fstype, "zfs") == 0)
 	{
 	  char *slash;
 	  slash = strchr (entries[i].device, '/');
Index: grub/ChangeLog.zfs-fstype
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ grub/ChangeLog.zfs-fstype	2012-02-27 01:26:20.548958000 -0600
@@ -0,0 +1,5 @@
+2012-02-27  Richard Laager <rlaager@wiktel.com>
+
+	* util/getroot.c (grub_find_root_devices_from_mountinfo): Support
+	  the native ZFS on Linux fstype ("zfs").
+

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2012-02-27  7:32 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-21 16:12 Freeze on 27 February Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-21 16:19 ` Lennart Sorensen
2012-02-21 17:09   ` Lists and aliasing (Re: Freeze on 27 February) Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-21 18:46     ` Lennart Sorensen
2012-02-21 19:58       ` Lennart Sorensen
2012-02-21 20:29         ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-22 15:34           ` Lennart Sorensen
2012-02-22 15:50             ` Lennart Sorensen
2012-02-22 15:57               ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-22 16:18                 ` Lennart Sorensen
2012-02-22 16:25                   ` Lennart Sorensen
2012-02-22 16:43                     ` Lennart Sorensen
2012-02-22 16:50                     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-22 17:16                       ` Lennart Sorensen
2012-02-22 17:35                         ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-22 17:41                           ` Lennart Sorensen
2012-02-22 17:46                             ` Lennart Sorensen
2012-02-22 18:01                               ` Lennart Sorensen
2012-02-22 18:28                                 ` Lennart Sorensen
2012-02-22 18:41                                   ` Lennart Sorensen
2012-02-22 19:00                                     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-22 22:50                                       ` Lennart Sorensen
2012-02-22 23:03                                         ` Lennart Sorensen
2012-02-23  2:39                                           ` Isaac Dupree
2012-02-23  6:17                                           ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-23 17:43                                             ` Lennart Sorensen
2012-02-24 23:16                                               ` Lennart Sorensen
2012-02-22 17:38                         ` Lennart Sorensen
2012-02-22 16:51                   ` Lennart Sorensen
2012-02-21 21:40         ` Lennart Sorensen
2012-02-22  5:35 ` Freeze on 27 February Richard Laager
2012-02-23  6:34   ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-27  6:58     ` Richard Laager
2012-02-27 18:17       ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-27  7:32     ` Richard Laager [this message]
     [not found]     ` <1330033617.3895.26.camel@watermelon.coderich.net>
     [not found]       ` <4F4AC782.1090402@gmail.com>
     [not found]         ` <1330322499.2901.5.camel@watermelon.coderich.net>
     [not found]           ` <1330322681.2901.8.camel@watermelon.coderich.net>
2012-02-27 18:18             ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-27 18:20           ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-27 19:46             ` Richard Laager
2012-03-08 22:51               ` Remaining ZFS Changes for 2.00 (Was: Re: Freeze on 27 February) Richard Laager
2012-03-10 12:44                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-10 13:39                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-10 15:51                   ` Richard Laager
2012-03-10 16:01                     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-10 13:41                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-10 17:51                 ` Vladimir 'φ-coder/phcoder' Serbinenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1330327933.2901.32.camel@watermelon.coderich.net \
    --to=rlaager@wiktel.com \
    --cc=grub-devel@gnu.org \
    --cc=phcoder@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.