Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

grahamperrin

macrumors 601
Jun 8, 2007
4,942
648
you always use the wayback page

Not always. I sometimes use it when there's certainty, or likelihood, of changes to the content and/or URL.

Please, let's keep this focused on discussion of AFPS and related file systems; not on people's styles of writing.
 

maflynn

macrumors Haswell
May 3, 2009
73,682
43,740
Please, let's keep this focused on discussion of AFPS and related file systems; not on people's styles of writing.
I'm not commenting on your writing style but rather the source of the information. I find thta posting a direct link does not obfuscate the discussion. With a direct link to apple its becomes more clearer which actually aides the discussion.
[doublepost=1466081750][/doublepost]
Seems like they forgot to change OS X to macOS in the warning
I'm sure there's quite a bit of loose ends in the beta that need to be tied up.

ZFS has nice features, but it's a RAM hog, and most feature are irrelevant in SSD's, and for single users. Also, dealing with Oracle can be troublesome, ask Google
Yes, I deal with Oracle all the time, thanks to their database, Fusion applications and PeopleSoft. Its not fun by any stretch of the imagination. I agree that Apple can roll out a file system that is attuned to today's needs, for single user computing, instead of using or altering a FS that was developed for servers.
 

grahamperrin

macrumors 601
Jun 8, 2007
4,942
648
Spotlight and SearchFS

SearchFS is one of three things that APFS will not support.

An Apple Developer retired document: searchfs(2) Mac OS X Developer Tools Manual Page

rdar://9991647: Sandbox entitlements: need support for FSCatalogSearch and searchfs (2011-08-20)

VNOP_SEARCHFS · Issue #100 · openzfsonosx/zfs (2013-11-28) – fairly non-trivial.

Last but not least, from FS Search Xsan 2.2 | Xsanity (2009-09-22):

… Spotlight supports 4 "search levels":
  • None (no searching is performed)
  • FS Search (searches against file system attributes only)
  • Read-only index (searches against a Spotlight index, index is not maintained for file system changes)
  • Read-write index (searches against a Spotlight index, index is maintained for file system changes)

… special high-speed file system attribute searching capability … Xsan 2.0 added some basic support for searchfs(), and Xsan 2.2 expanded this support to include essentially all of the attributes that Spotlight can search against.

… perform basic Finder searches (e.g. name, modification date, etc.) even on Xsan volumes that have Spotlight indexing disabled. …

Now – without focusing on Xsan – think about encrypted metadata and user-friendly indexing of data that is (or will become) non-local through Apple's optimised storage.​
 

haravikk

macrumors 65832
May 1, 2005
1,501
21
I'm kind of warming to the file-system; I mean, I'd have preferred it if Apple had forked BTRFS and added encryption and other improvements to that, since BTRFS has some major performance benefits over ZFS while also being a fully copy-on-write file system (which is a big benefit for snapshots, I'm not clear on how APFS is handling these when only filesystem metadata is mentioned as being copy-on-write).


Other than Snapshots, which I assume are destined for a better version of Time Machine, I'd say Space Sharing is one of the most interesting improvements. It means that each user account can be on its own file-system while sharing the space of a single disk (maybe we'll get some kind of quota support too?), this means accounts can be encrypted individually. Not sure whether Time Machine will backup the encrypted data with some awareness of which blocks were changed at that level, or if maybe the user's key will remain available after they logout so the system can run a quick backup of their account before discarding the key till they log back in (since if they're logged out it's unlikely anything in their folder will be changing ;))

This is also good because it means that an erase and install needn't wipe user data anymore if the OS itself goes into its own file-system as well.

Hell, it could greatly simplify containers too if there's some way to put apps into individual file-systems yet let them see files from another (read-only) one. Could be good for security too if the entire OS file-system is made read-only with a separate location for cache folders and such.


Just thinking out loud, but the ability to add file-systems into a shared space has a lot of potential, even if we have to set some of it up ourselves.
 

grahamperrin

