diff options
| author | Michael I. Bushnell <mib@gnu.org> | 1994-10-03 21:15:48 +0000 |
|---|---|---|
| committer | Michael I. Bushnell <mib@gnu.org> | 1994-10-03 21:15:48 +0000 |
| commit | e7c7fde09edf3a831daedd42afab061502b59871 (patch) | |
| tree | 5915bd41a31f4934e136979d01db6040700de94e /ufs | |
| parent | 820bedd006fb925b4043f60b5809e9441e79031b (diff) | |
entered into RCS
Diffstat (limited to 'ufs')
| -rw-r--r-- | ufs/bmap.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -35,10 +35,18 @@ fetch_indir_spec (struct node *np, volatile daddr_t lbn, if (err = diskfs_catch_exception ()) return err; + indirs[0].offset = -2; + indirs[1].offset = -2; + indirs[2].offset = -2; + indirs[3].offset = -2; + if (lbn < NDADDR) { - indirs[0].bno = di->di_db[lbn]; - indirs[0].offset = -1; + if (lbn >= 0) + { + indirs[0].bno = di->di_db[lbn]; + indirs[0].offset = -1; + } diskfs_end_catch_exception (); return 0; |
