up | Inhaltsverzeichniss | Kommentar

Manual page for GETDISKBYNAME(3)

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 /NextDeveloper/Headers/bsd/dev/disk.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.

FILES

/etc/disktab

SEE ALSO

disktab(5), disk(8), newfs(8)


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97