gpfs_direntx64_t structure
Contains attributes of a GPFS directory entry.
Library
GPFS Library (libgpfs.a for AIX®, libgpfs.so for Linux®)
Structure
typedef struct gpfs_direntx64
{
int d_version; /* this struct's version */
unsigned short d_reclen; /* actual size of this struct including
null terminated variable length d_name */
unsigned short d_type; /* Types are defined below */
gpfs_ino64_t d_ino; /* File inode number */
gpfs_gen64_t d_gen; /* Generation number for the inode */
unsigned int d_flags; /* Flags are defined below */
char d_name[1028]; /* null terminated variable length name */
/* (1020+null+7 byte pad to double word) */
/* to handle up to 255 UTF-8 chars */
} gpfs_direntx64_t;
/* File types for d_type field in gpfs_direntx64_t */
#define GPFS_DE_OTHER 0
#define GPFS_DE_DIR 4
#define GPFS_DE_REG 8
#define GPFS_DE_LNK 10
#define GPFS_DE_DEL 16
/* Define flags for gpfs_direntx64_t */
#define GPFS_DEFLAG_NONE 0x0000 /* Default value, no flags set */
#define GPFS_DEFLAG_JUNCTION 0x0001 /* DirEnt is a fileset junction */
#define GPFS_DEFLAG_IJUNCTION 0x0002 /* DirEnt is a inode space junction */
#define GPFS_DEFLAG_ORPHAN 0x0004 /* DirEnt is an orphan (pcache) */
Description
The gpfs_direntx64_t structure contains the attributes of a GPFS directory entry.
Members
- d_version
- The version number of this structure.
- d_reclen
- The actual size of this structure including the null-terminated
variable-length d_name field.
To allow some degree of forward compatibility, careful callers should use the d_reclen field for the size of the structure rather than the sizeof() function.
- d_type
- The type of directory.
- d_ino
- The directory inode number.
- d_gen
- The directory generation number.
- d_flags
- The directory flags.
- d_name
- Null-terminated variable-length name of the directory.
Examples
See the gpfs_direntx_t example in /usr/lpp/mmfs/samples/util/tsfindinode.c.
Location
/usr/lpp/mmfs/lib/libgpfs.a for AIX
/usr/lpp/mmfs/lib/libgpfs.so for Linux