diff options
| author | Eric Biggers <[email protected]> | 2022-05-10 11:32:32 -0700 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2022-05-18 11:24:22 -0400 |
| commit | cb8435dc8ba33bcafa41cf2aa253794320a3b8df (patch) | |
| tree | 13636c9efca665671e87d787ae0078a5910a7a27 | |
| parent | b10b6278ae17366fec058219623c757b3302baae (diff) | |
ext4: reject the 'commit' option on ext2 filesystems
The 'commit' option is only applicable for ext3 and ext4 filesystems,
and has never been accepted by the ext2 filesystem driver, so the ext4
driver shouldn't allow it on ext2 filesystems.
This fixes a failure in xfstest ext4/053.
Fixes: 8dc0aa8cf0f7 ("ext4: check incompatible mount options while mounting ext2/3")
Signed-off-by: Eric Biggers <[email protected]>
Reviewed-by: Ritesh Harjani <[email protected]>
Reviewed-by: Lukas Czerner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
| -rw-r--r-- | fs/ext4/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 4b0ea8df1f5c..3f59efd3aa3e 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -1915,6 +1915,7 @@ static const struct mount_opts { MOPT_EXT4_ONLY | MOPT_CLEAR}, {Opt_warn_on_error, EXT4_MOUNT_WARN_ON_ERROR, MOPT_SET}, {Opt_nowarn_on_error, EXT4_MOUNT_WARN_ON_ERROR, MOPT_CLEAR}, + {Opt_commit, 0, MOPT_NO_EXT2}, {Opt_nojournal_checksum, EXT4_MOUNT_JOURNAL_CHECKSUM, MOPT_EXT4_ONLY | MOPT_CLEAR}, {Opt_journal_checksum, EXT4_MOUNT_JOURNAL_CHECKSUM, |