198 points · by sebiw · 7y ago · 187 comments
That said, I don't understand the use case for firm links. Seems like the problem it's trying to solve can just be solved with simple mount points: mounting read-write /Users and /usr/local. Am I missing something?
"Traditionally, it was done by mounting file systems on top of directories in the root file system. With the number of crossing points which we need to introduce and the number of volumes which it would require in the file system, that approach becomes rather expensive."
/AppleInternal Device/AppleInternal
/Applications Device/Applications
/Library Device/Library
/System/Library/Caches Device/System/Library/Caches
/System/Library/Assets Device/System/Library/Assets
/System/Library/PreinstalledAssets Device/System/Library/PreinstalledAssets
/System/Library/AssetsV2 Device/System/Library/AssetsV2
/System/Library/PreinstalledAssetsV2 Device/System/Library/PreinstalledAssetsV2
/System/Library/CoreServices/CoreTypes.bundle/Contents/Library Device/System/Library/CoreServices/CoreTypes.bundle/Contents/Library
/System/Library/Speech Device/System/Library/Speech
/Users Users
/Volumes Device/Volumes
/cores Device/cores
/home Device/home
/mnt Device/mnt
/opt Device/opt
/private Device/private
/sw Device/sw
/usr/local Device/usr/local
/usr/libexec/cups Device/usr/libexec/cups
/usr/share/snmp Device/usr/share/snmpHaven't watched the video yet, so I'm speculating. We know APFS doesn't support directory hard links, which means Time Machine can't back up to APFS. I'm guessing firm links are designed to fix this problem (perhaps among others).
I also suspect that will launch 'soon' (after September but possibly in March) , but I have to imagine the complexity and testing requirements for such a in-place migration are staggering.
And the only alternative I hear recommended is xfs which is also around forever but not advanced, zfs is license restricted and btrfs isn't widely used enough to consider using it daily.
It's sad Linux is still stuck with basic file systems without any of the modern features to this day even though there must be huge demand for a more modern file system that can go with kernel GPL2.
ZFS send/receive style volume serialization for replication backup, etc. File system snapshot support included.
iOS or should I say iPadOS supports external USB media and SMB.
What seems to be missing is block level checksumming and integrity checks, scrubbing, block level duplication to protect important files, etc. No whiff of deduplication either, but that might be too memory intensive for Apple's purposes.
However it is often great for virtual machines and other software development related things, as long as all the underlying block sizes and alignments match.
You really do want strong integrity guarantees though. One corrupted block can cause a lot of damage.
In any case, dedup just makes things more confusing to the customer— like, "you have X GB in files on your computer, but more than N-X GB free space because of magical deduplication." Or worse, "You deleted all those files, but didn't actually free up any space because they were dupes. So sad."
For anyone who has ever heard of checksums this makes APFS a no-go of course.
What about ext4? Oh wait - no file data checksums - so a "no go".
Actually, it turns out plenty of folks have built plenty of storage on these platforms - including APFS.
In particular, for APFS, apple uses ECC for all hardware, uses fletcher checksums for metadata and I believe does a copy on write approach to help handle sudden power loss events etc. It seems to be working out OK for them given the prices they charge.
I'm generally more worried about an SSD falling over entirely - so focus is on duplication (raid with hot spare -> offsite S3 backup).
This is one that does it with CRC32, which may or may not be sufficient for detecting bitrot. It is probably trivial to modify to support a stronger hash.
Flash controllers reserve a certain amount of blocks for CRC and check summing, so flash is much more intelligent and knowledgeable than it seems.
The trash isn't magic. You delete stuff, it goes into the Trash. The Trash is represented by a ".Trashes" directory on removable media. You can delete it manually or just empty the trash.
Wait, what? Even with SIP off?
Can it be disabled from within the OS? Can I add "command-to-make-system-rw" to a launchd plist that runs at load on my machine?
The default should be a restricted system, with intentional, temporary, jumps into unrestricted access for making whatever infrequent system configuration changes.
What’s the use case for constant RW access? What changes at this level so frequently?
Except that those system files are already protected behind root privileges, so they're only read-write if I have root. And, one reason the root privilege system works is because temporarily gaining root when necessary isn't painful.
I indeed don't change root files on a daily basis, but when I do, I don't want to have to go through an extended rigamarole every single time. Typing in my password should be enough.
I totally respect that Apple wants to keep normal users out of this stuff. I just want a way to remove the safety wheels one time, instead of again and again.
I suspect you can do that in a launchd script, but however much more involved it is than typing my password, I'm probably fine with leaving it as-is.
ro means no matter what I try, that file is ro unless the fs is remounted rw. Again, it doesn't negate file system level user/group permissions. and remounting a system level partition rw isn't something I'd do on a whim.
I like the idea of a ro partition for system level OS files, personally, but without user level access somehow - it's not something to be looked forward to.
Apple is clearly stating that the user will have access, so I'm not concerned on that front.
What bothers me is the "will revert to read-only after a reboot" part, which seems unnecessarily punitive. It's like Apple is saying "We're going to let you do this thing, but we don't like it, so we're going to make you redo it every single time to remind you of our disdain."
Elsewhere in this thread, Pwinnski said he likes having an extra, persistent safety check. I think that's great. But, an extra command line flag to make the setting persistent really shouldn't be too much to ask for.
If my launchd idea works in practice, this is all moot, and I retract all my complaints. I'm just nervous.
The symptoms are the system becomes almost totally unresponsive for up to 5 minutes to the point where you can't even drag and drop an existing window sometimes.
* mmap doesn't really work well on 64 bit systems * mmap will block if it has to page data in from a file * there are ten different backends to handle layering on Docker and that simple fact implies that none of them are good; if you could compose layers arbitrarily the speed and scalability of Docker would be in a different league than it is now, but you can't. So Docker is just as easily something that slows you down as speeds you up. * Filesystem metadata scans are slow, shockingly so on Windows.
I know I like developing with S3-style object stores. To some extent this can replace the traditional filesystem, in other ways it can't.
overlay2 is fast, it's in the mainline kernel, and it's now the default for new Docker installs. I expect all the devicemapper / aufs mess to be history soon.
I've been fighting to be productive on my iPad, and currently that takes the form of a remote terminal.
I've been craving the ability to run a proper Unix shell locally.
I’ve heard people speculating about “Xcode on iPad within a few years” since Swift Playgrounds was released. Hopefully it’s closer now, but I’m still skeptical.
[1] https://blink.sh
They have a lot of deep time machine integration in other parts of the system, so I suspect the staging of the projects means it is pushed off to sometime next year.
As a perverse experiment, do we know what happens if you take an APFS SSD and try to format it as a TM volume? Guessing it's still not pretty despite the fact that HDD's under APFS are PNG, but directory hardlinks are gone.
Does it work, but just fill up the disk - no deduping?