All of lore.kernel.org
 help / color / mirror / Atom feed
From: Javier Martinez Canillas <javierm@redhat.com>
To: grub-devel@gnu.org
Cc: Daniel Kiper <daniel.kiper@oracle.com>,
	Peter Jones <pjones@redhat.com>,
	Javier Martinez Canillas <javierm@redhat.com>
Subject: [PATCH v2 01/12] linux/getroot: Handle rssd storage device names
Date: Wed,  4 Mar 2020 12:58:40 +0100	[thread overview]
Message-ID: <20200304115851.3474263-2-javierm@redhat.com> (raw)
In-Reply-To: <20200304115851.3474263-1-javierm@redhat.com>

From: Peter Jones <pjones@redhat.com>

The Micron PCIe SSDs Linux driver (mtip32xx) exposes block devices
as /dev/rssd[a-z]+[0-9]*. Add support for these rssd device names.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
---

 grub-core/osdep/linux/getroot.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/grub-core/osdep/linux/getroot.c b/grub-core/osdep/linux/getroot.c
index 90d92d3ad5c..6d9f4e5faa2 100644
--- a/grub-core/osdep/linux/getroot.c
+++ b/grub-core/osdep/linux/getroot.c
@@ -921,6 +921,19 @@ grub_util_part_to_disk (const char *os_dev, struct stat *st,
 	  return path;
 	}
 
+      /* If this is an rssd device. */
+      if ((strncmp ("rssd", p, 4) == 0) && p[4] >= 'a' && p[4] <= 'z')
+	{
+	  char *pp = p + 4;
+	  while (*pp >= 'a' && *pp <= 'z')
+	    pp++;
+	  if (*pp)
+	    *is_part = 1;
+	  /* /dev/rssd[a-z]+[0-9]* */
+	  *pp = '\0';
+	  return path;
+	}
+
       /* If this is a loop device */
       if ((strncmp ("loop", p, 4) == 0) && p[4] >= '0' && p[4] <= '9')
 	{
-- 
2.24.1



  reply	other threads:[~2020-03-04 11:59 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-04 11:58 [PATCH v2 00/12] A set of trivial patches from the Fedora package Javier Martinez Canillas
2020-03-04 11:58 ` Javier Martinez Canillas [this message]
2020-03-04 11:58 ` [PATCH v2 02/12] efi: Print more debug info in our module loader Javier Martinez Canillas
2020-03-04 11:58 ` [PATCH v2 03/12] Makefile: Make libgrub.pp depend on config-util.h Javier Martinez Canillas
2020-03-04 11:58 ` [PATCH v2 04/12] kern: Add grub_debug_enabled() Javier Martinez Canillas
2020-03-04 11:58 ` [PATCH v2 05/12] normal/completion: Fix possible NULL pointer dereference Javier Martinez Canillas
2020-03-04 11:58 ` [PATCH v2 06/12] efi/gop: Add support for BLT_ONLY adapters Javier Martinez Canillas
2020-03-04 11:58 ` [PATCH v2 07/12] efi/uga: Use 64 bit for fb_base Javier Martinez Canillas
2020-03-04 11:58 ` [PATCH v2 08/12] kern: Make grub_error() more verbose Javier Martinez Canillas
2020-03-05 13:54   ` Daniel Kiper
2020-03-05 14:22   ` Vladimir 'phcoder' Serbinenko
2020-03-06 11:37     ` Javier Martinez Canillas
2020-03-06 11:41       ` Vladimir 'phcoder' Serbinenko
2020-03-06 12:10         ` Javier Martinez Canillas
2020-03-06 11:42     ` Daniel Kiper
     [not found]       ` <CAEaD8JOV4heW-NU1L=PTm3ycad6nwUX8PLmEjWoYgYBTm4d1QA@mail.gmail.com>
2020-03-06 12:43         ` Daniel Kiper
2020-03-06 13:37           ` Vladimir 'phcoder' Serbinenko
2020-03-09 11:27             ` Daniel Kiper
2020-03-06 14:01           ` Didier Spaier
2020-03-06 14:38             ` Vladimir 'phcoder' Serbinenko
2020-03-06 16:30               ` Didier Spaier
2020-03-06 16:39                 ` Lennart Sorensen
2020-03-06 17:10                   ` Didier Spaier
2020-03-06 17:23                     ` Lennart Sorensen
2020-03-06 17:03             ` David Michael
2020-03-06 17:12               ` Bruce Dubbs
2020-03-06 17:19                 ` Lennart Sorensen
2020-03-06 17:45               ` Didier Spaier
2020-03-06 21:02               ` Vladimir 'phcoder' Serbinenko
2020-03-04 11:58 ` [PATCH v2 09/12] efi: Print error messages to grub_efi_allocate_pages_real() Javier Martinez Canillas
2020-03-05 13:56   ` Daniel Kiper
2020-03-04 11:58 ` [PATCH v2 10/12] efi/uga: Use video instead of fb as debug condition Javier Martinez Canillas
2020-03-05 13:56   ` Daniel Kiper
2020-03-04 11:58 ` [PATCH v2 11/12] efi/gop: Add debug output on GOP probing Javier Martinez Canillas
2020-03-05 13:57   ` Daniel Kiper
2020-03-04 11:58 ` [PATCH v2 12/12] efi: Fix the type of grub_efi_status_t Javier Martinez Canillas

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=20200304115851.3474263-2-javierm@redhat.com \
    --to=javierm@redhat.com \
    --cc=daniel.kiper@oracle.com \
    --cc=grub-devel@gnu.org \
    --cc=pjones@redhat.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.