summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/disk.h
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/common/disk.h
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/common/disk.h')
-rw-r--r--sys/boot/common/disk.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/common/disk.h b/sys/boot/common/disk.h
index 3e8b250..1aaa031 100644
--- a/sys/boot/common/disk.h
+++ b/sys/boot/common/disk.h
@@ -93,7 +93,8 @@ struct disk_devdesc
* Parse disk metadata and initialise dev->d_offset.
*/
extern int disk_open(struct disk_devdesc *dev, off_t mediasize,
- u_int sectorsize);
+ u_int sectorsize, u_int flags);
+#define DISK_F_NOCACHE 0x0001 /* Do not use metadata caching */
extern int disk_close(struct disk_devdesc *dev);
extern void disk_cleanup(const struct devsw *d_dev);
OpenPOWER on IntegriCloud