Query: getdiskbyname
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
getdiskbyname(3) Library Functions Manual getdiskbyname(3)NAMEgetdiskbyname, getdiskbyname_r - Get the disk description using a disk nameLIBRARYStandard C Library (libc)SYNOPSIS#include <sys/disklabel.h> #include <sys/types.h> struct disklabel *getdiskbyname( char *name); int getdiskbyname_r( char *name, struct disklabel *disk, char *boot, int boot_len);PARAMETERSSpecifies a common name for the disk drive whose geometry and partition characteristics are sought. Points to the structure that will con- tain the returned disk description. Points to the buffer that will contain the optional names of the primary and secondary bootstraps. Specifies the length of boot. This should be BUFSIZ.DESCRIPTIONOperations supported by the getdiskbyname function are also supported by the createlabel function. See The getdiskbyname and getdiskby- name_r functions are supported only for backward compatibility with DIGITAL UNIX Version 4.0 and earlier versions. These functions will be retired in a future release of Tru64 UNIX. The getdiskbyname() function uses a disk (disk drive) name to return a pointer to a structure that describes the geometry and standard par- tition characteristics of the named disk drive. Information obtained from the /etc/disktab database file is written to the type disklabel structure space referenced by the returned pointer. The getdiskbyname_r() function is the reentrant version of getdiskbyname(). Upon successful completion, getdiskbyname_r() returns a value of 0 (zero); the returned structure is pointed at by disk. Upon error, it returns a value of -1, and may set errno to [EINVAL].RETURN VALUESUpon successful completion, the getdiskbyname() function, returns a pointer to a type disklabel structure.ERRORSEither disk or boot is NULL, or boot_len is not equal to BUFSIZ.RELATED INFORMATIONFunctions: createlabel(3) Files: disklabel(4), disktab(4) Commands: disklabel(8) delim off getdiskbyname(3)
Related Man Pages |
---|
disklabel(8) - bsd |
newfs(8) - bsd |
disktab(5) - freebsd |
disktab(4) - osf1 |
extendfs(8) - osf1 |
Similar Topics in the Unix Linux Community |
---|
Adding a disk HP 9000, model 360 |
New hdd not being recognised properly by OS |
Defining EDITOR Variable - Tru64 |
Which UNIX version for beginners |
Problem in SVM after live upgrade |