#include <sys/types.h>#include <sys/stat.h>#include <stdlib.h>#include <fcntl.h>#include <string.h>#include <unistd.h>#include <stdio.h>#include <assert.h>Go to the source code of this file.
Classes | |
| struct | super_t |
| struct | inode_t |
Defines | |
| #define | _POSIX_SOURCE 1 |
| #define | _PROTOTYPE(function, params) function() |
| #define | BLOCK_SIZE 1024 |
| #define | BOOT_BLOCK_OFF (blockn_t) 0 |
| #define | SUPER_BLOCK_OFF (blockn_t) 1 |
| #define | V1_MAGIC 0x137F |
| #define | V2_MAGIC 0x2468 |
| #define | NINODES_OFFSET 0 |
| #define | V1_ZONES_OFFSET 2 |
| #define | IMAP_BLOCKS_OFFSET 4 |
| #define | ZMAP_BLOCKS_OFFSET 6 |
| #define | FIRSTDATAZONE_OFFSET 8 |
| #define | LOG_ZONE_SIZE_OFFSET 10 |
| #define | MAGIC_OFFSET 16 |
| #define | V2_ZONES_OFFSET 20 |
| #define | NR_DIRECT_ZONES 7 |
| #define | V1_NR_TZONES 9 |
| #define | V2_NR_TZONES 10 |
| #define | V1_INODE_SIZE 32 |
| #define | V2_INODE_SIZE 64 |
| #define | INODE1_MODE_OFF 0 |
| #define | INODE1_SIZE_OFF 4 |
| #define | INODE1_DIRECT_OFF 14 |
| #define | INODE1_IND1_OFF 28 |
| #define | INODE1_IND2_OFF 30 |
| #define | INODE2_MODE_OFF 0 |
| #define | INODE2_SIZE_OFF 8 |
| #define | INODE2_DIRECT_OFF 24 |
| #define | INODE2_IND1_OFF 52 |
| #define | INODE2_IND2_OFF 56 |
| #define | INODE2_IND3_OFF 60 |
| #define | INODE_MODE_MASK 0xf000 |
| #define | INODE_DIR_MODE 0x4000 |
| #define | INODE_BLK_SPECIAL_MODE 0x6000 |
| #define | INODE_CHR_SPECIAL_MODE 0x2000 |
| #define | T_MASK 0x1c |
| #define | T_UNKNOWN 0x00 |
| #define | T_MAYBE_OLD_DIR 0x04 |
| #define | T_OLD_NON_DIR 0x08 |
| #define | T_DIR 0x0c |
| #define | T_NON_DIR 0x10 |
| #define | INDIRECT_MASK 0x03 |
| #define | IND_PROCESSED_BIT 0x20 |
| #define | IND_CONFLICT_BIT 0x40 |
| #define | TYPE_CONFLICT_BIT 0x80 |
| #define | DIR_ENTRY_SIZE 16 |
Typedefs | |
| typedef unsigned long | blockn_t |
| typedef unsigned int | inodesn_t |
| typedef unsigned char * | dzmap_t |
Enumerations | |
| enum | class_t { Unused_zone, Old_zone, In_use_zone } |
Functions | |
| int | _PROTOTYPE (main,(int argc, char *argv[])) |
| int | main (int argc, argv) |
| int _PROTOTYPE | ( | main | , | |
| (int argc, char *argv[]) | ||||
| ) |
1.5.8