OSDN Git Service

ext4: promote ext4 over ext2 in the default probe order
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 15 Oct 2015 14:33:21 +0000 (10:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 15 Oct 2015 14:33:21 +0000 (10:33 -0400)
commit9172796bc3754af73b90cbd70586812ddbc1e0ca
tree8eecb1c9e75af00f713173b0780d6edc1a100de2
parent8595798ca34d186d39abcb277591e541776c0ef5
ext4: promote ext4 over ext2 in the default probe order

Prevent clean ext3 filesystems from mounting by default with the ext2
driver (with no journal!) by putting ext4 ahead of ext2 in the default
probe order.  This will have the effect of mounting ext2 filesystems
with ext4.ko by default, which is a safer failure than hoping the user
notices that their journalled ext3 is now running without a journal!

Users who require ext2.ko for ext2 can either disable ext4.ko or
explicitly request ext2 via "mount -t ext2" or "rootfstype=ext2".

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/Makefile