this post was submitted on 31 Oct 2023
156 points (100.0% liked)

Linux

48072 readers
1 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 6 years ago
MODERATORS
 

I got this email this morning: https://lkml.org/lkml/2023/10/30/1098 πŸ₯³

top 25 comments
sorted by: hot top controversial new old
[–] tony@lemmy.hoyle.me.uk 23 points 2 years ago (3 children)

What I've read looks good but it's going to need a track record of reliability before I'd trust it.

[–] woelkchen@lemmy.world 32 points 2 years ago

it’s going to need a track record of reliability before I’d trust it.

That's why kernel inclusion is so important: People can start testing it without jumping through hoops of manually patching and compiling the kernel.

[–] nachtigall@feddit.de 11 points 2 years ago (1 children)

Curious too. I tried running bcachefs last year and with the combination of compression and encryption everything ended up corrupted very very fast.

[–] massive_bereavement@kbin.social 3 points 2 years ago (1 children)

Did you find the root cause of the corruption?

[–] nachtigall@feddit.de 5 points 2 years ago

It was a known bug, I assume it is fixed now that Linus merged it.

[–] PseudoSpock@lemmy.dbzer0.com 1 points 2 years ago

Why? BTRFS never did, and it's used by a lot of people.

[–] agressivelyPassive@feddit.de 17 points 2 years ago (2 children)

I only read the wiki article and honestly, I can't tell what makes that different from other "advanced" FSs like BTRFS and ZFS.

Could someone get me up to speed here?

[–] Spore@lemmy.ml 29 points 2 years ago* (last edited 2 years ago) (2 children)

Compared to btrfs it's claimed to be faster and having working RAID support. Its unique feature is using a fast device as cache to speed up access to slower, larger disks, I think.

[–] trougnouf@lemmy.world 10 points 2 years ago* (last edited 2 years ago) (1 children)

Yes. The intelligent multi-device-type feature is a huge improvement for any workload that needs more space than what an SSD can affordably provide, even moreso with the reliability of eg RAID1.

Before that I had to use BTRFS (RAID1) on bcache (not fs) devices, but half of the cache space was being wasted on the redundant copies because the two systems operate independently.

[–] sxan@midwest.social 13 points 2 years ago

To explain in case someone doesn't know what this means, it's something BTRFS doesn't have (and AFAIK isn't even on the roadmap). It means you could have, say, an SSD and a more reliable HDD RAIDed such that every stripe on the HDD counts as multiple writes; and you might set that system up so that the SSD is read with priority, and the HDD is written in the background, so that - even though you have a slow drive in the RAID, throughput happens at the faster SSD speeds.

The average user probably won't use this much, but there are all sorts of ways this could be leveraged, by companies, self-hosters, smart OS installation scripts, even removable drive mounters, like udiskie.

[–] intrepid@lemmy.ca 6 points 2 years ago (1 children)

Compared to btrfs, it has native encryption too - though it's said to be unaudited at the moment. Btrfs needs dmcrypt for encryption support.

[–] Tiuku@sopuli.xyz 1 points 2 years ago (1 children)

What are the actual differences between native encryption and dmcrypt? Like: Can it be booted? Does it leak more information about the fs? Is it faster?

[–] intrepid@lemmy.ca 2 points 2 years ago* (last edited 2 years ago)

Native encryption is when the filesystem driver does the decryption in addition to the regular decoding job. Dmcrypt is where encryption is done by a separate component that's part of the kernel. Dmcrypt decrypts the raw block device (partition) and creates an unencrypted virtual block device (usually in /dev/mapper/). The filesystem driver then decodes this virtual device to give the final data access. It's like having a filesystem within a filesystem.

Regular bootloaders like Grub can't decrypt anything. So the /boot device is usually on a separate unencrypted partition. You need the initramfs to be able to decrypt and decode the partition. That's not very complicated - most users don't even need to deal with it.

Dmcrypt is arguably more secure than native encryption, since you won't know the filesystem type until you decrypt the partition first. On the other hand, native encryption is likely to be faster and more flexible for complex filesystems like ZFS, Btrfs and BCachefs.

[–] ikidd@lemmy.world 3 points 2 years ago

Compared to ZFS, it's a sideways movement except for being in the kernel. ZFS has a lot more enterprise level features and an excellent track record. Its used widely for some pretty big installations, and still can be used by the homelabber quite nicely. Things like fs send and native encryption are big.

Compared to BTRFS, well, it's definitely an improvement in many areas for a driver that's in the kernel.

[–] mindlight@lemm.ee 11 points 2 years ago (1 children)

Does Bcachefs come with any guarantees regarding my wife's wellbeing?

If not, I'm definitively sticking with my OpenZFS.

[–] PseudoSpock@lemmy.dbzer0.com 9 points 2 years ago (1 children)

Depends... you didn't write ReiserFS, did you?

[–] ninekeysdown@lemmy.world 3 points 2 years ago
[–] woelkchen@lemmy.world 11 points 2 years ago

The story behind bcachefs development is mildly wild.

[–] Tobu@lemmy.ml 7 points 2 years ago* (last edited 2 years ago)

Happy happy joy! I've been using it for a year already, as it is simpler to manage than luks + lvm + bcache + whatever FS.

It has been entirely unproblematic through frequent kernel upgrades; caching, background compression and encryption just work.

I'm very glad it made it in; it deserves wider adoption.

[–] QuazarOmega@lemy.lol 5 points 2 years ago (1 children)

Wow, didn't expect it to happen so soon!

[–] intrepid@lemmy.ca 5 points 2 years ago (2 children)

It's going to be a while before 6.7 is released.

[–] EinfachUnersetzlich@lemm.ee 5 points 2 years ago

Two months.

[–] QuazarOmega@lemy.lol 3 points 2 years ago* (last edited 2 years ago)

Well yes, but seeing the history it has, I thought it would go through some more hiccups along the way, so it would actually take way more than that.
I'm glad to see I was wrong!

[–] PseudoSpock@lemmy.dbzer0.com 1 points 2 years ago

The long wait is over!