From 0692f912df6d760fdc7310a5733d07f63376aad4 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 27 Sep 1994 02:51:13 +0000 Subject: Formerly ufs.h.~26~ --- ufs/ufs.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ufs') 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 #include #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); -- cgit v1.2.3