linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mke2fs: recognize mke4fs program name
@ 2012-02-08 20:56 Eric Sandeen
  2012-02-08 22:29 ` Andreas Dilger
  2012-02-15 19:20 ` Ted Ts'o
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Sandeen @ 2012-02-08 20:56 UTC (permalink / raw)
  To: ext4 development

We shipped "mke4fs" alongside mke2fs in RHEL5, so that ext4-capable
utilities could be installed without disturbing the venerable e2fsprogs-1.39
shipped in RHEL5 from the beginning.  But it surprised some users that
"mke4fs" created ext2 filesystems by default rather than ext4.
While it was my intent to have the renamed binaries behave exactly
like the stock ones, it seems that there is some precedence for
handling "mkeNfs" in the code, so seems reasonable to add 
mke4fs -> ext4 as well.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

This probably doesn't matter much to upstream, but it seems consistent
with the existing code, below, if you'd like to include it.


diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index e97e44e..410f880 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -1014,6 +1014,8 @@ static char **parse_fs_type(const char *fs_type,
 		ext_type = "ext2";
 	else if (!strcmp(program_name, "mke3fs"))
 		ext_type = "ext3";
+	else if (!strcmp(program_name, "mke4fs"))
+		ext_type = "ext4";
 	else if (progname) {
 		ext_type = strrchr(progname, '/');
 		if (ext_type)


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-15 19:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-08 20:56 [PATCH] mke2fs: recognize mke4fs program name Eric Sandeen
2012-02-08 22:29 ` Andreas Dilger
2012-02-15 19:20 ` Ted Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).