---
title: FSVolume.XattrHandler
framework: fskit
role: symbol
role_heading: Protocol
path: fskit/fsvolume/xattrhandler
---

# FSVolume.XattrHandler

Methods and properties implemented by volumes that natively or partially support extended attributes.

## Declaration

```swift
protocol XattrHandler : NSObjectProtocol
```

## Overview

Overview important: This protocol replaces the FSVolume.XattrOperations protocol. It exposes the same functionality, while using FSVolumeHandlerResult objects. These objects add the ability to reply with FSItem.Attributes and free space from the relevant methods.

## Topics

### Reading and writing

- [getXattr(named:of:context:replyHandler:)](fskit/fsvolume/xattrhandler/getxattr(named:of:context:replyhandler:).md)
- [FSGetXattrResult](fskit/fsgetxattrresult.md)
- [listXattrs(of:context:replyHandler:)](fskit/fsvolume/xattrhandler/listxattrs(of:context:replyhandler:).md)
- [FSListXattrsResult](fskit/fslistxattrsresult.md)
- [setXattr(named:to:on:policy:context:replyHandler:)](fskit/fsvolume/xattrhandler/setxattr(named:to:on:policy:context:replyhandler:).md)
- [FSVolume.SetXattrPolicy](fskit/fsvolume/setxattrpolicy.md)
- [FSSetXattrResult](fskit/fssetxattrresult.md)
- [supportedXattrNames(for:)](fskit/fsvolume/xattrhandler/supportedxattrnames(for:).md)

### Inspecting volume properties

- [xattrOperationsInhibited](fskit/fsvolume/xattrhandler/xattroperationsinhibited.md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Implementing optional handlers

- [FSVolume.OpenCloseHandler](fskit/fsvolume/openclosehandler.md)
- [FSVolume.ReadWriteHandler](fskit/fsvolume/readwritehandler.md)
- [FSVolume.AccessCheckHandler](fskit/fsvolume/accesscheckhandler.md)
- [FSVolume.RenameHandler](fskit/fsvolume/renamehandler.md)
- [FSVolume.PreallocateHandler](fskit/fsvolume/preallocatehandler.md)
- [FSVolume.ItemDeactivationHandler](fskit/fsvolume/itemdeactivationhandler.md)
- [FSVolume.KernelOffloadedIOHandler](fskit/fsvolume/kerneloffloadediohandler.md)
- [FSVolume.DataCacheHandler](fskit/fsvolume/datacachehandler.md)
- [FSVolume.SeekRegionHandler](fskit/fsvolume/seekregionhandler.md)
