linux_disk_usage_calculator
Parse du and df outputs, compute RAID capacity, plan disk partitions, generate find commands, and format byte counts in IEC or SI units.
Instructions
Linux Disk Usage And RAID Calculator. Six pure-arithmetic disk operations selected by the operation field. parseDu parses pasted du output into entries with byte sizes, depth, and a total; parseDf parses df output into filesystems with size/used/available bytes and use percent; raidCalculator computes usable bytes, redundancy overhead, and fault tolerance for a RAID/RAIDZ level; partitionPlanner allocates a disk into partitions by percent, bytes, or remaining share and reports leftover bytes; findCommand assembles a find -size command string with a plain-English explanation; humanize formats a byte count in IEC (1024) or SI (1000) units. Operates only on the numbers and text you supply, never reading a real filesystem (use file_file_size_calculator for byte-unit conversion plus transfer-time estimates, or math_unit_converter for general unit conversion). Read-only, non-destructive, offline, and rate-limited (30 requests/minute for anonymous callers). Returns a per-operation result object plus warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Selects the computation. Determines which other fields are read. | |
| text | No | Raw du or df command output to parse. Required for parseDu and parseDf; ignored otherwise. Auto-detects human (du -h) vs raw-byte columns. | |
| input | No | Structured input object for raidCalculator, partitionPlanner, and findCommand. May be supplied as this nested object or as top-level fields alongside operation. | |
| bytes | No | humanize: byte count to format. Required for the humanize operation. | |
| system | No | humanize: unit system. iec uses 1024 (KiB/MiB/GiB); si uses 1000 (KB/MB/GB). | iec |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True when the operation completed. | |
| operation | No | Echoes the requested operation. | |
| result | No | Operation-specific output. |