• Possibly linux@lemmy.zipEnglish
      66·
      4 months ago

      I wish the licensing would be Linux compatible

      Overall solid but BTRFS has the advantage of being Linux native in the way it works. Right now I wouldn’t use btrfs for a critical raid system but it is great for single disks.

          • Possibly linux@lemmy.zipEnglish
            5·
            4 months ago

            Oracle could change it if they wanted to. (They don’t care though)

          • acockworkorange@mander.xyz
            4·
            4 months ago

            Thanks, TIL. I always assumed the Open version originated on OpenBSD, and therefore licensed under a BSD license. So TrueNAS is technically violating the licenses by using it in their Linux based systems?

            • ikidd@lemmy.worldEnglish
              10·
              4 months ago

              Oh Ubuntu even had an edition that defaulted to ZFS. The license violation ship has sailed.

              • caffinatedone@lemmy.worldEnglish
                6·
                4 months ago

                I don’t think that it’s like a patent where the holder has to defend it; Oracle can decide to go after a license violation if they want to.

                I’d imagine that if a real competitor or someone with deeper pockets shipped it, they’d be hearing from the throngs of lawyers that oracle keeps on staff in short order.

                • acockworkorange@mander.xyz
                  13·
                  4 months ago

                  Yeah, the fact that ZFS is in Oracle’s hands is the real crime here. I miss Sun.

                • Natanael@infosec.pub
                  1·
                  4 months ago

                  To be pedantic, it’s trademarks you have to actively defend. With copyright and patents there’s different exceptions, but you can usually sue for at minimum expected license fees (although sometimes you give up the possibility to sue for willful infringement & additional damages if you wait)

                • ikidd@lemmy.worldEnglish
                  1·
                  4 months ago

                  I guess my point was that if Canonical did it and nothing came of it, and Canonical isn’t poor, probably nothing’s going to come of it. Proxmox has been shipping ZFS for years, as well as the BSDs. Not a peep.

      • ZkhqrD5o@lemmy.world
        3·
        4 months ago

        But we have OpenZFS, which is under CDDL (=LGPL). So it’s fine.

        Edit: I was wrong, see comment below.

              • ZkhqrD5o@lemmy.world
                6·
                4 months ago

                Oh dear, I didn’t know that. Thanks for the info. I genuinely wish that people would stop using these pushover licenses. I thought it was like the LGPL, but sadly it isn’t. At least the base remains free though.

                • Natanael@infosec.pub
                  5·
                  4 months ago

                  It’s kinda comparable in terms, but because both licenses have comparable copyleft “no rights may be removed and no terms added” restrictions they conflict and can’t be merged.

                  CDDL came after GPL, and I’m not convinced by the arguments for why it was used (to make some kind of development with commercial modules easier, but this could’ve been done with GPL + exceptions)

                  That license plus patents (which only are freely licensed to the CDDL implementation specifically) means you can’t just rewrite it for Linux either. You’d have to wait for the patents to expire and then do clean room reverse engineering.

    • prole@lemmy.blahaj.zone
      10·
      4 months ago

      As someone who uses btrfs mostly (sometimes ext4, but I don’t really know why…), can someone explain the benefits of ZFS over the previous two I mentioned?

      • ZkhqrD5o@lemmy.world
        13·
        4 months ago

        The two biggest benefits are that it’s basically a finished implementation of btrfs (see data corruption in large pools and raid 5 and 6), as well as being able to encrypt and compress at the same time.

        Plus, and I don’t know if this is a ZFS-specific thing, being able to group disks into VDevs and not just into one big raid.

        • timbuck2themoon@sh.itjust.worksEnglish
          4·
          4 months ago

          Tbf, the one thing I find nice, at least for home users, is the ability to throw JBOD and it makes it all work. Less cumbersome for newcomers. Zfs needs disks of the same size or it will only group disks into a vdev and use the smallest of the disks for capacity.

          That said, I run zfs and no btrfs anywhere. Had high hopes for bcachefs but… That’s not going particularly well.

          • ZkhqrD5o@lemmy.world
            3·
            4 months ago

            Different tools, different jobs. On my computer I also use btrfs, but on the family archive server ZFS (TrueNAS Scale). Right tool for the right job.

        • prole@lemmy.blahaj.zone
          41·
          4 months ago

          Thanks for the info. Does ZFS allow for easy snapshotting like btrfs? Or like the stuff in the backend that allows you to do things like, say, edit a filename while the file is open?

          • WhyJiffie@sh.itjust.worksEnglish
            8·
            4 months ago

            edit a filename while the file is open?

            that should work on all filesystems on linux, shouldn’t it? linux keeps file handles by inode number, not filename. this is also the reason system updates can happen while everything is running, because replacing the open files is possible too, and the processes that opened it earlier keep seeing the old version of it

          • ZkhqrD5o@lemmy.world
            5·
            4 months ago

            Snapshots like btrfs, yes. But I think every copy-on-write system can do that. But I don’t know about the rest.

          • suicidaleggroll@lemm.eeEnglish
            3·
            4 months ago

            Does ZFS allow for easy snapshotting like btrfs?

            Absolutely

            edit a filename while the file is open

            Any Linux filesystem will do that

      • SwingingTheLamp@midwest.social
        4·
        4 months ago

        ZFS is more than just a filesystem, it’s a fully-integrated disk management system which replaces mdadm, LVM, LUKS, nfsd, rsync, as well as the filesystem. It’s great for NAS boxes and file servers, since you can give it a big pile o’ disks, and it slices and dices, and offers simple commands to create whatever volumes you need.

  • lunarul@lemmy.world
    72·
    4 months ago

    I zoomed in to read what they’re saying on the bottom right and was disappointed.

      • Petter1@lemm.ee
        21·
        4 months ago

        She: Btrfs snaps like a pro!

        Him: Like a file system should!

        • WhyJiffie@sh.itjust.worksEnglish
          41·
          4 months ago

          it doesn’t snap like a pro, though. I’m not a windows fan, but the NTFS snapshotting tech, the Volume Shadowcopy service on windows, notifies databases and whatever that is subscribed to it so that they can finish writing whatever is in the pipeline, and receive feedback from writers when they are done to know when to proceed.

          as I know, linux does not have such a mechanism. without it restoring a snapshot made on a running system is exactly like booting from a crash.

          sure better than nothing. but it’s not like a pro.

  • felbane@lemmy.world
    58·
    4 months ago

    That surgeon general’s warning sent me into a giggle fit.

  • brucethemoose@lemmy.world
    343·
    4 months ago

    IDK what they mean by better ssd I/O performance, btrfs was the worst FS I tested for some heavy SSD workloads (like writing thousands of little pngs in short time, file searches, merging huge weights with some paging)…

    The features are fantastic, especially for HDDs, but it’s an inherently high overhead FS.

    ext4 was also bad. F2FS and XFS are great, and I’ve stuck with F2FS for now.

    • renzev@lemmy.worldOP
      311·
      4 months ago

      idk man I just wanted to make a funny meme I’ve never run benchmarks myself and I just use btrfs for the features

    • Possibly linux@lemmy.zipEnglish
      1·
      4 months ago

      Really? I’ve found that btrfs is generally more performant than XFS

      • brucethemoose@lemmy.world
        1·
        4 months ago

        Yeah, it’s like night and day. btrfs and ext4 clog up and stall on the PNG workload, it’s why I switched in the first place.

        This is on a PCIe ssd though. On an HDD or maybe a big SATA drive, features probably win out over the overhead.

  • Possibly linux@lemmy.zipEnglish
    26·
    4 months ago

    What’s the problem with btrfs really?

    It is nice but it also feels like it is perpetually unfinished. Is there some major flaw in the design?

    • swab148@lemm.ee
      34·
      4 months ago

      Mostly just the RAID5 and 6 instability, it’s fantastic otherwise. But I’m kinda excited to try out bcachefs pretty soon, as well.

        • Trainguyrom@reddthat.comEnglish
          5·
          4 months ago

          Honestly, if it’s important enough to RAID, it’s important enough to do right and run full fat ZFS.

          You could also go the mdadm route with individual disks but ZFS pools are so battle-tested that whatever unholy edgecase you manage to create will almost certainly be something someone has encountered before, and it’s probably well documented somewhere how to recover from

        • az04@lemmy.world
          11·
          4 months ago

          I’m not an expert but I’d say mdadm with btrfs on top

      • Possibly linux@lemmy.zipEnglish
        21·
        4 months ago

        Isn’t bcachefs in danger of being removed from the kernel?

        • swab148@lemm.ee
          3·
          4 months ago

          Just gotta hope Kent gets his pull requests there in time lol

          • Possibly linux@lemmy.zipEnglish
            61·
            4 months ago

            The Linux kernel uses mailing lists so technically it is called a patch.

            I think the biggest issue was that Kent had/has a attitude problem. It feels weird to pick a fight with Torvalds since he is kind of known for destroying devs but Kent did it anyway.

    • enumerator4829@sh.itjust.worksEnglish
      202·
      4 months ago

      I’ve seen ZFS in production use on pools with hundreds of TBs, clustered together into clusters of many PBs. The people running that don’t even think about BTRFS, and certainly won’t actively consider it for anything.

      • BTRFS once had data corruption bugs. ZFS also had that, but only in very specific edge cases. That case was taken very seriously, but basically, ZFS has a reputation for not fucking up your bits even close to BTRFS
      • ZFS was built and tested for use on large pools from the beginning, by Sun engineers from back when Sun was fucking amazing and not a pile of Oracle managed garbage. BTRFS still doesn’t have stable RAID5/6.
      • ZFS send/recv is amazing for remote replication of large filesystems.
      • DRAID is kind o the only sane thing to do with todays disk sizes, speeds and pool sizes.

      But those are ancillary reasons. I’ll quote the big reason from the archwiki:

      The RAID 5 and RAID 6 modes of Btrfs are fatally flawed, and should not be used for "anything but testing with throw-away data”.

      For economic reasons, you need erasure coding for bigger pools, either classic RAID5/6 or DRAID. BTRFS will either melt your data in RAID5/6 or not support DRAID at all.

    • blackstrat@lemmy.fwgx.uk
      3·
      4 months ago

      The main one is how it handles corruption. It has actively been designed to do the exact opposite of what a sane filesystem should do and maximises downtime.

      • Possibly linux@lemmy.zipEnglish
        1·
        4 months ago

        It shouldn’t be that hard to patch it so that it works around failures. I’m not sure why that doesn’t seem to be a config setting.

      • Nonononoki@lemmy.world
        181·
        4 months ago

        LUKS encrypts the whole drive, native FS encryption can encrypt it partially (e.g. just the home partition). Additionally, decrypting without a keyboard is a pain or impossible (e.g. touch screen only devices).

        • Petter1@lemm.ee
          5·
          4 months ago

          PostmarkedOS was able to encrypt disk while offering on screen touch keyboard to unlock it on my pinePhone “pro”.

          • Natanael@infosec.pub
            9·
            4 months ago

            It does this by encrypting the OS separately from apps and user data. The OS is auto unlocked (usually using a hardware TPM chip).

        • prole@lemmy.blahaj.zone
          3·
          4 months ago

          I’m the furthest thing from an expert in linux encryption, but can you not use KDE’s “Vaults” feature to create encrypted folders/drives? I think it uses “CryFS” as the backend (according to KDE. Don’t really know enough about it).

          I’ve used them on my btrfs drive and seemed to work fine.

          • Natanael@infosec.pub
            8·
            4 months ago

            The boot order of the component which handle encryption has an effect on which other system components which reliably can be scripted to automate stuff with that data.

            Tldr if it’s just for your documents, sure. If you’ve got sensitive program data / config there, it makes it harder to autostart them because now you have to wait.

        • RichardTickler@lemmy.world
          2·
          4 months ago

          If the home/root partition is a physical or logical volume you most certainly can leave that decrypted while encrypting other volumes. The system could not boot if that were the case as the efi partition cannot be encrypted.

  • 4oreman@lemy.lolEnglish
    223·
    4 months ago

    your data will have the same fate as that baby

  • circuitfarmer@lemmy.sdf.org
    17·
    4 months ago

    The CoW nature of Btrfs means it’s often slower than ext4 for common tasks, right? It also means more writes to your SSDs.

    I’ve stuck to ext4 so far, as someone who doesn’t really have a need for snapshotting.

    Edit: I’m not an expert on file systems in the least, so do chime in if these assumptions are incorrect.

    • InverseParallax@lemmy.worldEnglish
      7·
      4 months ago

      Meh, ssds are basically cow by nature anyway, you have to erase large blocks, you can’t just rewrite into them.

      • circuitfarmer@lemmy.sdf.org
        1·
        4 months ago

        But if the file system needs extra writes anyway for CoW, and the SSD needs its own CoW, then wouldn’t that end up being exponential writes? Or is there some mechanism which mitigates that?

        • InverseParallax@lemmy.worldEnglish
          4·
          4 months ago

          The fs does cow then releases the old block if appropriate.

          The ssd has a tracking map for all blocks, it’s cow relies on a block being overwritten to free the old block.

          Basically it works out the same either way.

            • InverseParallax@lemmy.worldEnglish
              1·
              4 months ago

              It’s interesting, however, if you mkfs.ext4 without -E ssd, or through some weirdness in your driver chain the filsystem doesn’t know it can discard, then everything everywhere sucks for everyone, a cow fs is worse because no blocks are ever overwritten till the end, and the block map becomes a disaster while performance goes down the drain.

              Nowadays this rarely happens outside of very broken USB mass storage chips.

              This is why we used to have the fstrim command.

    • pogmommy@lemmy.mlEnglish
      23·
      4 months ago

      Breast, Thighs, and Ribs For Supper

    • bobs_monkey@lemm.ee
      18·
      4 months ago

      Buttered Toast and Recursive Folder Shenanigans

      • CriticalMiss@lemmy.world
        14·
        4 months ago

        Unfortunately, no. FOSS devs are notoriously known for picking bad names for their projects and BTRFS is no exception. The official name is Butter FS, likely because it’s supposed to make your experience smooth, yet anyone who tried to use its RAID5/6 implementations can tell you that it’s furthest from the truth.

        • WhyJiffie@sh.itjust.worksEnglish
          5·
          4 months ago

          its very truthful though. butter melts easily, like your data in RAID5/6 mode

  • AnimalsDream@slrpnk.netEnglish
    13·
    4 months ago

    I wish we could just get one good open, unified filesystem that all OS’s support. It sucks that if I want a usb drive to function on both Android and Linux, I have to format it to FAT. That pos fs can’t even store files over 4 gigs.

    I normally prefer copyleft licenses, but this is one case something more permissive seems appropriate.

    • MonkeMischief@lemmy.today
      10·
      4 months ago

      Honest question: I thought this limitation was the purpose of exFAT? 🤔

      I don’t use it much myself though so I’m not sure.

      • Goodtoknow@lemmy.ca
        7·
        4 months ago

        exFAT seems very fragile and likes to corrupt often, MacOS especially likes to break it

      • AnimalsDream@slrpnk.netEnglish
        3·
        4 months ago

        Maybe? All I know is the other day I used my Debian pc (gnome) to format a usb drive as fat, thinking that’d be the most compatible and hassle free fs for storing and transferring files. Then I got an error that I couldn’t store Champions of Norrath on it because it couldn’t store files over 4 gigs. So for now I just am using ext4.

    • swelter_spark@reddthat.comEnglish
      2·
      4 months ago

      Personally, I enjoy having multiple options and being able to choose what meets my needs best.

    • renzev@lemmy.worldOP
      2·
      4 months ago

      It’s a random 3d model I found on the internet haha. The “Southern Numeric” got a chuckle out of me as well XD