summaryrefslogtreecommitdiffstats
path: root/sys/boot/uboot/lib
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2012-10-21 12:14:58 +0000
committerae <ae@FreeBSD.org>2012-10-21 12:14:58 +0000
commit2ad040bf3f552fc8b740e79fe6db1bf91414d583 (patch)
treec4b4748bda44bb15b7dab09365fdddecdb576519 /sys/boot/uboot/lib
parent0435f4a49c48e7ffd3690c28630f09490ec3c2dc (diff)
downloadFreeBSD-src-2ad040bf3f552fc8b740e79fe6db1bf91414d583.zip
FreeBSD-src-2ad040bf3f552fc8b740e79fe6db1bf91414d583.tar.gz
Add the flags parameter to the disk_open() function and DISK_F_NOCACHE
flag, that disables the caching of partition tables metadata. Use this flag for floppies in the libi386/biosdisk driver.
Diffstat (limited to 'sys/boot/uboot/lib')
-rw-r--r--sys/boot/uboot/lib/disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/uboot/lib/disk.c b/sys/boot/uboot/lib/disk.c
index 5dc9a5a..e861bc0 100644
--- a/sys/boot/uboot/lib/disk.c
+++ b/sys/boot/uboot/lib/disk.c
@@ -205,7 +205,7 @@ stor_opendev(struct disk_devdesc *dev)
SI(dev).opened++;
}
return (disk_open(dev, SI(dev).blocks * SI(dev).bsize,
- SI(dev).bsize));
+ SI(dev).bsize, 0));
}
static int
OpenPOWER on IntegriCloud