Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getdiskbyname(3) — NEXTSTEP 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

disktab(5)

disk(8)

newfs(8)

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

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

4.2 Berkeley Distribution  —  May 12, 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026