summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/cd9660/cd9660_vnops.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/fs/cd9660/cd9660_vnops.c b/sys/fs/cd9660/cd9660_vnops.c
index 79ec54f..8c8f724 100644
--- a/sys/fs/cd9660/cd9660_vnops.c
+++ b/sys/fs/cd9660/cd9660_vnops.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)cd9660_vnops.c 8.3 (Berkeley) 1/23/94
- * $Id: cd9660_vnops.c,v 1.20 1995/11/12 10:16:53 davidg Exp $
+ * $Id: cd9660_vnops.c,v 1.21 1995/11/12 10:36:19 davidg Exp $
*/
#include <sys/param.h>
@@ -283,8 +283,12 @@ extern int doclusterread;
#endif
#else
/* XXX until cluster routines can handle block sizes less than one page */
+#if defined(__FreeBSD__)
+#define doclusterread 1
+#else
#define doclusterread 0
#endif
+#endif
/*
* Vnode op for reading.
@@ -328,7 +332,7 @@ cd9660_read(ap)
rablock = lbn + 1;
if (doclusterread) {
if (iso_lblktosize(imp, rablock) <= ip->i_size)
- error = cluster_read(vp, (off_t)ip->i_size,
+ error = cluster_read(vp, ip->i_size,
lbn, size, NOCRED, &bp);
else
error = bread(vp, lbn, size, NOCRED, &bp);
OpenPOWER on IntegriCloud