FreeCalypso > hg > fc-magnetite
changeset 661:ba45f6514fb1
FFS: fixed bug in the case of journal_init() creating the journal on boot
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 20 May 2020 22:54:29 +0000 |
parents | 293c7db5f10f |
children | 8cd8fd15a095 |
files | src/cs/drivers/drv_app/ffs/board/fsck.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/ffs/board/fsck.c Thu May 14 02:50:41 2020 +0000 +++ b/src/cs/drivers/drv_app/ffs/board/fsck.c Wed May 20 22:54:29 2020 +0000 @@ -1247,7 +1247,7 @@ effs_t journal_init(iref_t i) { int j; - struct inode_s *ip = inode_addr(i); + struct inode_s *ip; struct journal_s *addr; if (i == 0) { @@ -1260,6 +1260,7 @@ fs.journal_depth = 0; fs.journal_pos = JOURNAL_POS_INITIAL; + ip = inode_addr(i); addr = (struct journal_s *) offset2addr(location2offset(ip->location) + fs.journal_pos);