GETDISKBYNAME
Section: C Library Functions (3)
Updated: May 12, 1986
Index
Return to Main Contents
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 /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
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- FILES
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 00:57:46 GMT, September 26, 2024