Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 2009 14:13:42 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r198079 - head/sys/boot/i386/zfsboot
Message-ID:  <200910141413.n9EEDgQo039064@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Wed Oct 14 14:13:42 2009
New Revision: 198079
URL: http://svn.freebsd.org/changeset/base/198079

Log:
  Use zfs_read() instead of xfsread() to read /boot.config.  xfsread() fails
  short read requests, so the result was that a /boot.config smaller than 512
  bytes was ignored.  boot2 uses fsread() instead of xfsread() to read
  /boot.config already, so this makes zfsboot more like boot2.
  
  Submitted by:	Johny Mattsson  johny-freebsd of earthmagic org
  Reviewed by:	dfr
  MFC after:	3 days

Modified:
  head/sys/boot/i386/zfsboot/zfsboot.c

Modified: head/sys/boot/i386/zfsboot/zfsboot.c
==============================================================================
--- head/sys/boot/i386/zfsboot/zfsboot.c	Wed Oct 14 13:58:24 2009	(r198078)
+++ head/sys/boot/i386/zfsboot/zfsboot.c	Wed Oct 14 14:13:42 2009	(r198079)
@@ -609,7 +609,7 @@ main(void)
 
     if (zfs_lookup(spa, PATH_CONFIG, &dn) == 0) {
 	off = 0;
-	xfsread(&dn, &off, cmd, sizeof(cmd));
+	zfs_read(spa, &dn, &off, cmd, sizeof(cmd));
     }
 
     if (*cmd) {



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