]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
fsck: Treat "ext4" and "ext4dev" as ext* filesystems
authorTheodore Ts'o <tytso@mit.edu>
Wed, 26 Mar 2008 12:58:25 +0000 (08:58 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 26 Mar 2008 12:58:25 +0000 (08:58 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/fsck.c

index e44829ab20c04d585e856348b36f83c7b7e9d364..139afd0162db12b3f5a25efbaca8d1be2b01bbba 100644 (file)
@@ -81,6 +81,8 @@ static const char *really_wanted[] = {
        "minix",
        "ext2",
        "ext3",
+       "ext4",
+       "ext4dev",
        "jfs",
        "reiserfs",
        "xiafs",
@@ -453,7 +455,9 @@ static int execute(const char *type, const char *device, const char *mntpt,
 
        if (progress) {
                if ((strcmp(type, "ext2") == 0) ||
-                   (strcmp(type, "ext3") == 0)) {
+                   (strcmp(type, "ext3") == 0) ||
+                   (strcmp(type, "ext4") == 0) ||
+                   (strcmp(type, "ext4dev") == 0)) {
                        char tmp[80];
 
                        tmp[0] = 0;
@@ -628,7 +632,9 @@ static struct fsck_instance *wait_one(int flags)
                        if (inst2->flags & FLAG_DONE)
                                continue;
                        if (strcmp(inst2->type, "ext2") &&
-                           strcmp(inst2->type, "ext3"))
+                           strcmp(inst2->type, "ext3") &&
+                           strcmp(inst2->type, "ext4") &&
+                           strcmp(inst2->type, "ext4dev"))
                                continue;
                        /*
                         * If we've just started the fsck, wait a tiny