ext4: Deprecate data=journal mount option
PATCH 1/1 ext4: Deprecate data=journal mount option
Data journalling mode (data=journal) is known to be neglected by developers and only minority of people is actually using it. This mode is also less tested than the other two modes by the developers.
This creates a dangerous combination, because the option which seems *safer* is actually less safe the others. So this commit adds a warning message in case that data=journal mode is used, so the user is informed that the mode has been deprecated and we do not recommend using it.
--- fs/ext4/super.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
fs/ext4/super.c +4 -0
@@ -1631,6 +1631,10 @@ static int parse_options(char *options, struct super_block *sb, sbi->s_min_batch_time = option;break ;case Opt_data_journal: +ext4_msg (sb,KERN_WARNING , +"Using data=journal is not recommended. It " +"has been deprecated and can be removed " +"in the future" ); data_opt =EXT4_MOUNT_JOURNAL_DATA ; goto datacheck;case Opt_data_ordered:
Signature · 1 line
1.7.4.4
Quoted 19 lines · Lukas Czerner
Data journalling mode (data=journal) is known to be neglected by developers and only minority of people is actually using it. This mode is also less tested than the other two modes by the developers.
This creates a dangerous combination, because the option which seems *safer* is actually less safe the others. So this commit adds a warning message in case that data=journal mode is used, so the user is informed that the mode has been deprecated and we do not recommend using it.
Signed-off-by Lukas Czerner <[email protected]>---
fs/ext4/super.c| 4 ++++1 files changed, 4 insertions(+), 0 deletions(-)fs/ext4/super.c +0
-0
fs/ext4/super.c static int parse_options(char *options, struct super_block *sb, · line 1637
Quoted 7 lines
fs/ext4/super.c +4
-0@@ -1631,6 +1631,10 @@ static int parse_options(char *options, struct super_block *sb, sbi->s_min_batch_time = option;break ;case Opt_data_journal: +ext4_msg (sb,KERN_WARNING , +"Using data=journal is not recommended. It " +"has been deprecated and can be removed " +"in the future" );
I'd rather reword this to be something like:
Using data=journal may be removed in the future. Contact [email protected] if you are using this feature.
And this should at least appear in some vendor kernels (e.g. RHEL6) before we make any decision on whether to remove it.
Cheers, Andreas
Quoted 10 lines
fs/ext4/super.c +0
-0data_opt =EXT4_MOUNT_JOURNAL_DATA ; goto datacheck;case Opt_data_ordered:Signature · 6 lines
1.7.4.4 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 31 lines · Andreas Dilger
Quoted 19 lines · Lukas Czerner
Data journalling mode (data=journal) is known to be neglected by developers and only minority of people is actually using it. This mode is also less tested than the other two modes by the developers.
This creates a dangerous combination, because the option which seems *safer* is actually less safe the others. So this commit adds a warning message in case that data=journal mode is used, so the user is informed that the mode has been deprecated and we do not recommend using it.
Signed-off-by Lukas Czerner <[email protected]>---
fs/ext4/super.c| 4 ++++1 files changed, 4 insertions(+), 0 deletions(-)fs/ext4/super.c +0
-0fs/ext4/super.c static int parse_options(char *options, struct super_block *sb, · line 1637
Quoted 7 lines
fs/ext4/super.c +4
-0@@ -1631,6 +1631,10 @@ static int parse_options(char *options, struct super_block *sb, sbi->s_min_batch_time = option;break ;case Opt_data_journal: +ext4_msg (sb,KERN_WARNING , +"Using data=journal is not recommended. It " +"has been deprecated and can be removed " +"in the future" );I'd rather reword this to be something like:
Quoted 3 lines
Using data=journal may be removed in the future. Contact [email protected] if you are using this feature.
And this should at least appear in some vendor kernels (e.g. RHEL6) before we make any decision on whether to remove it.
Hi Andreas,
thanks for the rewording, it sounds better. I kind of miss the mention of "not supporting it", but that's ok. I agree that we would need some time before we can really remove the feature. This is just the first step to be able to remove it sooner :).
Thanks!
-Lukas
Quoted 15 lines
Cheers, Andreas
Quoted 10 lines
fs/ext4/super.c +0
-0data_opt =EXT4_MOUNT_JOURNAL_DATA ; goto datacheck;case Opt_data_ordered:Signature · 6 lines
1.7.4.4 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html