Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jun 2016 02:02:51 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r301714 - head/sys/boot/efi/libefi
Message-ID:  <201606090202.u5922pwl024436@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Thu Jun  9 02:02:50 2016
New Revision: 301714
URL: https://svnweb.freebsd.org/changeset/base/301714

Log:
  Print a message when the efi disk isn't a logical partition.
  
  Approved by:	andrew (mentor)
  Differential Revision:	https://reviews.freebsd.org/D6782

Modified:
  head/sys/boot/efi/libefi/efipart.c

Modified: head/sys/boot/efi/libefi/efipart.c
==============================================================================
--- head/sys/boot/efi/libefi/efipart.c	Thu Jun  9 01:50:43 2016	(r301713)
+++ head/sys/boot/efi/libefi/efipart.c	Thu Jun  9 02:02:50 2016	(r301714)
@@ -119,8 +119,11 @@ efipart_init(void) 
 		    (void**)&blkio);
 		if (EFI_ERROR(status))
 			continue;
-		if (!blkio->Media->LogicalPartition)
+		if (!blkio->Media->LogicalPartition) {
+			printf("%s%d isn't a logical partition, skipping\n",
+			    efipart_dev.dv_name, n);
 			continue;
+		}
 
 		/*
 		 * If we come across a logical partition of subtype CDROM



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606090202.u5922pwl024436>