GETDISKBYNAME(3) — UNIX Programmer’s Manual
NAME
getdiskbyname − get disk description by its name
SYNOPSIS
#include <sys/disktab.h>
struct disktab ∗
getdiskbyname(name)
char ∗name;
struct disktab ∗
getdiskbydev(dev)
char ∗dev;
DESCRIPTION
Getdiskbyname takes a disk name (e.g. omd-1) and returns a structure describing its geometry information and the standard disk partition tables. Information is obtained from the disktab(5) file. Disk information is also stored on the disk media itself in a special area called the disk label (see /usr/include/nextdev/disk_label.h). Getdiskbydev takes a disk device name (e.g. /dev/rod0a) and returns the disk information contained in the label. Information in the disk label usually takes precedence over disktab(5) which is used primarily by disk(8) to initialize the disk label.
<etc/disktab.h> has the following form:
SEE ALSO
4.2 Berkeley Distribution — May 12, 1986