Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

tarfs_common.h File Reference

Go to the source code of this file.

Defines

#define TARFS_BLKSIZE   512
#define TARFS_BLKSIZE_BITS   9
#define TARFS_MAGIC   0x4625
#define FSNAME   "tarfs"
#define TARFS_EVAL   ((unsigned long) - 1)
#define TARFS_THISDIR_FPOS   ((unsigned long) - 2)
#define TARFS_PARENTDIR_FPOS   ((unsigned long) - 3)
#define TARFS_ROOT_INO   ((unsigned long) - 4)
#define TARFS_NUMLENGTH   11
#define TARFS_CAN_ADD   -1
#define PRINTD(X)


Detailed Description

Contains defines of various constants and debugging macros

Author:
Jaroslav Drazan <jaroslavdrazan@seznam.cz>

Petr Cermak <xgxg@seznam.cz>

Definition in file tarfs_common.h.


Define Documentation

#define FSNAME   "tarfs"
 

Registered name of this fs

Definition at line 29 of file tarfs_common.h.

#define PRINTD  ) 
 

Definition at line 55 of file tarfs_common.h.

Referenced by tarfs_get_new_root_inode(), tarfs_lookup(), tarfs_read_inode(), tarfs_read_super(), tarfs_readdir(), tarfs_readpage(), and tarfs_statfs().

#define TARFS_BLKSIZE   512
 

Size of one tar block

Definition at line 26 of file tarfs_common.h.

Referenced by offset_by_name(), offset_by_name2(), pom_read_name(), read_block(), skip_blocks(), symlinkname(), tar_get_root_ino(), tar_length(), tar_lookup(), tar_read_page(), tar_readdir(), tarfs_read_super(), and tarfs_statfs().

#define TARFS_BLKSIZE_BITS   9
 

No. of bits of size

Definition at line 27 of file tarfs_common.h.

Referenced by tarfs_read_super().

#define TARFS_CAN_ADD   -1
 

influences return value of function is_right_prefix()

to allow reading/listing files added to tar archive later it's nessery to search the archive to the end, so the function is_right_prefix must return -1 also in case dname doesn't contain fname. So if this macro is set to 0, it's more effective to read dirs, but adding files is not supported

to allow reading added files set this macro to -1, otherwise to 0

See also:
is_right_prefix()

Definition at line 50 of file tarfs_common.h.

Referenced by is_right_prefix().

#define TARFS_EVAL   ((unsigned long) - 1)
 

Error return value when returning unsigned long values

Definition at line 30 of file tarfs_common.h.

Referenced by find_nolink(), get_root_ino_pom(), oct_to_dec(), offset_by_name(), offset_by_name2(), skip_blocks(), tar_fill_inode(), tar_get_root_ino(), tar_lookup(), tar_read_page(), tar_readdir(), tarfs_lookup(), tarfs_read_super(), tarfs_readdir(), and tarfs_readpage().

#define TARFS_MAGIC   0x4625
 

Magic number of this filesystem

Definition at line 28 of file tarfs_common.h.

Referenced by tarfs_read_super(), and tarfs_statfs().

#define TARFS_NUMLENGTH   11
 

Length of octal number in tar

Definition at line 34 of file tarfs_common.h.

Referenced by find_nolink(), offset_by_name(), offset_by_name2(), skip_blocks(), symlinkname(), tar_fill_inode(), tar_get_root_ino(), tar_length(), tar_lookup(), and tar_readdir().

#define TARFS_PARENTDIR_FPOS   ((unsigned long) - 3)
 

Value of filp->f_pos. Means '..' directory

Definition at line 32 of file tarfs_common.h.

Referenced by tar_readdir().

#define TARFS_ROOT_INO   ((unsigned long) - 4)
 

Inode number of root directory if not present in tar

Definition at line 33 of file tarfs_common.h.

Referenced by get_root_ino_pom(), tar_fill_inode(), tar_lookup(), tar_read_page(), tar_readdir(), and tarfs_read_inode().

#define TARFS_THISDIR_FPOS   ((unsigned long) - 2)
 

Value of filp->f_pos. Means '.' directory

Definition at line 31 of file tarfs_common.h.

Referenced by tar_readdir().


Generated on Fri May 23 02:10:44 2003 for TarFS by doxygen1.3