Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Mounting APFS Fusion Drive? #4

Open
xcvista opened this issue Aug 4, 2020 · 7 comments
Open

Mounting APFS Fusion Drive? #4

xcvista opened this issue Aug 4, 2020 · 7 comments

Comments

@xcvista
Copy link

xcvista commented Aug 4, 2020

Is it possible to mount an APFS Fusion Drive using this yet? You may want to look into how bcache implemented the binding of two devices into one for its cache system.

p.s. This is AFAIK the only Linux kernel filesystem module that supports easy automatic tiered filesystem, and it also have good feature parity with btrfs (too bad btrfs lacked tiering - it even struggles on top of bcache.) When this matures to the point of supporting both read/write access and Fusion Drive, I would seriously consider migrate my Linux boxes to this, as all of them have hybrid SSD and HDD setups, and bcache is wasteful for medium capacity SSD's.

@eafer
Copy link
Member

eafer commented Aug 5, 2020 via email

@ghost
Copy link

ghost commented Aug 5, 2020

Continuing on what eafer said, it's not really "safe" to write to a filesystem if it's proprietary. That's why NTFS support on linux is so limited--we've had over 2 decades to RE it and have pretty good support, but I haven't seen any single driver/module/program that mounts NTFS with rw support, at least on Arch Linux. I believe there is one for some other distro, but even that is still limited. It's just because we don't know the EXACT way Windows does it, so it's hard to know if it even works, and it could screw the whole drive up.

So take that and apply it to APFS. Existed for <5 years or something, and the FS for a much less-used system. Because of the limited amount of care for it and it being so young, things like this are still SUPER experimental.

So TLDR reverse engineering something like a filesystem is really hard, and dangerous too. Since it's not the exact intended way to do things, writing to them is dangerous. Yeah.

@RJVB
Copy link

RJVB commented Aug 6, 2020

Not to contradict you, but there's a commercial product that provides native-speed read-write support for NTFS, HFS+ and now APFS, written by Paragon. I've been using their free Linux version of the NTFS+HFS kmod for years now and never had any real issues with it (in terms of filesystem corruption). Their HFS+ implementation doesn't support compression, I don't know about the APFS driver.

I've never heard of tiered filesystems, isn't that something you could do with ZFS? ZFSonLinux is stable and widely used. It can definitely be set up to combine the strengths of SSDs and HDDs.

@ghost
Copy link

ghost commented Aug 7, 2020

I've never heard of that. I've got a APFS filesystem available, if you could provide a link that'd be cool

@RJVB
Copy link

RJVB commented Aug 7, 2020 via email

@xcvista
Copy link
Author

xcvista commented Aug 8, 2020

I've never heard of tiered filesystems, isn't that something you could do with ZFS? ZFSonLinux is stable and widely used. It can definitely be set up to combine the strengths of SSDs and HDDs.

@RJVB ZFS requires a lot of configuration, and is not bootable AFAIK even with an ext4 /boot partition. APFS tiering is pretty much painless and configuration-free.

@RJVB
Copy link

RJVB commented Aug 8, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants