Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2018 13:58:42 +0000 (UTC)
From:      Toomas Soome <tsoome@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r341230 - stable/12/stand/i386/loader
Message-ID:  <201811291358.wATDwgg9047417@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tsoome
Date: Thu Nov 29 13:58:41 2018
New Revision: 341230
URL: https://svnweb.freebsd.org/changeset/base/341230

Log:
  MFC r340047:
  loader: do not probe floppy devices for zfs
  
  Floppy devices do not have enough space for ZFS pool.

Modified:
  stable/12/stand/i386/loader/main.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/stand/i386/loader/main.c
==============================================================================
--- stable/12/stand/i386/loader/main.c	Thu Nov 29 13:55:57 2018	(r341229)
+++ stable/12/stand/i386/loader/main.c	Thu Nov 29 13:58:41 2018	(r341230)
@@ -399,6 +399,8 @@ i386_zfs_probe(void)
     for (unit = 0; unit < MAXBDDEV; unit++) {
 	if (bd_unit2bios(unit) == -1)
 	    break;
+	if (bd_unit2bios(unit) < 0x80)
+	    continue;
 	sprintf(devname, "disk%d:", unit);
 	zfs_probe_dev(devname, NULL);
     }



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