Interview Prep/Linux/Filesystem Hierarchy, Inodes & Links

What is the difference between ext4 and XFS?

IntermediateConceptFilesystem Hierarchy, Inodes & Links
Answer

Both are mature journaling filesystems. XFS (RHEL default) scales better for large files and parallel I/O and allocates inodes dynamically, but it cannot be shrunk. ext4 (Debian/Ubuntu default) can grow and shrink (shrink offline only), has a fixed inode count, and has the more forgiving e2fsck. Use xfs_growfs for XFS and resize2fs for ext4.

All Linux questions Roadmap: Linux

More on Filesystem Hierarchy, Inodes & Links