summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-09-27 02:51:13 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-09-27 02:51:13 +0000
commit95534a085867271b95d43f0cf57f55cd12bdc4f7 (patch)
treece689b5f5f69e2ed5422eb9eae7af383eb2cc686 /ufs
parente2cc559da4c87515186e8e0834626a1919777394 (diff)
Formerly ufs.h.~26~
Diffstat (limited to 'ufs')
-rw-r--r--ufs/ufs.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ufs/ufs.h b/ufs/ufs.h
index 3088b2a2..6d706100 100644
--- a/ufs/ufs.h
+++ b/ufs/ufs.h
@@ -24,7 +24,7 @@
#include <hurd/diskfs.h>
#include <assert.h>
#include "fs.h"
-
+#include "dinode.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
@@ -218,7 +218,7 @@ dino (ino_t inum)
return (struct dinode *)
(disk_image
+ fsaddr (sblock, ino_to_fsba (sblock, inum))
- + ino_to_fsbo (sblock, inum));
+ + ino_to_fsbo (sblock, inum) * sizeof (struct dinode));
}
/* Convert a indirect block number to a daddr_t table. */
@@ -257,6 +257,10 @@ daddr_t ffs_blkpref (struct node *, daddr_t, int, daddr_t *);
error_t ffs_realloccg(struct node *, daddr_t, daddr_t,
int, int, daddr_t *, struct protid *);
+/* From bmap.c */
+error_t fetch_indir_spec (struct node *, daddr_t, struct iblock_spec *);
+void mark_indir_dirty (struct node *, daddr_t);
+
/* From devio.c: */
error_t dev_write_sync (daddr_t addr, vm_address_t data, long len);
error_t dev_write (daddr_t addr, vm_address_t data, long len);