ChangeLog, Makefile.in, mke2fs.c, tune2fs.8.in, tune2fs.c, util.c, util.h:
tune2fs.c (update_feature_set, add_journal): Moved to separate
functions. Added ability to add and remove the journal while the
filesystem is live. Added support for setting a time-based UUID.
Removed zero-initialized static variables.
mke2fs.c, util.c, util.h (strcasecmp, proceed_question,
check_plausibility, parse_journal_opts, check_mount): Moved functions
to util.c so they can be used by tune2fs.
mke2fs.c (main): Change ext2fs_add_journal_fs() to
ext2fs_add_journal_inode() to reflect function renaming.
2001-01-03 20:02:13 +03:00
|
|
|
/*
|
|
|
|
* util.h --- header file defining prototypes for helper functions
|
|
|
|
* used by tune2fs and mke2fs
|
|
|
|
*
|
|
|
|
* Copyright 2000 by Theodore Ts'o.
|
|
|
|
*
|
|
|
|
* %Begin-Header%
|
|
|
|
* This file may be redistributed under the terms of the GNU Public
|
|
|
|
* License.
|
|
|
|
* %End-Header%
|
|
|
|
*/
|
|
|
|
|
|
|
|
extern int journal_size;
|
|
|
|
extern int journal_flags;
|
|
|
|
extern char *journal_device;
|
|
|
|
|
|
|
|
#ifndef HAVE_STRCASECMP
|
|
|
|
extern int strcasecmp (char *s1, char *s2);
|
|
|
|
#endif
|
|
|
|
extern void proceed_question(void);
|
|
|
|
extern void check_plausibility(const char *device);
|
|
|
|
extern void parse_journal_opts(const char *opts);
|
|
|
|
extern void check_mount(const char *device, int force, const char *type);
|
ChangeLog, mke2fs.8.in, mke2fs.c, tune2fs.8.in, tune2fs.c, util.c, util.h:
ke2fs.8.in, tune2fs.8.in: Change man paegs to document that the
journal must be bewteen 1024 and 10,240 file system blocks.
mke2fs.c, tune2fs.c: Change to use figure_journal_size()
util.c, util.h (figure_journal_size): Change journal_default_size into
routine which also converts the requested journal size into filesystem
blocks and does bounds checking to make sure the journal is sized
reasonably. Renamed function to journal_default_size.
parse_journal_opts): Remove bounds check for the journal size, since
this is now done in figure_journal_size, and based on the number of
filesystem blocks, as opposed to using the absolute size of the
journal.
2001-03-27 00:07:13 +04:00
|
|
|
extern int figure_journal_size(int journal_size, ext2_filsys fs);
|
2001-06-14 10:42:44 +04:00
|
|
|
extern void print_check_message(ext2_filsys fs);
|