summaryrefslogtreecommitdiff
path: root/sbin/pdisk/file_media.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-01-23 03:46:19 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-01-23 03:46:19 +0000
commitc7f4c3f7eedf62e1288b7eed0b5c722ce31c28ee (patch)
treec7f21739e9f1c430658d1675b8c20c4cf34a38ae /sbin/pdisk/file_media.h
parentae30166f3f7b911b7df9f39319ab97b233f66846 (diff)
Flip read_block() and write_block() back to taking sector addresses
instead of off_t values. Do the DEV_BSIZE multiplication in these two functions. Easier to read code and kills two #include <sys/param.h>. Kill unused label.
Diffstat (limited to 'sbin/pdisk/file_media.h')
-rw-r--r--sbin/pdisk/file_media.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pdisk/file_media.h b/sbin/pdisk/file_media.h
index a85466dbb97..4bee7d37eb0 100644
--- a/sbin/pdisk/file_media.h
+++ b/sbin/pdisk/file_media.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: file_media.h,v 1.15 2016/01/22 12:31:04 krw Exp $ */
+/* $OpenBSD: file_media.h,v 1.16 2016/01/23 03:46:18 krw Exp $ */
/*
* file_media.h -
@@ -30,7 +30,7 @@
#ifndef __file_media__
#define __file_media__
-int read_block(int, off_t, void *);
-int write_block(int, off_t, void *);
+int read_block(int, uint64_t, void *);
+int write_block(int, uint64_t, void *);
#endif /* __file_media__ */