]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
mke2fs: prevent creation of filesystem with unsupported revision
authorFrank Sorenson <fsorenso@redhat.com>
Fri, 4 Jul 2014 19:31:50 +0000 (15:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 5 Jul 2014 03:59:44 +0000 (23:59 -0400)
commit4b59352edb5ce783ba578d708de1fda981acfec6
treea3a06f39a4683457ed0dcfe856e694836da88eed
parent2f8d0251967360ee216c339ee76f3ceab3aadb4d
mke2fs: prevent creation of filesystem with unsupported revision

It's a bit strange to accept revision levels higher than
the code creating the filesystem can understand, so don't
allow it.

At least the kernel will mount the fs readonly if it's too
high, but no other utility will touch it, so you can't
fix the error.

Just reject anything > EXT2_MAX_SUPP_REV at mkfs time.

Signed-off-by: Frank Sorenson <fsorenso@redhat.com>
[sandeen@redhat.com: Add more verbose commit log]
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c