ext4: reject journal options for ext2 mounts
There is no reason to allow ext2 filesystems be mounted with journal mount options. So, this patch adds them to the MOPT_NO_EXT2 mount options list. Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
001e4a8775
commit
5ba92bcf0d
|
@ -1394,9 +1394,9 @@ static const struct mount_opts {
|
|||
{Opt_stripe, 0, MOPT_GTE0},
|
||||
{Opt_resuid, 0, MOPT_GTE0},
|
||||
{Opt_resgid, 0, MOPT_GTE0},
|
||||
{Opt_journal_dev, 0, MOPT_GTE0},
|
||||
{Opt_journal_path, 0, MOPT_STRING},
|
||||
{Opt_journal_ioprio, 0, MOPT_GTE0},
|
||||
{Opt_journal_dev, 0, MOPT_NO_EXT2 | MOPT_GTE0},
|
||||
{Opt_journal_path, 0, MOPT_NO_EXT2 | MOPT_STRING},
|
||||
{Opt_journal_ioprio, 0, MOPT_NO_EXT2 | MOPT_GTE0},
|
||||
{Opt_data_journal, EXT4_MOUNT_JOURNAL_DATA, MOPT_NO_EXT2 | MOPT_DATAJ},
|
||||
{Opt_data_ordered, EXT4_MOUNT_ORDERED_DATA, MOPT_NO_EXT2 | MOPT_DATAJ},
|
||||
{Opt_data_writeback, EXT4_MOUNT_WRITEBACK_DATA,
|
||||
|
|
Loading…
Reference in New Issue