diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-07-15 17:54:51 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-07-15 17:54:51 +0000 |
commit | dbc48a1fc573f362b3afc7e76b261044aef5a698 (patch) | |
tree | 8b674f4e265a9317f10aa846569a04906db3a573 /ufs | |
parent | 2428fdffd15b737a0fa4c2714c44c99d7223e735 (diff) |
Formerly hyper.c.~7~
Diffstat (limited to 'ufs')
-rw-r--r-- | ufs/hyper.c | 8 |
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; |