Skip to main content

Module defrag

Module defrag 

Source
Expand description

§File defragmentation: rewriting fragmented extents into contiguous runs

Defragmenting a file rewrites its extents contiguously on disk, which can improve sequential read performance. Optionally applies or removes transparent compression at the same time.

Structs§

CompressSpec
Compression specification for DefragRangeArgs.
DefragRangeArgs
Arguments for a defragmentation operation.

Enums§

CompressType
Compression algorithm to use when defragmenting.

Functions§

defrag_range
Defragment a byte range of the file referred to by fd.