# Apple文件系统apfs

从2017年开始，苹果发布了新的Apple File System，也称为APFS，作为iOS 10.3 和 macOS 10.12.4的默认文件系统。并且，所有的Apple Products都使用同一个文件系统，包括macOS, iOS, tvOS , watchOS。

APFS针对Falsh和SSD存储做了优化，替代了使用了超过30年的[Apple's HFS+](https://en.wikipedia.org/wiki/HFS_Plus)。

APFS提供了更好的[全盘加密功能](https://support.apple.com/kb/PH21750?locale=en_US\&viewlocale=en_US)，包括的改进有：

* [64位 inode值](https://developer.apple.com/library/prerelease/content/documentation/FileManagement/Conceptual/APFS_Guide/GeneralCharacteristics/GeneralCharacteristics.html)比原先HFS+的32位文件ID支持增强，可以支持单卷的极大存储。
* 提供了稀疏文件的存储节约功能，并使用copy-on-write元数据方案以避免文件系统crash时的安全性。

> APFS不支持[Apple's Fusion Drives](https://en.wikipedia.org/wiki/Fusion_Drive)，并且不能被OS X 10.11 Yosemite及之前版本支持。
>
> 无须重新安装操作系统，升级macOS时会自动转换文件系统到APFS

## 参考

* [Everything you need to know about the new Apple File System](http://www.cultofmac.com/435718/apfs-new-apple-file-system/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://huataihuang.gitbook.io/cloud-atlas-draft/develop/mac/apfs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
