summaryrefslogtreecommitdiff
path: root/ufs/hyper.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-07-15 17:54:51 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-07-15 17:54:51 +0000
commite59c3ff37bbee0f888d28a6bbbf4fe34701e53b3 (patch)
treefaa16131dd6da184cfdfbca193cc1d5f8fb287a9 /ufs/hyper.c
parent6fc3e9c3aabbd8c4bb0ab54823d31e2bd556d08d (diff)
Formerly hyper.c.~7~
Diffstat (limited to 'ufs/hyper.c')
-rw-r--r--ufs/hyper.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ufs/hyper.c b/ufs/hyper.c
index c9ffcc63..a1a19706 100644
--- a/ufs/hyper.c
+++ b/ufs/hyper.c
@@ -17,6 +17,7 @@
#include "ufs.h"
#include "fs.h"
+#include "dinode.h"
#include <string.h>
#include <stdio.h>
@@ -49,7 +50,7 @@ get_hypermetadata (void)
if (sblock->fs_maxsymlinklen > MAXSYMLINKLEN)
{
- fprintf (stderr, "Max shortcut symlinklen %d is too big (max is %d)\n",
+ fprintf (stderr, "Max shortcut symlinklen %ld is too big (max is %ld)\n",
sblock->fs_maxsymlinklen, MAXSYMLINKLEN);
exit (1);
}
@@ -70,7 +71,8 @@ get_hypermetadata (void)
else
direct_symlink_extension = 0;
- err = dev_read_sync (fsbtodb (sblock->fs_csaddr), (vm_address_t *) &csum,
+ err = dev_read_sync (fsbtodb (sblock, sblock->fs_csaddr),
+ (vm_address_t *) &csum,
sblock->fs_fsize * howmany (sblock->fs_cssize,
sblock->fs_fsize));
assert (!err);
@@ -88,7 +90,7 @@ diskfs_set_hypermetadata (int wait, int clean)
spin_lock (&alloclock);
if (csum_dirty)
{
- (*writefn)(fsbtodb (sblock->fs_csaddr), (vm_address_t) csum,
+ (*writefn)(fsbtodb (sblock, sblock->fs_csaddr), (vm_address_t) csum,
sblock->fs_fsize * howmany (sblock->fs_cssize,
sblock->fs_fsize));
csum_dirty = 0;