Expand description
§Device replacement: replacing a device with another while the filesystem is online
A replace operation copies all data from a source device to a target device, then swaps the target into the filesystem in place of the source. The filesystem remains mounted and usable throughout.
Requires CAP_SYS_ADMIN.
Structs§
- Replace
Status - Status of a device replace operation, as returned by the status query.
Enums§
- Replace
Source - How to identify the source device for a replace operation.
- Replace
Start Error - Result of a replace start attempt that the kernel rejected at the
application level (ioctl succeeded but the
resultfield indicates a problem). - Replace
State - Current state of a device replace operation.
Functions§
- replace_
cancel - Cancel a running device replace operation on the filesystem referred to
by
fd. - replace_
start - Start a device replace operation, copying all data from
sourceto the target device attgtdev_path. - replace_
status - Query the status of a device replace operation on the filesystem referred
to by
fd.