/sbin/fsck.ext3
/sbin/mke2fs
/sbin/mkfs.ext2
+/sbin/mkfs.ext3
/sbin/tune2fs
/sbin/resize2fs
/usr/sbin/mklost+found
+2002-02-25 Andreas Dilger <adilger@clusterfs.com>
+
+ * mke2fs.c: Add check for mkfs.ext3 and create a journal in
+ this case.
+
2002-02-24 Theodore Tso <tytso@valinux.com>
* Makefile.in (install): Install hard links for man pages for
.I blocks-count
is the number of blocks on the device. If omitted,
.B mke2fs
-automagically figures the file system size.
+automagically figures the file system size. If called as
+.B mkfs.ext3
+a journal is created as if the
+.B \-j
+option was specified.
.SH OPTIONS
.TP
.BI \-b " block-size"
#endif
fprintf (stderr, "mke2fs %s (%s)\n",
E2FSPROGS_VERSION, E2FSPROGS_DATE);
- if (argc && *argv)
- program_name = *argv;
+
+ if (argc && *argv) {
+ program_name = get_progname(*argv);
+
+ /* If called as mkfs.ext3, create a journal inode */
+ if (!strcmp(program_name, "mkfs.ext3"))
+ journal_size = -1;
+ }
+
while ((c = getopt (argc, argv,
"b:cf:g:i:jl:m:no:qr:R:s:tvI:J:ST:FL:M:N:O:V")) != EOF)
switch (c) {
exit(1);
}
-/*
- * Given argv[0], return the program name.
- */
-static char *get_progname(char *argv_zero)
-{
- char *cp;
-
- cp = strrchr(argv_zero, '/');
- if (!cp )
- return argv_zero;
- else
- return cp+1;
-}
-
static void parse_e2label_options(int argc, char ** argv)
{
}
#endif
+/*
+ * Given argv[0], return the program name.
+ */
+char *get_progname(char *argv_zero)
+{
+ char *cp;
+
+ cp = strrchr(argv_zero, '/');
+ if (!cp )
+ return argv_zero;
+ else
+ return cp+1;
+}
+
void proceed_question(void)
{
char buf[256];
#ifndef HAVE_STRCASECMP
extern int strcasecmp (char *s1, char *s2);
#endif
+extern char *get_progname(char *argv_zero);
extern void proceed_question(void);
extern void check_plausibility(const char *device);
extern void parse_journal_opts(const char *opts);