diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-04-23 18:09:23 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-04-23 18:09:23 +0000 |
commit | e1070d41d76c4edee806bf3413f8f6b8cb1a0c6b (patch) | |
tree | cb380d6af802fce8cd8aef4fb9622034fa5f3749 /ufs/bmap.c | |
parent | 31dc09b2735af50391ee6496d5fbc3b2763f9e9b (diff) |
(fetch_indir_spec): Use read/write_disk_entry when reading/writing
on-disk inode fields and indirect blocks.
Diffstat (limited to 'ufs/bmap.c')
-rw-r--r-- | ufs/bmap.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ /* Interpretation of indirect block structure - Copyright (C) 1994, 1995 Free Software Foundation, Inc. + Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. Written by Michael I. Bushnell. This file is part of the GNU Hurd. @@ -45,7 +45,7 @@ fetch_indir_spec (struct node *np, volatile daddr_t lbn, { if (lbn >= 0) { - indirs[0].bno = di->di_db[lbn]; + indirs[0].bno = read_disk_entry (di->di_db[lbn]); indirs[0].offset = -1; } @@ -72,12 +72,12 @@ fetch_indir_spec (struct node *np, volatile daddr_t lbn, assert (!(ibn / NINDIR (sblock))); indirs[2].offset = -1; - indirs[2].bno = di->di_ib[INDIR_DOUBLE]; + indirs[2].bno = read_disk_entry (di->di_ib[INDIR_DOUBLE]); if (indirs[2].bno) { diblock = indir_block (indirs[2].bno); - indirs[1].bno = diblock[indirs[1].offset]; + indirs[1].bno = read_disk_entry (diblock[indirs[1].offset]); } else indirs[1].bno = 0; @@ -85,13 +85,13 @@ fetch_indir_spec (struct node *np, volatile daddr_t lbn, else { indirs[1].offset = -1; - indirs[1].bno = di->di_ib[INDIR_SINGLE]; + indirs[1].bno = read_disk_entry (di->di_ib[INDIR_SINGLE]); } if (indirs[1].bno) { siblock = indir_block (indirs[1].bno); - indirs[0].bno = siblock[indirs[0].offset]; + indirs[0].bno = read_disk_entry (siblock[indirs[0].offset]); } else indirs[0].bno = 0; |