mirror of https://github.com/vitalif/e2fsprogs
Add check for mkfs.ext3 and create a journal in this case.
parent
df614db6ef
commit
0072f8de52
|
@ -86,6 +86,7 @@ fi
|
|||
/sbin/fsck.ext3
|
||||
/sbin/mke2fs
|
||||
/sbin/mkfs.ext2
|
||||
/sbin/mkfs.ext3
|
||||
/sbin/tune2fs
|
||||
/sbin/resize2fs
|
||||
/usr/sbin/mklost+found
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
|
@ -128,7 +128,11 @@ is the special file corresponding to the device (e.g
|
|||
.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"
|
||||
|
|
|
@ -820,8 +820,15 @@ static void PRS(int argc, char *argv[])
|
|||
#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) {
|
||||
|
|
|
@ -390,20 +390,6 @@ err:
|
|||
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)
|
||||
{
|
||||
|
|
14
misc/util.c
14
misc/util.c
|
@ -48,6 +48,20 @@ int strcasecmp (char *s1, char *s2)
|
|||
}
|
||||
#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];
|
||||
|
|
|
@ -17,6 +17,7 @@ extern char *journal_device;
|
|||
#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);
|
||||
|
|
Loading…
Reference in New Issue