OpenBSD manual page server

Manual Page Search Parameters

READLABELFS(3) Library Functions Manual READLABELFS(3)

readlabelfsread disklabel filesystem type

#include <util.h>

char *
readlabelfs(char *device, int verbose);

The () function attempts to determine the filesystem type of the disk partition specified by device and returns it in a short form that can be easily used to construct arguments within mount(8) and similar high-level filesystem utilities.

If the verbose argument is not 0, () will print appropriate error messages before returning. Otherwise, it produces no output on the terminal.

readlabelfs() returns NULL upon error, or a valid filesystem type upon success.

readlabelfs() first appeared in OpenBSD 2.0.

June 5, 2013 OpenBSD-5.9