I am trying to find fsck code. I can not find it in the coreutils package in Ubuntu. Can someone please let me know where I can take a look at the fsck code?
fsck has several implementations depending on the file system used. For ext2 / ext3 / ext4 you need the "e2fsprogs" package in Ubuntu.
Try:
sudo apt-get source e2fsprogs