svn commit: r198079 - head/sys/boot/i386/zfsboot

John Baldwin jhb at FreeBSD.org
Wed Oct 14 14:13:42 UTC 2009


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) {


More information about the svn-src-all mailing list