2 * debugfs.h --- header file for the debugfs program
5 #include <linux/ext2_fs.h>
6 #include "ext2fs/ext2fs.h"
15 extern ext2_filsys current_fs;
16 extern ino_t root, cwd;
18 extern FILE *open_pager(void);
19 extern void close_pager(FILE *stream);
20 extern int check_fs_open(char *name);
21 extern int check_fs_not_open(char *name);
22 extern int check_fs_read_write(char *name);
23 extern int check_fs_bitmaps(char *name);
24 extern ino_t string_to_inode(char *str);
25 extern char *time_to_string(__u32);
27 /* ss command functions */
30 extern void do_dump(int argc, char **argv);
31 extern void do_cat(int argc, char **argv);
34 extern void do_lsdel(int argc, char **argv);
37 extern void do_icheck(int argc, char **argv);
40 extern void do_ncheck(int argc, char **argv);
43 extern void do_dirty_filesys(int argc, char **argv);
44 extern void do_open_filesys(int argc, char **argv);
45 extern void do_close_filesys(int argc, char **argv);
46 extern void do_init_filesys(int argc, char **argv);
47 extern void do_show_super_stats(int argc, char **argv);
48 extern void do_kill_file(int argc, char **argv);
49 extern void do_rm(int argc, char **argv);
50 extern void do_link(int argc, char **argv);
51 extern void do_unlink(int argc, char **argv);
52 extern void do_find_free_block(int argc, char **argv);
53 extern void do_find_free_inode(int argc, char **argv);
54 extern void do_stat(int argc, char **argv);
56 extern void do_chroot(int argc, char **argv);
57 extern void do_clri(int argc, char **argv);
58 extern void do_freei(int argc, char **argv);
59 extern void do_seti(int argc, char **argv);
60 extern void do_testi(int argc, char **argv);
61 extern void do_freeb(int argc, char **argv);
62 extern void do_setb(int argc, char **argv);
63 extern void do_testb(int argc, char **argv);
64 extern void do_modify_inode(int argc, char **argv);
65 extern void do_list_dir(int argc, char **argv);
66 extern void do_change_working_dir(int argc, char **argv);
67 extern void do_print_working_directory(int argc, char **argv);
68 extern void do_write(int argc, char **argv);
69 extern void do_mknod(int argc, char **argv);
70 extern void do_mkdir(int argc, char **argv);
71 extern void do_rmdir(int argc, char **argv);
72 extern void do_show_debugfs_params(int argc, char **argv);
73 extern void do_expand_dir(int argc, char **argv);
74 extern void do_features(int argc, char *argv[]);