getdiskbyname man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

getdiskbyname(3x)					     getdiskbyname(3x)

Name
       getdiskbyname - get disk description by its name

Syntax
       #include <disktab.h>

       struct disktab *
       getdiskbyname(name)
       char *name;

Description
       The  subroutine	takes  a  disk	name (for example, RM03) and returns a
       structure describing its geometry information  and  the	standard  disk
       partition  tables.  All information obtained from the file.  A separate
       subroutine called dynamically generates disktab	entries	 by  obtaining
       disk geometry information from the controlling device driver.

       <disktab.h> has the following form:
       #define DISKTAB	      "/etc/disktab"

       struct  disktab {
	     char   *d_name;	      /* drive name */
	     char   *d_type;	      /* drive type */
	     int    d_secsize;	      /* sector size in bytes */
	     int    d_ntracks;	      /* # tracks/cylinder */
	     int    d_nsectors;	      /* # sectors/track */
	     int    d_ncylinders;     /* # cylinders */
	     int    d_rpm;	      /* revolutions/minute */
	     struct partition {
		     int     p_size;   /* #sectors in partition */
		     short   p_bsize;  /* block size in bytes */
		     short   p_fsize;  /* frag size in bytes */
	       } d_partitions[8];
       };

       struct  disktab *getdiskbyname();
       struct  disktab *creatediskbyname();

See Also
       creatediskbyname(3x), disktab(5)

							     getdiskbyname(3x)
[top]

List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
...................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net