summaryrefslogtreecommitdiff
path: root/misc/util.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-03-26 20:07:13 +0000
committerTheodore Ts'o <tytso@mit.edu>2001-03-26 20:07:13 +0000
commit2537b6d0c1aa9710a05cdfafc281b4884c67bdb2 (patch)
treef0fb6c0889325dae11e2e95ad954cf71bfe698cb /misc/util.h
parent0a24c00bea29de9c5ed307d2b4a49e3d08943e7d (diff)
downloade2fsprogs-2537b6d0c1aa9710a05cdfafc281b4884c67bdb2.tar.gz
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.
Diffstat (limited to 'misc/util.h')
-rw-r--r--misc/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/util.h b/misc/util.h
index 61a7800c..92ea7509 100644
--- a/misc/util.h
+++ b/misc/util.h
@@ -21,4 +21,5 @@ 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);
-extern int journal_default_size(const blk_t blocks_count);
+extern int figure_journal_size(int journal_size, ext2_filsys fs);
+