next up previous contents index
Next: 21.5.6 diskpart_lookup_bsd_compat: search for Up: 21.5 API reference Previous: 21.5.4 diskpart_fill_entry: initialize a

21.5.5 diskpart_dump: print a partition entry to stdout

 

SYNOPSIS

#include <oskit/diskpart/diskpart.h>

void diskpart_dump(struct diskpart *array, int level);

DESCRIPTION

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.

PARAMETERS

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

Returns nothing, but does write to stdout.



University of Utah Flux Research Group