#include "tarfs_util.h"
#include "tarfs_common.h"
Go to the source code of this file.
Functions | |
unsigned long | hcc (unsigned long nom, unsigned long denom) |
Ceil value of nom / denom. | |
int | read_block (struct super_block *s, unsigned long i, void *blok) |
Reads block from device. | |
int | is_nullblock (void *blok, unsigned long size) |
Checks if given block is full of zeroes. | |
int | name_comparator (void *a, void *b, int first_length) |
Compares two strings. | |
int | name_comparator2 (void *a, void *b, unsigned int first_length, unsigned int second_length) |
Compares two strings, (except trailing '/'). | |
int | is_right_prefix (char *dname, unsigned int dsize, char *fname, unsigned int fsize) |
Compares two paths (strings). | |
int | is_octal (char ch) |
Checks if given character is '0' - '7'. | |
unsigned long | oct_to_dec (void *what, unsigned int length) |
Converts octal number into decimal integer. | |
unsigned int | short_name_size (char *name) |
Returns length of filename stored in one block. |
Petr Cermak <xgxg@seznam.cz>
Definition in file tarfs_util.c.
|
Ceil value of nom / denom.
Definition at line 29 of file tarfs_util.c. Referenced by offset_by_name(), offset_by_name2(), pom_read_name(), skip_blocks(), symlinkname(), tar_get_root_ino(), tar_length(), tar_lookup(), tar_read_page(), and tar_readdir(). |
|
Checks if given block is full of zeroes.
Definition at line 68 of file tarfs_util.c. Referenced by tar_length(), and tar_readdir(). |
|
Checks if given character is '0' - '7'.
Definition at line 205 of file tarfs_util.c. Referenced by oct_to_dec(). |
|
Compares two paths (strings). sais, whether the dname is right prefix of fname. It's equal to dname contains fname*
Definition at line 176 of file tarfs_util.c. References TARFS_CAN_ADD. Referenced by tar_readdir(). |
|
Compares two strings. b must be zero-terminated.
Definition at line 96 of file tarfs_util.c. Referenced by offset_by_name(). |
|
Compares two strings, (except trailing '/'). b must be zero-terminated.
Definition at line 139 of file tarfs_util.c. Referenced by offset_by_name2(). |
|
Converts octal number into decimal integer. Supposes that the number is in big endian format
Definition at line 219 of file tarfs_util.c. References is_octal(), and TARFS_EVAL. Referenced by find_nolink(), is_tar(), offset_by_name(), offset_by_name2(), skip_blocks(), symlinkname(), tar_fill_inode(), tar_get_root_ino(), tar_length(), tar_lookup(), and tar_readdir(). |
|
Reads block from device. Reads #i block from device specified in super block s
Definition at line 47 of file tarfs_util.c. References TARFS_BLKSIZE. Referenced by find_nolink(), offset_by_name(), offset_by_name2(), pom_read_name(), skip_blocks(), symlinkname(), tar_fill_inode(), tar_get_root_ino(), tar_length(), tar_lookup(), tar_quick_validation(), tar_read_page(), and tar_readdir(). |
|
Returns length of filename stored in one block.
Definition at line 245 of file tarfs_util.c. Referenced by find_nolink(), offset_by_name2(), symlinkname(), tar_fill_inode(), tar_lookup(), and tar_readdir(). |