DEFRAG
Inspects, pauses or resumes defragmentation maintenance.
Server & administration · Example verified
Syntax covered here
DEFRAG STATUS | DEFRAG PAUSE | DEFRAG RESUMESTATUS is bulk text, not an array; the case checks that PAUSE changes paused from 0 to 1, then issues RESUME.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> DEFRAG STATUS
"paused=0 max_active_per_device=8 block_sleep_ms=0 record_sleep_us=0 active_total=0 pending_total=0"
# connection: default
> DEFRAG PAUSE
"OK"
# connection: default
> DEFRAG STATUS
"paused=1 max_active_per_device=8 block_sleep_ms=0 record_sleep_us=0 active_total=0 pending_total=0"
# connection: default
> DEFRAG RESUME
"OK"