summaryrefslogtreecommitdiff
path: root/ext2fs/ext2fs.h
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-11 15:39:47 +0000
committerMiles Bader <miles@gnu.org>1995-04-11 15:39:47 +0000
commit8e0ccd4170c3601e6d4e7d96c6d77c23562b5f1b (patch)
treece59d9f67a6542c4a0771c25f718bb2b9d094c7d /ext2fs/ext2fs.h
parent28c56d350a6613a2ed7352705261783348d8dbc5 (diff)
Formerly ext2fs.h.~3~
Diffstat (limited to 'ext2fs/ext2fs.h')
-rw-r--r--ext2fs/ext2fs.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/ext2fs/ext2fs.h b/ext2fs/ext2fs.h
index f35e32fe..8e2e2595 100644
--- a/ext2fs/ext2fs.h
+++ b/ext2fs/ext2fs.h
@@ -25,6 +25,7 @@
#include <assert.h>
#include <rwlock.h>
#include "ext2_fs.h"
+#include "fs.h"
/* Define this if memory objects should not be cached by the kernel.
Normally, don't define it, but defining it causes a much greater rate
@@ -67,14 +68,17 @@ struct user_pager_info *diskpager;
mach_port_t diskpagerport;
off_t diskpagersize;
+
+/* ---------------------------------------------------------------- */
+
vm_address_t zeroblock;
+void *disk_image;
-struct fs *sblock;
-struct csum *csum;
+struct super_block *sblock;
int sblock_dirty;
int csum_dirty;
-
-void *disk_image;
+
+/* ---------------------------------------------------------------- */
spin_lock_t node2pagelock;
@@ -83,7 +87,12 @@ spin_lock_t alloclock;
spin_lock_t gennumberlock;
u_long nextgennumber;
-mach_port_t ufs_device;
+
+/* ---------------------------------------------------------------- */
+
+mach_port_t ext2fs_device;
+
+/* ---------------------------------------------------------------- */
/* The compat_mode specifies whether or not we write
extensions onto the disk. */
@@ -94,6 +103,8 @@ enum compat_mode
} compat_mode;
+/* ---------------------------------------------------------------- */
+
/* Handy macros */
#define DEV_BSIZE 512
#define NBBY 8
@@ -106,6 +117,10 @@ enum compat_mode
#define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<(i)%NBBY))
#define fsaddr(fs,n) (fsbtodb(fs,n)*DEV_BSIZE)
+#define bread(void *dev, long block, long amount) \
+ ((char *)(vm_addres_t)dev + block * DEV_BSIZE)
+#define brelse(char *bh) ((void)0)
+
/* Functions for looking inside disk_image */