Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
Write an article for LinuxForums Today! Win Great Prizes!
Since the advent of ext3 over a decade ago, journalling layer has been a part of linux kernel. It helps filesystems to maintain consistency, by applying complex filesystem operations in form of atomic transactions, which are guaranteed either to be fully complete or not at all. Thus at any point of time, filesystem is consistent even after crashes or unclean unmounts. In this article we walk through the internals of jbd and see how filesystem consistency is achieved using the jbd layer. Linux kernel 3.0.0 is used as the source code for reference, taking ext3 as an example of the filesystem using jbd wherever required.