source: branches/2.2.9/mondo/src/common/libmondo-files-EXT.h @ 2380

Last change on this file since 2380 was 2380, checked in by Bruno Cornec, 11 years ago
  • Change NFS support into a NetFS support to allow for multiple protocol in addition to NFS (NEEDS TESTING)
  • Better logging to detect a potential nuke issue
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1/* libmondo-files-EXT.h */
2
3#include <sys/types.h>
4#include <unistd.h>
5
6extern unsigned int updcrc(unsigned int crc, unsigned int c);
7extern unsigned int updcrcr(unsigned int crc, unsigned int c);
8extern char *calc_checksum_of_file(char *filename);
9extern char *calc_file_ugly_minichecksum(char *curr_fname);
10extern long count_lines_in_file(char *filename);
11extern bool does_file_exist(char *filename);
12extern void exclude_nonexistent_files(char *inout);
13extern int figure_out_kernel_path_interactively_if_necessary(char *kernel);
14extern char *find_home_of_exe(char *fname);
15extern int get_trackno_from_logfile(char *logfile);
16extern int grab_percentage_from_last_line_of_file(char *filename);
17extern char *last_line_of_file(char *filename);
18extern off_t length_of_file(char *filename);
19extern int make_checksum_list_file(char *filelist, char *cksumlist,
20                                   char *comppath);
21extern int make_hole_for_file(char *outfile_fname);
22extern void make_list_of_files_to_ignore(char *ignorefiles_fname,
23                                         char *filelist_fname,
24                                         char *cklist_fname);
25extern long noof_lines_that_match_wildcard(char *filelist_fname,
26                                           char *wildcard);
27extern long long space_occupied_by_cd(char *mountpt);
28extern int whine_if_not_found(char *fname);
29extern int write_one_liner_data_file(char *fname, char *contents);
30
31
32
33extern long size_of_all_biggiefiles_K();
34extern void copy_mondo_and_mindi_stuff_to_scratchdir();
35extern void store_netfs_config();
36
37
38extern void estimate_noof_media_required(long);
39
40extern bool is_this_file_compressed(char *);
41
42
43
44extern int make_hole_for_dir(char *outdir_fname);
45
46extern long size_of_partition_in_mountlist_K(char *tmpdir, char *dev);
47
48extern int make_grub_install_scriptlet(char *outfile);
49extern int read_one_liner_data_file(char *fname, char *contents);
50extern int mode_of_file(char *fname);
Note: See TracBrowser for help on using the repository browser.