00001
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <linux/fs.h>
00021 #include <linux/types.h>
00022 #include <linux/errno.h>
00023 #ifndef __TARFS_UTIL_H__
00024 #define __TARFS_UTIL_H__
00025
00026
00037 int read_block(struct super_block* s, unsigned long i, void* blok);
00038
00039
00047 int is_nullblock(void *blok, unsigned long size);
00048
00059 int name_comparator(void* a, void* b, int first_length);
00060
00073 int name_comparator2(void* a, void* b, unsigned int first_length, unsigned int second_length);
00074
00088 int is_right_prefix(char* dname, unsigned int dsize, char* fname, unsigned int fsize);
00089
00099 unsigned long oct_to_dec(void* what, unsigned int length);
00100
00107 int is_octal(char ch);
00108
00116 unsigned long hcc(unsigned long co, unsigned long cim);
00117
00124 unsigned int short_name_size(char* name);
00125
00126 #endif // __TARFS_UTIL_H__
00127
00128
00129
00130
00131