diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1998-09-29 08:12:00 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1998-09-29 08:12:00 +0000 |
| commit | 3ddaf9c6a34bdf5391c0b379aa67ebd37263cf70 (patch) | |
| tree | 4479dde30ac6437f77dbd28bf88d2bec64654970 /sys/gnu | |
| parent | e3c3546d4776119d08b669744672e1c4a6db1a31 (diff) | |
Notes
Diffstat (limited to 'sys/gnu')
| -rw-r--r-- | sys/gnu/ext2fs/ext2_alloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/gnu/ext2fs/ext2_alloc.c b/sys/gnu/ext2fs/ext2_alloc.c index 8d4673338f40..6744ccdceae7 100644 --- a/sys/gnu/ext2fs/ext2_alloc.c +++ b/sys/gnu/ext2fs/ext2_alloc.c @@ -433,8 +433,10 @@ ext2_valloc(ap) ip->i_blocks = 0; ip->i_flags = 0; /* now we want to make sure that the block pointers are zeroed out */ - for(i = 0; i < EXT2_NDIR_BLOCKS; i++) + for (i = 0; i < NDADDR; i++) ip->i_db[i] = 0; + for (i = 0; i < NIADDR; i++) + ip->i_ib[i] = 0; /* * Set up a new generation number for this inode. |
