ReactOS  0.4.14-dev-1007-g90d795b
ffs.h File Reference
#include <pshpack1.h>
#include <poppack.h>
Include dependency graph for ffs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  csum
 
struct  csum_total
 
struct  fs
 
struct  disklabel
 
struct  disklabel::partition
 

Macros

#define MAXMNTLEN   468
 
#define MAXVOLLEN   32
 
#define FSMAXSNAP   20
 
#define NOCSPTRS   ((128 / sizeof(void *)) - 4)
 
#define MAXPARTITIONS   16 /* number of partitions */
 
#define NDDATA   5
 
#define NSPARE   5
 
#define SBLOCK_UFS1   8192
 
#define SBLOCK_UFS2   65536
 
#define SBLOCKSIZE   8192
 
#define FS_UFS1_MAGIC   0x011954 /* UFS1 fast file system magic number */
 
#define FS_UFS2_MAGIC   0x19540119 /* UFS2 fast file system magic number */
 
#define DISKMAGIC   ((UINT32)0x82564557) /* The disk magic number */
 
#define LABELSECTOR   1 /* sector containing label */
 
#define FS_BSDFFS   7 /* 4.2BSD fast file system */
 

Typedefs

typedef struct fs FFSD_SUPER_BLOCK
 
typedef struct fsPFFSD_SUPER_BLOCK
 
typedef struct disklabel FFSD_DISKLABEL
 
typedef struct disklabelPFFSD_DISKLABEL
 

Functions

 C_ASSERT (FIELD_OFFSET(FFSD_SUPER_BLOCK, fs_cgsize)==160)
 
 C_ASSERT (FIELD_OFFSET(FFSD_SUPER_BLOCK, fs_fmod)==208)
 
 C_ASSERT (FIELD_OFFSET(FFSD_SUPER_BLOCK, fs_ocsp)==728)
 

Macro Definition Documentation

◆ DISKMAGIC

#define DISKMAGIC   ((UINT32)0x82564557) /* The disk magic number */

Definition at line 293 of file ffs.h.

◆ FS_BSDFFS

#define FS_BSDFFS   7 /* 4.2BSD fast file system */

Definition at line 297 of file ffs.h.

◆ FS_UFS1_MAGIC

#define FS_UFS1_MAGIC   0x011954 /* UFS1 fast file system magic number */

Definition at line 290 of file ffs.h.

◆ FS_UFS2_MAGIC

#define FS_UFS2_MAGIC   0x19540119 /* UFS2 fast file system magic number */

Definition at line 291 of file ffs.h.

◆ FSMAXSNAP

#define FSMAXSNAP   20

Definition at line 29 of file ffs.h.

◆ LABELSECTOR

#define LABELSECTOR   1 /* sector containing label */

Definition at line 295 of file ffs.h.

◆ MAXMNTLEN

#define MAXMNTLEN   468

Definition at line 17 of file ffs.h.

◆ MAXPARTITIONS

#define MAXPARTITIONS   16 /* number of partitions */

Definition at line 179 of file ffs.h.

◆ MAXVOLLEN

#define MAXVOLLEN   32

Definition at line 24 of file ffs.h.

◆ NDDATA

#define NDDATA   5

Definition at line 180 of file ffs.h.

◆ NOCSPTRS

#define NOCSPTRS   ((128 / sizeof(void *)) - 4)

Definition at line 44 of file ffs.h.

◆ NSPARE

#define NSPARE   5

Definition at line 181 of file ffs.h.

◆ SBLOCK_UFS1

#define SBLOCK_UFS1   8192

Definition at line 282 of file ffs.h.

◆ SBLOCK_UFS2

#define SBLOCK_UFS2   65536

Definition at line 283 of file ffs.h.

◆ SBLOCKSIZE

#define SBLOCKSIZE   8192

Definition at line 285 of file ffs.h.

Typedef Documentation

◆ FFSD_DISKLABEL

◆ FFSD_SUPER_BLOCK

◆ PFFSD_DISKLABEL

◆ PFFSD_SUPER_BLOCK

Function Documentation

◆ C_ASSERT() [1/3]

C_ASSERT ( FIELD_OFFSET(FFSD_SUPER_BLOCK, fs_cgsize)  = =160)

◆ C_ASSERT() [2/3]

C_ASSERT ( FIELD_OFFSET(FFSD_SUPER_BLOCK, fs_fmod)  = =208)

◆ C_ASSERT() [3/3]

C_ASSERT ( FIELD_OFFSET(FFSD_SUPER_BLOCK, fs_ocsp)  = =728)