FSVolume
A directory structure for files and folders.
Declaration
class FSVolumeOverview
A file system, depending on its type, provides one or more volumes to clients. The FSUnaryFileSystem by definition provides only one volume, while an FSFileSystem supports multiple volumes.
You implement a volume for your file system type by subclassing this class, and also conforming to the FSVolume.Handler and FSVolume.PathConfOperations protocols. This protocol defines the minimum set of operations supported by a volume, such as mounting, activating, creating and removing items, and more.
Your volume can provide additional functionality by conforming to other volume handler protocols. These protocols add support for operations like open and close, read and write, extended attribute (Xattr) manipulation, and more.
Topics
Creating a volume
Accessing volume properties
Implementing required handlers
Implementing optional handlers
FSVolume.OpenCloseHandlerFSVolume.ReadWriteHandlerFSVolume.AccessCheckHandlerFSVolume.RenameHandlerFSVolume.PreallocateHandlerFSVolume.XattrHandlerFSVolume.ItemDeactivationHandlerFSVolume.KernelOffloadedIOHandlerFSVolume.DataCacheHandlerFSVolume.SeekRegionHandler
Managing caching behavior
setCacheState(for:cacheMode:coherencyType:action:)FSItemFSVolume.DataCacheModeFSVolume.KernelCacheCoherencyTypeFSVolume.KernelCacheCoherencyAction