summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-10-14 14:13:42 +0000
committerjhb <jhb@FreeBSD.org>2009-10-14 14:13:42 +0000
commitbd58e46f9d606e63d79eab6cd6cf0d39bac88156 (patch)
tree83589175bbf99fbf1c3fd4369ced23cc9c12a624 /sys/boot/i386
parentd7403abaf51df70a9bae3f78e4b3f2b7a6261a6e (diff)
downloadFreeBSD-src-bd58e46f9d606e63d79eab6cd6cf0d39bac88156.zip
FreeBSD-src-bd58e46f9d606e63d79eab6cd6cf0d39bac88156.tar.gz
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
Diffstat (limited to 'sys/boot/i386')
-rw-r--r--sys/boot/i386/zfsboot/zfsboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/i386/zfsboot/zfsboot.c b/sys/boot/i386/zfsboot/zfsboot.c
index ca03568..a654393 100644
--- a/sys/boot/i386/zfsboot/zfsboot.c
+++ b/sys/boot/i386/zfsboot/zfsboot.c
@@ -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) {
OpenPOWER on IntegriCloud