Skip to content

Commit

Permalink
Merge pull request #21 from OmSaran/nlinks
Browse files Browse the repository at this point in the history
Update nlinks during inode update during log digestion
  • Loading branch information
wreda committed Nov 29, 2021
2 parents 82d228c + a9cc0d0 commit 6afde42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernfs/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ int digest_inode(uint8_t from_dev, uint8_t to_dev, int libfs_id,
}

inode->size = src_dinode->size;
inode->nlink = src_dinode->nlink;

mlfs_debug("[INODE] (%d->%d) inode inum %u type %d, size %lu\n",
from_dev, to_dev, inode->inum, inode->itype, inode->size);
Expand Down

0 comments on commit 6afde42

Please sign in to comment.