There are dozens of Linux file methods, and I am certain you’ve got heard of ReiserFS no less than as soon as. It promised a fantastic deal however in the end failed. I might offer you some technical motive for its demise, however that will be dishonest. The true motive is way darker, and for those who heard it, you may admire your day a bit extra.
ReiserFS was a challenge that promised a lot within the early days of Linux, and its lead developer—Hans Reiser—had massive aspirations for his invention and firm (Namesys). ReiserFS took his Linux file system in a wholly new route with its B-tree index and tail-packing options—one thing sorely wanted on the time. With distros like SUSE adopting it early, the longer term seemed good for Hans Reiser’s gem, however destiny had different plans.
Issues begging to be mounted
Inefficient searches and storage bogged Linux down
Within the early days of Linux, file methods weren’t as performant as they’re now—scalability was a mere afterthought, and Ext2 is a primary instance.
Every thing is a file on Linux, and directories aren’t any completely different. What you see as a folder icon is merely an phantasm, and the listing is definitely a particular file that shops listing knowledge. The truth is barely extra complicated, involving an inode, however that is the final concept.
To seek for a selected filename in a listing, Ext2 carried out a linear search of its listing file, which suggests it checked each file entry one after the opposite. When a listing accommodates thousands and thousands of information (like an electronic mail server), and the requests come thick and quick, the server begins to buckle below the large stress.
Associated
Switching From Home windows to Linux: A Step-by-Step Migration Information
A distro hopper’s information to migrating from Home windows to Linux.
B-tree indexing
A speedy and scalable answer that would deal with thousands and thousands of information
A B-tree is a self-balancing knowledge construction organized like a Christmas tree. To skip all of the gory particulars, their main profit to ReiserFS is their astounding pace. For instance, looking out a tree with trillions of things takes just a few dozen operations. For ReiserFS, storing metadata within the tree meant there was no restrict to the variety of information a listing might comprise—in contrast to Ext2, which obtained slowed down for each file added.
ReiserFS additionally saved every thing within the tree—metadata and file knowledge. This was very completely different for the time and eradicated efficiency bottlenecks throughout metadata operations.
Tail packing
A wise space-saving approach
ReiserFS saved house by packing small information into the identical block, which is a small (e.g., 4KB) boundary that almost all file methods use to assign a regular house. Once you save a 6KB file, it allocates two 4KB blocks, with half a block going unused. ReiserFS crammed small information into the unused tail of the block, maintaining the variety of allocations and wasted house down. Such a method is beneficial for servers that host many small information, which had been each net, electronic mail, and file server on the time.
Associated
The “Home windows vs. Linux” debate is a waste of time: Right here’s a greater strategy
It is not Home windows vs. Linux, it is Home windows and Linux.
From the mainline to the principle yard
An unrecoverable error
Credit score: Lucas Gouveia/How-To Geek | eamesBot/Shutterstock
It was wanting good for Hans and his crew, and in 2001, ReiserFS discovered its approach into the kernel mainline. That lasted for a number of years till Hans and his firm hit a tiny snag: he murdered his spouse.
In 2008, the state of California convicted Hans of first-degree homicide. He initially denied it at his trial however later confessed on tape for a decreased sentence of second-degree homicide—which carries 15 years to life. Hans described punching his spouse within the mouth after which strangling her whereas his kids performed pc video games in one other a part of the home. He saved her physique within the lavatory after which in his automotive for 2 days whereas he looked for a spot to bury her.
Based on Hans, his spouse (a doctor) was an “unfathomable” psychopath and a gifted liar who was “jealous of her personal kids.” He additionally later claimed at a civil trial in 2012 that he was defending them as a result of she had Munchausen by proxy—a psychological dysfunction the place a caregiver fabricates or induces sickness in somebody below their care. On the similar trial, he in contrast himself to Moses, who murdered a slave grasp and buried the physique within the sand.
Someday across the first trial, his firm had turn into inactive and ceased all operations. Hans was successfully out of enterprise, and, within the civil trial, he was ordered to pay $60m in damages to his kids.
The inevitable demise of ReiserFS
It is not us, it is you
So as to add to the woes, cracks begun to seem in ReiserFS, from refined file corruption points to utilizing outdated kernel APIs. Essentially the most urgent problem was that ReiserFS obtained swept up within the Y2038 downside. Whereas ReiserFS might signify instances as much as 2106, it didn’t modernize together with the kernel, and in 2022, it was deprecated within the kernel mainline after which later eliminated in 2024.
Hans had massive plans for ReiserFS, and for some time, his firm was delivering. Issues had been wanting up for him, however like the remainder of us, he could not escape actual life. Hans clearly had issues and did not take care of them. It price him his freedom, his kids, and his dream.
The ethical of the story is: for those who don’t keep your code, Linus will delete it from the mainline.
Associated
7 Issues No person Tells You About Twin Booting Linux and Home windows
Truths about twin booting I realized the exhausting approach.

