PageRenderTime 20ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/filesystems/unixfs/ancientfs/ancientfs.h

http://macfuse.googlecode.com/
C++ Header | 51 lines | 24 code | 8 blank | 19 comment | 0 complexity | 51c8bacb6be521a8701e6f5f21c5eefd MD5 | raw file
 1/*
 2 * Ancient UNIX File Systems for MacFUSE
 3 * Amit Singh
 4 * http://osxbook.com
 5 */
 6
 7#ifndef _ANCIENTFS_H_
 8#define _ANCIENTFS_H_
 9
10/* only upper-half bits */
11
12#define ANCIENTFS_UNIX_V1   0x80000000
13#define ANCIENTFS_UNIX_V2   0x40000000
14#define ANCIENTFS_UNIX_V3   0x20000000
15#define ANCIENTFS_UNIX_V4   0x10000000
16#define ANCIENTFS_UNIX_V5   0x08000000
17#define ANCIENTFS_UNIX_V6   0x04000000
18#define ANCIENTFS_UNIX_V10  0x02000000
19#define ANCIENTFS_GENTAPE   0x01000000
20#define ANCIENTFS_DECTAPE   0x00800000
21#define ANCIENTFS_MAGTAPE   0x00400000
22#define ANCIENTFS_DUMP1KB   0x00200000
23#define ANCIENTFS_VERYOLDAR 0x00100000 
24#define ANCIENTFS_V7TAR     0x00080000
25#define ANCIENTFS_USTAR     0x00040000
26#define ANCIENTFS_NEWCRC    0x00020000
27
28#define TAPEDIR_BEGIN_BLOCK_GENERIC 1
29#define TAPEDIR_END_BLOCK_GENERIC   (1024*1024)
30
31/*
32 * Block zero of the tape is not used. It is available as a boot program to
33 * be used in a standalone environment. For example, it was used for DEC
34 * diagnostic programs.
35 *
36 * Blocks 1 through 24 contain a directory of the tape. There are 192 entries
37 * in the directory; 8 entries per block; 64 bytes per entry. We can think of
38 * such an entry the tape's "dinode".
39 */
40#define TAPEDIR_BEGIN_BLOCK_DEC 1
41#define TAPEDIR_END_BLOCK_DEC   24
42
43/*
44 * In the case of magtape, the directory blocks go from 1 through 62. It has
45 * 496 entries.
46 */
47#define TAPEDIR_BEGIN_BLOCK_MAG 1
48#define TAPEDIR_END_BLOCK_MAG   62
49
50#endif /* _ANCIENTFS_H_ */
51