383

There's been some Friday night kernel drama on the Linux kernel mailing list... Linus Torvalds has expressed regrets for merging the Bcachefs file-system and an ensuing back-and-forth between the file-system maintainer.

you are viewing a single comment's thread
view the rest of the comments

Red Hat recommends XFS by default. That's probably the most "it just works" filesystem out there. Slightly faster than ext4, too!

[-] GolfNovemberUniform@lemmy.ml 5 points 3 weeks ago

I once had the whole FS corrupted and I don't remember if it was XFS or ZFS (probably the latter). Also I like messing around with interesting software that might not support less common filesystems so I just stick with ext4. XFS is great though.

XFS is 24 years old, six years older than the first merged version of ext4. It's the standard for enterprise Linux deployments. This isn't some small indie filesystem like BTRFS or F2FS. It also doesn't do any of the complicated stuff BTRFS and ZFS do to bring filesystems into the 21st century, so repairing it is much easier.

[-] riskable@programming.dev 9 points 3 weeks ago* (last edited 3 weeks ago)

I wouldn't say, "repairing XFS is much easier." Yeah, fsck -y with XFS is really all you have to do 99% of the time but also you're much more likely to get corrupted stuff when you're in that situation compared to say, btrfs which supports snapshotting and redundancy.

Another problem with XFS is its lack of flexibility. By that I don't mean, "you can configure it across any number of partitions on-the-fly in any number of (extreme) ways" (like you can with btrfs and zfs). I mean it doesn't have very many options as to how it should deal with things like inodes (e.g. tail allocation). You can increase the total amount of space allowed for inode allocation but only when you create the filesystem and even then it has a (kind of absurdly) limited number that would surprise most folks here.

As an example, with an XFS filesystem, in order to store 2 billion symlimks (each one takes an inode) you would need 1TiB of storage just for the inodes. Contrast that with something like btrfs with max_inline set to 2048 (the default) and 2 billion symlimks will take up a little less than 1GB (assuming a simplistic setup on at least a 50GB single partition).

Learn more about btrfs inlining: https://btrfs.readthedocs.io/en/latest/Inline-files.html

load more comments (1 replies)
load more comments (1 replies)
load more comments (1 replies)
this post was submitted on 24 Aug 2024
383 points (98.7% liked)

Linux

47290 readers
1056 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS