Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getdisk(3X) — 4.2BSD 3.04v10.B

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

disktab(5)

GETDISKBYNAME(3X)  —  Unix Programmer’s Manual

NAME

getdiskbyname − get disk description by its name

SYNOPSIS

#include <disktab.h>

struct disktab ∗
getdiskbyname(name)
char ∗name;

DESCRIPTION

Getdiskbyname takes a disk name (e.g. rm03) and returns a structure describing its geometry information and the standard disk partition tables.  All information obtained from the disktab(5) file.

<disktab.h> has the following form:

/∗disktab.h4.383/08/11∗/
 /∗
 ∗ Disk description table, see disktab(5)
 ∗/
#defineDISKTAB"/etc/disktab"
 structdisktab {
char∗d_name;/∗ drive name ∗/
char∗d_type;/∗ drive type ∗/
intd_secsize;/∗ sector size in bytes ∗/
intd_ntracks;/∗ # tracks/cylinder ∗/
intd_nsectors;/∗ # sectors/track ∗/
intd_ncylinders;/∗ # cylinders ∗/
intd_rpm;/∗ revolutions/minute ∗/
structpartition {
intp_size;/∗ #sectors in partition ∗/
shortp_bsize;/∗ block size in bytes ∗/
shortp_fsize;/∗ frag size in bytes ∗/
} d_partitions[8];
};
 structdisktab ∗getdiskbyname();

SEE ALSO

disktab(5)

BUGS

This information should be obtained from the system for locally available disks (in particular, the disk partition tables). 

4th Berkeley Distribution  —  1 August 1985

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