macrumors 601
Jun 8, 2007
4,942
648
… a fully copy-on-write file system (which is a big benefit for snapshots, I'm not clear on how APFS is handling these when only filesystem metadata is mentioned as being copy-on-write). …

As far as I recall, CoW in APFS is not limited to metadata. If it's not clear in the 160-page PDF from WWDC Session 701 then it should be clear from listening to Giampaolo and Tamura.

… whether Time Machine will backup the encrypted data with some awareness of which blocks were changed at that level, …

It may help to get your head around:
  • per-extent encryption; and
  • the singular approach to metadata when multi-key encryption is used; see around page 119 of the PDF.
(I don't expect to get a proper understanding of the whole caboodle … I occasionally read between the lines based on what I read in 2013. I'll welcome corrections to my guesses; authoritative references will be ideal, but those may be difficult to find so soon after Apple's announcements.)

… if the OS itself goes into its own file-system …

When macOS gains the ability to boot from APFS (I should not expect that from any 2016 release, assume that it'll be a feature of 10.13) I expect that a variety of file systems, with diverse qualities, will be mounted to form a hierarchy of folders that will be familiar to users of the operating system.

Consider the proven PC-BSD approach –

Code:
$ freebsd-version ; uname -a ; beadm list
11.0-CURRENTJUNE2016
FreeBSD hpelitebook850g2-pcbsd.university.brighton.ac.uk 11.0-CURRENTJUNE2016 FreeBSD 11.0-CURRENTJUNE2016 #3 ee1d9a2(linux-drm-4.6): Wed Jun  8 16:52:23 UTC 2016     root@devastator:/usr/obj/usr/src/sys/GENERIC  amd64
BE                                      Active Mountpoint  Space Created                 Nickname
11.0-CURRENTMAY2016-up-20160531_082033  -      -           47.8M 2016-05-31 08:20        20160531_082010
11.0-CURRENTJUNE2016-up-20160609_161213 -      -            4.2G 2016-06-09 16:10        11.0-CURRENTJUNE2016-up-20160609_161213
11.0-CURRENTJUNE2016-up-20160609_165742 NR     /           20.0G 2016-06-09 16:56        11.0-CURRENTJUNE2016-up-20160609_165742
11.0-CURRENTJUNE2016-up-20160610_163846 -      -          972.0M 2016-06-10 16:37        11.0-CURRENTJUNE2016-up-20160610_163846
11.0-CURRENTJUNE2016-up-20160616_004107 -      -          834.0M 2016-06-16 00:38        11.0-CURRENTJUNE2016-up-20160616_004107
11.0-CURRENTJUNE2016-up-20160616_091805 -      -            5.4G 2016-06-16 09:15        11.0-CURRENTJUNE2016-up-20160616_091805
$ zfs list
NAME                                                USED  AVAIL  REFER  MOUNTPOINT
persona_gjp4                                       12.5G  15.9G  10.7G  /usr/home/gjp4
tank                                               52.9G   838G    96K  none
tank/ROOT                                          31.1G   838G    96K  none
tank/ROOT/11.0-CURRENTJUNE2016-up-20160609_161213  4.12G   838G  12.1G  /
tank/ROOT/11.0-CURRENTJUNE2016-up-20160609_165742  20.0G   838G  14.5G  /
tank/ROOT/11.0-CURRENTJUNE2016-up-20160610_163846   824M   838G  13.6G  /
tank/ROOT/11.0-CURRENTJUNE2016-up-20160616_004107   824M   838G  14.4G  /
tank/ROOT/11.0-CURRENTJUNE2016-up-20160616_091805  5.30G   838G  13.6G  /
tank/ROOT/11.0-CURRENTMAY2016-up-20160531_082033   8.95M   838G  13.8G  /
tank/tmp                                            388K   838G   388K  /tmp
tank/usr                                           13.4G   838G    96K  none
tank/usr/home                                      2.57G   838G    96K  /usr/home
tank/usr/home/bbsadmin-l                           2.56G   838G  2.56G  /usr/home/bbsadmin-l
tank/usr/home/gjp4                                 4.16M   838G  4.16M  /usr/home/gjp4
tank/usr/jails                                       96K   838G    96K  /usr/jails
tank/usr/local                                      317M   838G    96K  none
tank/usr/local/share                                317M   838G    96K  none
tank/usr/local/share/doc                            317M   838G   317M  /usr/local/share/doc
tank/usr/obj                                         96K   838G    96K  /usr/obj
tank/usr/ports                                     10.5G   838G  10.5G  /usr/ports
tank/usr/src                                         96K   838G    96K  /usr/src
tank/var                                           8.37G   838G    96K  none
tank/var/audit                                       96K   838G    96K  /var/audit
tank/var/log                                        469M   838G   469M  /var/log
tank/var/mail                                      8.46M   838G  8.46M  /var/mail
tank/var/tmp                                       7.90G   838G  7.90G  /var/tmp
$

That's six boot environments (BEs), four of which are significantly bugged so I currently prefer the second one that was created on 9th June.

The output from 'zfs list' puts those BEs in context.
 

grahamperrin

macrumors 601
Jun 8, 2007
4,942
648
… ZFS style data-integrity (block checksums) since you don't need to know what the data is to check that it is unchanged and/or self-heal it, still no sign of this though …

Thanks! Given all the talk about crash protection, transactions, safe-save for directories, CoW and so on … I spent the last three days assuming that APFS would be reslient by design. (Not as resilient as a well-configured ZFS pool, but more resilient than Microsoft's default for ReFS … if that makes sense.)

So this came as a surprise:

fsck_apfs (APFS File System Check/Repair)

https://forums.developer.apple.com/thread/49032#144584 a mention of fsck_apfs finding errors with a volume.

From a more recent example:

Code:
darkstar:~ root# fsck_apfs /dev/disk4s2s1
** Checking volume.
** Checking the container superblock.
** Checking the space manager.
** Checking the object map.
** Checking the APFS volume superblock.
** Checking the object map.
** Checking the fsroot tree.
** Checking the extent ref tree.
** Checking the snapshot metadata tree.
** Checking the snapshots.
fsck_apfs: btree: invalid btn_btree.bt_longest_val (0), given btn_btree.bt_fixed.bt_val_size
  Space Verification failed.
** The volume /dev/disk4s2s1 could not be verified completely.

I wonder whether things such as checks of integrity and avoidance of errors will fall under the umbrella of extensibility …
 
Last edited:

grahamperrin

macrumors 601
Jun 8, 2007
4,942
648
APFS in Detail by Adam Leventhal:
  1. Overview
  2. Encryption, Snapshots, and Backup
  3. Space Efficiency and Clones
  4. Performance
  5. Data Integrity
  6. Conclusions
I'll edit this post to include quotes, thoughts and observations.

Open source

… Webkit, Swift, LLVM, CUPS … open sourced and worked out well. …

We need an open source filesystem. …

Seemingly, Apple plans the make the file system open source at some point, but the wording is ambiguous …

Open source: doubts and P-words

Leventhal:

… I don’t expect APFS to be open source at this time or any other, but prove me wrong, Apple. …

Don Brady (one of the people who were invited to comment on Leventhal's draft):

Apple Proprietary File System (APFS) …

I imagine eyebrow-raising Private comments, in closed source, around Peculiarities of some of the things that expect HFS+ …
and at least one such thing is an Apple technology. At this time I'll not name that thing; someone else might.

All things considered: whilst I would like Apple to prove us wrong, I don't expect the company to make open its source code for APFS. Time will tell.

(My imagination is sometimes too wild. When I look at a part of the code for OpenZFS that might have included a vaguely derogatory comment about a peculiarity of that Apple technology, neither that code nor its commit raises an eyebrow. There's also no reference to my related bug report, which makes the commit both professional and concise.

As lundman does open, professional and concise :) so I hope that Apple will combine those three things …)
 
Last edited:

Tech198

Cancelled
Mar 21, 2011
15,915
2,151
U'r always gonna see this hand-in-hand type File-system

SSD's come along to replace hard drives - While an advantage, the next OS which has full support for SSD as a standard will be optimized for flash storage.... and faster (presume) noticeable, than one OS (like Yosemite) that is not.

Weather they'll be tests proving that, I think they will be tests done..

Hell, it could greatly simplify containers too if there's some way to put apps into individual file-systems yet let them see files from another (read-only) one. Could be good for security too if the entire OS file-system is made read-only with a separate location for cache folders and such.

You mean like dragging files in and out of images, .pkg files etc and/or create files/folders inside of already created images?

This, i assume could mean the images could be dynamically resized on the fly based on the content added or deleted within them without trashing everything and creating a new image from scratch. Which could be very time consuming if u'r just make and 10+ Gig image size and forgot to add one extra folder.
 
Last edited:

grahamperrin

macrumors 601
Jun 8, 2007
4,942
648
… ZFS likes lots of memory

That's not a necessity. Recall that Apple ran ZFS on iPhone in 2009 when (according to Wikipedia) the 3GS had 256 MB DRAM.

… I don't think features like end-to-end checksums (for assuring the correctness of one's data) are irrelevant for SSDs or single users. I don't know about you, but I highly value the integrity of my data! …

+1

Imagine a mass market (of Mac users) gaining the ability to discover – with ease – corruption of data on disks that were previously apparently OK. The ire of some of those users.

It's possible for a drive to appear error-free with a check such as this –

– but an error-free check of all blocks is not a guarantee that data is free from errors.

That's not a criticism of Drive Genius. It's to emphasise the value of checksummed data.
 

Tech198

Cancelled
Mar 21, 2011
15,915
2,151
That's not a necessity. Recall that Apple ran ZFS on iPhone in 2009 when (according to Wikipedia) the 3GS had 256 MB DRAM.



+1

Imagine a mass market (of Mac users) gaining the ability to discover – with ease – corruption of data on disks that were previously apparently OK. The ire of some of those users.

It's possible for a drive to appear error-free with a check such as this –

– but an error-free check of all blocks is not a guarantee that data is free from errors.

That's not a criticism of Drive Genius. It's to emphasise the value of checksummed data.


I can't imagine it.
 

RichTeer

macrumors member
Aug 13, 2014
93
188
Kelowna, BC, Canada
That's not a necessity. Recall that Apple ran ZFS on iPhone in 2009 when (according to Wikipedia) the 3GS had 256 MB DRAM.

I'm not saying you're wrong, but I had no idea ZFS ran on the old iPhones (back in 2009 I was deep in Solaris-user land: no Mac, no iPhone)! I do remember ZFS being on Mac OS Leopard though; I even played with it a bit on my wife's MacBook Pro.
 

Malus120

macrumors 6502a
Jun 28, 2002
697
1,457
Question. How would Apple (or how does ZFS) implement data integrity checks on machines with only a single physical drive? And even if the integrity check comes up bad how would you correct the data with only one drive?

IMO as long as these features require some kind of RAID like setup, I can't see it being a high priority for Apple. The only thing I could think of would be to do checks via some future version of time machine although I have no idea how it would work.
 

grahamperrin

macrumors 601
Jun 8, 2007
4,942
648
I can't imagine it.

@Tech198 please, what can you not imagine? (There were multiple points in what you quoted.)

… I had no idea ZFS ran on the old iPhones …

Adam Leventhal's blog » ZFS: Apple’s New Filesystem That Wasn’t – mentioned in his blog post, and elsewhere.

… data integrity checks on machines with only a single physical drive? how would you correct the data …?

Metadata: redundancy is the norm, and may allow repairs to be automated during a routine scrub. I have a very recent example (for now, I refrain from sharing the details).

Data: the number of copies can be 1, 2 or 3. Plus snapshots, and a common sense backup routine that stores data away from the single drive. Where that common sense applies: 1 should suffice, no copies. https://duckduckgo.com/?q="ZFS+set+copies=1" leads to some pages where copies are described as ditto blocks.

If there's no recent backup, then local snapshots may include a recent, scrubbed, error-free version of the data.

… IMO as long as these features require some kind of RAID like setup, I can't see it being a high priority for Apple. …

It's a glaring omission – "ire to data integrity" and so on.
 
Last edited:

rnbwd

macrumors regular
Jul 6, 2015
111
38
Seattle
We need an open source filesystem. exFat is unreliable (constantly screws up). 4gb files are becoming common and sharing them is becoming a pain in the ass.

Perhaps Apple should make HFS an open filesystem once thew new one is released?

There are plenty of open-source filesystems, but the problem is that neither OS X nor Windows supports them. Limitations of exFat are known, that FS is not suitable for any serious purpose.

During the session they said apfs will be released open source when it's finished in 2017.

A new filesystem is loooong overdue, bit of a shame Apple chose to reinvent the wheel rather than adopt ZFS. This was the perfect opportunity to switch to ZFS, and it looks like they're gonna blow it. Arrogance and NIH syndrome. Kinda sad, really...
[doublepost=1465917294][/doublepost]

Agreed; it's a shame that Apple didn't adopt ZFS. I don't trust my data to ANY other file system.

Again, during the session they mentioned why they didn't use ZFS - but it seems very similar. I think - based on the coding sessions - that the programming patterns they're encouraging developers adopt would be optimized by the apfs. There's a also a few differences with ZFS, but they're not trying to create a general fs that runs on 3rd party hardware. They're designing this for their own hardware and software - not optimized for generic use cases - so it's different, like everything else...
 

Malus120

macrumors 6502a
Jun 28, 2002
697
1,457
@Tech198 please, what can you not imagine? (There were multiple points in what you quoted.)



Adam Leventhal's blog » ZFS: Apple’s New Filesystem That Wasn’t – mentioned in his blog post, and elsewhere.



Metadata: redundancy is the norm, and may allow repairs to be automated during a routine scrub. I have a very recent example (for now, I refrain from sharing the details).

Data: the number of copies can be 1, 2 or 3. Plus snapshots, and a common sense backup routine that stores data away from the single drive. Where that common sense applies: 1 should suffice, no copies. https://duckduckgo.com/?q="ZFS+set+copies=1" leads to some pages where copies are described as ditto blocks.

If there's no recent backup, then local snapshots may include a recent, scrubbed, error-free version of the data.



It's a glaring omission – "ire to data integrity" and so on.

First, thanks for the detailed and informative reply. It's great to know that integrity could be achieved without relying on raid like technologies.

I do wish you hadn't missed quoted me there at the end though.

If you reread the sentence in full, I think it's obvious that I meant that IF data integrity relies on RAID like technologies, I can't see it being a high priority for Apple (because most of their machines/devices don't ship in a RAID capable configuration, and most consumers don't want that kind of complexity).

If you're correct and it does not require this kind of setup then I would agree that it does seem like a rather disappointing omission AT THIS TIME. As there is still a year before release and we haven't seen the new backup solution I think there's still plenty of potential for it to come up
 
  • Like
Reactions: grahamperrin

leman

macrumors Core
Oct 14, 2008
19,530
19,709
If you reread the sentence in full, I think it's obvious that I meant that IF data integrity relies on RAID like technologies, I can't see it being a high priority for Apple (because most of their machines/devices don't ship in a RAID capable configuration, and most consumers don't want that kind of complexity).

RAID and FS-level integrity checking have nothing to do with each other. RAID is usually an additional, lower level (although some FS implement RAID as part of their features — but we both can agree that its too much unnecessary complexity). I am running several RAID storage units with our Mac Server and i'd love to have some additional data protection in a form of FS-level autocorrecting codes. The more protection layers there is the better.
 
  • Like
Reactions: grahamperrin

grahamperrin

macrumors 601
Jun 8, 2007
4,942
648
… I do wish you hadn't missed quoted me there at the end though.

If you reread the sentence in full, …

My apologies to all readers, I did not intend to misleadlead or mis-quote. (With the ellipses '…' and the link, I imagined that people would read the linked original). @Malus120 I have edited the quote to include both ends of your sentence.

During the session they said apfs will be released open source when it's finished in 2017. …

I recall talk of things such as documentation becoming open but – unless I missed something – no clear indication, from Apple, that the source code will be open. From Leventhal's conclusion: "… I don’t expect APFS to be open source at this time or any other, but prove me wrong, …"; and Giampaolo thanked Leventhal for even-handedness and correctness.
 

grahamperrin

macrumors 601
Jun 8, 2007
4,942
648


Sierra

… They want Sierra to be the first one that future versions of APFS containers can be used on.

The session also confirmed that Apple will convert everyone to APFS sometime next year.

You can see it here: https://developer.apple.com/videos/play/wwdc2016/701/


El Capitan

… Please: does that mean that whilst El Capitan will gain support for APFS, Apple will not (or can not) guarantee that El Capitan will gain support for all future extensions to the file system?

I did listen …

From a topic about future updates to El Capitan, with the author's emphasis on APFS and El Capitan:

Read it again:
...
> Compatibility
> ...
> - APFS-formatted volumes are not recognized in OS X 10.11 El Capitan and earlier.
> ...

That's the current situation.
 

grahamperrin

macrumors 601
Jun 8, 2007
4,942
648
Some milestones

Possible chronological order:
  1. APFS developer preview in pre-release 10.12
  2. APFS developer preview in the first release of 10.12
  3. APFS developer preview or beta in pre-release 10.13, to include boot from APFS
  4. APFS in the first release of 10.13
  5. APFS to ship (first release) in 2017
  6. APFS to be the default file system for all Apple products, although I don't yet know whether, or how, Time Capsule will transition to APFS
  7. 10.11.x to gain support for APFS data volumes.
@KALLT would you expect a similar order?

I expect 4, 5 and 6 to be broadly coincidental – around the same time of year, not necessarily the same date.

For the operating systems that are commonly associated with Apple

I can't imagine APFS as a default for any release of iOS, tvOS or watchOS before it becomes the default for a release of macOS. Whilst the file system might become release-quality for any/all of the first three before macOS, strategically it will make sense for Apple to not formally release APFS until it's perceived to be of suitable quality for all four operating systems. (Some Mac users are pleasingly difficult to please … to be treated as second-, third- or fourth-rate after waiting so long for a good storage system would cause a mild outcry.)

Those four aside

http://apple.stackexchange.com/a/106026/8546 shows that Time Capsule runs NetBSD.
 

chrfr

macrumors G5
Jul 11, 2009
13,729
7,303
The time capsule doesn't need to directly support APFS, given that the computer being backed up creates a disk image on the Time Capsule's disk. The internal format of the disk image is invisible to the Time Capsule and so as long as macOS continues to support backup via AFP, there should be no change needed for a Time Capsule. Alternatively, it's not difficult to imagine that Apple simply opts to make all existing Time Capsules obsolete by the time 10.13 ships. Given that a transition toward completely removing AFP is underway, this would not be particularly surprising.

10.11.x to gain support for APFS data volumes.
Given previous patterns, Apple will transition 10.11.x to security updates only next month when 10.12 is released. HFS+ support is very likely to remain in macOS for many years; what possible reason would lead you to believe that 10.11.x would receive APFS support? (With Apple providing written documentation as quoted above that APFS support is not in 10.11.x, the verbal statement made at WWDC regarding the lack of APFS support in 10.10.x and older must be considered an inadvertent misstatement.) The oldest computers which can run 10.12 is currently 7 years old, and will be 8 years old when 10.13 is released. Apple will never back port APFS to computers which are unable to run 10.12.
When Apple introduced HFS+ with Mac OS 8.1, there was no provision for Macs which couldn't run 8.1 to access these volumes and it's only recently that support for original HFS volumes was removed from OS X. Precedents are established for Apple's handling of file system changes.
 
Last edited:

T'hain Esh Kelch

macrumors 603
Aug 5, 2001
6,485
7,460
Denmark
Why would they have to if APFS goes open source? Surely it will become available anyway quite quickly from people with the interest in porting it.
 

grahamperrin

macrumors 601
Jun 8, 2007
4,942
648
… if APFS goes open source…

That's probably the greatest unknown, and I'm with Leventhal – don’t expect APFS to be open source at this time or any other, but prove me wrong, Apple.

… the computer being backed up creates a disk image …

Imagine a future Time Machine server device from Apple running an operating system other than NetBSD; running an OS with native support for APFS.

If that will happen then (as with OS X Server) there will be no need for the Mac OS X client to use hdiutil(1).

… what possible reason would lead you to believe that 10.11.x would receive APFS support? (With Apple …

Nothing written or spoken by Apple (or shouted in red text) goes against the expectation that 10.11.x will gain limited support for APFS.

Anyone:
  1. imagine being a user of one of the thousands of Macs that will not run 10.12
  2. also, imagine running 10.10.x on that Mac
  3. finally, imagine some time in 2017, receiving a disk that was formatted by 10.13.
You may:

a) dislike the incompatibility (and maybe have notions of planned obsolescence by Apple); or

b) accept Apple's free upgrade to 10.11 …
 

leman

macrumors Core
Oct 14, 2008
19,530
19,709
Imagine a future Time Machine server device from Apple running an operating system other than NetBSD; running an OS with native support for APFS.

What is relevant to the backup process is the communication protocol, not the file system. Having native support for APFS does not mean that the system supports TM backups.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.