diff options
Diffstat (limited to 'misc/util.c')
-rw-r--r-- | misc/util.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/misc/util.c b/misc/util.c index 8185d207..837d60fc 100644 --- a/misc/util.c +++ b/misc/util.c @@ -1,6 +1,6 @@ /* * util.c --- helper functions used by tune2fs and mke2fs - * + * * Copyright 1995, 1996, 1997, 1998, 1999, 2000 by Theodore Ts'o. * * %Begin-Header% @@ -81,14 +81,14 @@ void check_plausibility(const char *device) int val; #ifdef HAVE_OPEN64 struct stat64 s; - + val = stat64(device, &s); #else struct stat s; - + val = stat(device, &s); #endif - + if(val == -1) { fprintf(stderr, _("Could not stat %s --- %s\n"), device, error_message(errno)); @@ -194,7 +194,7 @@ void parse_journal_opts(const char *opts) if (p) { *p = 0; next = p+1; - } + } arg = strchr(token, '='); if (arg) { *arg = 0; @@ -238,13 +238,13 @@ void parse_journal_opts(const char *opts) exit(1); } free(buf); -} +} /* * Determine the number of journal blocks to use, either via * user-specified # of megabytes, or via some intelligently selected * defaults. - * + * * Find a reasonable journal file size (in blocks) given the number of blocks * in the filesystem. For very small filesystems, it is not reasonable to * have a journal that fills more than half of the filesystem. @@ -258,7 +258,7 @@ unsigned int figure_journal_size(int size, ext2_filsys fs) fputs(_("\nFilesystem too small for a journal\n"), stderr); return 0; } - + if (size > 0) { j_blocks = size * 1024 / (fs->blocksize / 1024); if (j_blocks < 1024 || j_blocks > 10240000) { |