#include <oskit/diskpart/diskpart.h>void diskpart_dump(struct diskpart *array, int level);
This function prints a partition entry with indentation and labeling corresponding to its nesting level. It also recursively prints any child partitions on separate lines, with level+1.This provides valuable diagnostic messages for debugging disk or filesystem problems.
- array
- A pointer to the first entry to be printed. It and any sub-partitions are printed.
- level
- int representing current level. This controls indentation and naming of the output. diskpart_dump called with the root struct diskpart entry and 0 will print the entire table.
Returns nothing, but does write to stdout.