1997-04-26 21:21:57 +08:00
|
|
|
/*
|
|
|
|
* debugfs.h --- header file for the debugfs program
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/ext2_fs.h>
|
|
|
|
#include "ext2fs/ext2fs.h"
|
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
#ifdef __STDC__
|
|
|
|
#define NOARGS void
|
|
|
|
#else
|
|
|
|
#define NOARGS
|
|
|
|
#define const
|
|
|
|
#endif
|
|
|
|
|
1997-04-29 22:51:31 +08:00
|
|
|
extern ext2_filsys current_fs;
|
2001-01-11 23:26:39 +08:00
|
|
|
extern ext2_ino_t root, cwd;
|
1997-04-26 21:21:57 +08:00
|
|
|
|
|
|
|
extern FILE *open_pager(void);
|
|
|
|
extern void close_pager(FILE *stream);
|
|
|
|
extern int check_fs_open(char *name);
|
|
|
|
extern int check_fs_not_open(char *name);
|
1997-04-29 22:51:31 +08:00
|
|
|
extern int check_fs_read_write(char *name);
|
2000-05-28 00:04:00 +08:00
|
|
|
extern int check_fs_bitmaps(char *name);
|
2001-01-11 23:26:39 +08:00
|
|
|
extern ext2_ino_t string_to_inode(char *str);
|
1997-04-29 22:51:31 +08:00
|
|
|
extern char *time_to_string(__u32);
|
1997-04-26 21:21:57 +08:00
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
/* ss command functions */
|
|
|
|
|
|
|
|
/* dump.c */
|
|
|
|
extern void do_dump(int argc, char **argv);
|
|
|
|
extern void do_cat(int argc, char **argv);
|
2001-01-11 23:26:39 +08:00
|
|
|
extern void do_rdump(int argc, char **argv);
|
1997-04-26 21:58:21 +08:00
|
|
|
|
|
|
|
/* lsdel.c */
|
|
|
|
extern void do_lsdel(int argc, char **argv);
|
|
|
|
|
|
|
|
/* icheck.c */
|
|
|
|
extern void do_icheck(int argc, char **argv);
|
|
|
|
|
|
|
|
/* ncheck.c */
|
|
|
|
extern void do_ncheck(int argc, char **argv);
|
|
|
|
|
2001-01-13 01:23:52 +08:00
|
|
|
/* set_super.c */
|
|
|
|
extern void do_set_super(int argc, char **);
|
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
/* debugfs.c */
|
ChangeLog, Makefile.in, bmap.c, bmove.c, ext2fs.h, jump.funcs:
ext2fs.h: If __STRICT_ANSI__ is defined and we're on a platform with
32 bit longs, then we need to manually define __s64 and __u64, since
the current kernel header files don't define these if __STRICT_ANSI__
is defined. This is a problem if we are compiling with full GCC
warnings, since we do need 64 bit support.
Makefile.in (OBJS): Remove bmove.o from files to be built, since we're
not using ext2fs_move_blocks() and there is some question as to its
usefulness in its current form.
bmap.c (block_bmap): Remove unused function.
bmove.c (process_block): Fix -Wall warning.
ChangeLog, debugfs.c, debugfs.h, dump.c:
debugfs.h: Add declaration for do_dirty_filsys() to prevent -Wall
warnings.
debugfs.c (copy_file):
dump.c (dump_file): Fix -Wall warning caused by signed/unsigned mismatch.
1998-03-30 09:27:25 +08:00
|
|
|
extern void do_dirty_filesys(int argc, char **argv);
|
1997-04-26 21:58:21 +08:00
|
|
|
extern void do_open_filesys(int argc, char **argv);
|
|
|
|
extern void do_close_filesys(int argc, char **argv);
|
2001-01-11 23:26:39 +08:00
|
|
|
extern void do_lcd(int argc, char **argv);
|
1997-04-26 21:58:21 +08:00
|
|
|
extern void do_init_filesys(int argc, char **argv);
|
|
|
|
extern void do_show_super_stats(int argc, char **argv);
|
|
|
|
extern void do_kill_file(int argc, char **argv);
|
|
|
|
extern void do_rm(int argc, char **argv);
|
|
|
|
extern void do_link(int argc, char **argv);
|
|
|
|
extern void do_unlink(int argc, char **argv);
|
|
|
|
extern void do_find_free_block(int argc, char **argv);
|
|
|
|
extern void do_find_free_inode(int argc, char **argv);
|
|
|
|
extern void do_stat(int argc, char **argv);
|
|
|
|
|
|
|
|
extern void do_chroot(int argc, char **argv);
|
|
|
|
extern void do_clri(int argc, char **argv);
|
|
|
|
extern void do_freei(int argc, char **argv);
|
|
|
|
extern void do_seti(int argc, char **argv);
|
|
|
|
extern void do_testi(int argc, char **argv);
|
|
|
|
extern void do_freeb(int argc, char **argv);
|
|
|
|
extern void do_setb(int argc, char **argv);
|
|
|
|
extern void do_testb(int argc, char **argv);
|
|
|
|
extern void do_modify_inode(int argc, char **argv);
|
|
|
|
extern void do_list_dir(int argc, char **argv);
|
|
|
|
extern void do_change_working_dir(int argc, char **argv);
|
|
|
|
extern void do_print_working_directory(int argc, char **argv);
|
|
|
|
extern void do_write(int argc, char **argv);
|
|
|
|
extern void do_mknod(int argc, char **argv);
|
|
|
|
extern void do_mkdir(int argc, char **argv);
|
|
|
|
extern void do_rmdir(int argc, char **argv);
|
|
|
|
extern void do_show_debugfs_params(int argc, char **argv);
|
|
|
|
extern void do_expand_dir(int argc, char **argv);
|
1999-10-26 22:20:22 +08:00
|
|
|
extern void do_features(int argc, char *argv[]);
|