MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


File Formats                                           dirufs(4)



NAME
     dirufs, dir - format of ufs directories

SYNOPSIS
     #include 


     #include 


     #include 


DESCRIPTION
     A directory consists of some number of blocks  of  DIRBLKSIZ
     bytes,  where   DIRBLKSIZ  is  chosen  such  that  it can be
     transferred to disk in a single atomic operation, for  exam-
     ple, 512 bytes on most machines.


     Each  DIRBLKSIZ-byte block contains some number of directory
     entry structures, which are of variable length.  Each direc-
     tory entry has a  struct direct at the front of it, contain-
     ing  its  inode  number,  the  length  of the entry, and the
     length of the name contained in the  entry.   These  entries
     are  followed  by  the name padded to a 4 byte boundary with
     null bytes.  All names are guaranteed  null-terminated.  The
     maximum length of a name in a directory is  MAXNAMLEN.

       #define DIRBLKSIZ                       DEVBSIZE
       #define MAXNAMLEN                       256
       struct direct {
               ulongt  dino;                 /* inode number of entry */
               ushortt dreclen;              /* length of this record */
               ushortt dnamlen;              /* length of string in dname */
               char     dname[MAXNAMLEN ] 1]; /* maximum name length */
       };


ATRIBUTES
     See attributes(5) for a description of the following  attri-
     butes:













SunOS 5.11          Last change: 16 Apr 2003                    1






File Formats                                           dirufs(4)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Unstable                    
    


SEE ALSO
     attributes(5), ufs(7FS)














































SunOS 5.11          Last change: 16 Apr 2003                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™