NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO | HISTORY | RESTRICTIONS
#include <sys/types.h> #include <sys/disklabel.h>struct disklabel *getdiskbyname(const char *name);
UFS
The getdiskbyname function takes a disk name (for example,. rm03 ) and returns a prototype disk label describing its geometry information and the standard disk partition tables. All information is obtained from the disktab(4CC) file.
getdiskbyname returns a null pointer if the entry is not found in the current disktab file.
setdisktab returns 0 on success and -1 if name is a null pointer or points to an empty string.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
The getdiskbyname function appeared in 4.3 BSD.
This library call does not support multi-threaded applications.
NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO | HISTORY | RESTRICTIONS