All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4: Deprecate data=journal mount option
@ 2011-06-27 15:37 Lukas Czerner
  2011-06-27 16:48 ` Andreas Dilger
  0 siblings, 1 reply; 3+ messages in thread
From: Lukas Czerner @ 2011-06-27 15:37 UTC (permalink / raw)
  To: linux-ext4; +Cc: tytso, jack, sandeen, 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 <lczerner@redhat.com>
---
 fs/ext4/super.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 9ea71aa..d5a3dea 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -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:
-- 
1.7.4.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ext4: Deprecate data=journal mount option
  2011-06-27 15:37 [PATCH] ext4: Deprecate data=journal mount option Lukas Czerner
@ 2011-06-27 16:48 ` Andreas Dilger
  2011-06-27 17:56   ` Lukas Czerner
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Dilger @ 2011-06-27 16:48 UTC (permalink / raw)
  To: Lukas Czerner; +Cc: linux-ext4, tytso, jack, sandeen, Lukas Czerner

On 2011-06-27, at 9:37 AM, Lukas Czerner <lczerner@redhat.com> wrote:

> 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 <lczerner@redhat.com>
> ---
> fs/ext4/super.c |    4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/ext4/super.c b/fs/ext4/super.c
> index 9ea71aa..d5a3dea 100644
> --- a/fs/ext4/super.c
> +++ b/fs/ext4/super.c
> @@ -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 linux-ext4@vger.kernel.org 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


>            data_opt = EXT4_MOUNT_JOURNAL_DATA;
>            goto datacheck;
>        case Opt_data_ordered:
> -- 
> 1.7.4.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ext4: Deprecate data=journal mount option
  2011-06-27 16:48 ` Andreas Dilger
@ 2011-06-27 17:56   ` Lukas Czerner
  0 siblings, 0 replies; 3+ messages in thread
From: Lukas Czerner @ 2011-06-27 17:56 UTC (permalink / raw)
  To: Andreas Dilger; +Cc: Lukas Czerner, linux-ext4, tytso, jack, sandeen

On Mon, 27 Jun 2011, Andreas Dilger wrote:

> On 2011-06-27, at 9:37 AM, Lukas Czerner <lczerner@redhat.com> wrote:
> 
> > 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 <lczerner@redhat.com>
> > ---
> > fs/ext4/super.c |    4 ++++
> > 1 files changed, 4 insertions(+), 0 deletions(-)
> > 
> > diff --git a/fs/ext4/super.c b/fs/ext4/super.c
> > index 9ea71aa..d5a3dea 100644
> > --- a/fs/ext4/super.c
> > +++ b/fs/ext4/super.c
> > @@ -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 linux-ext4@vger.kernel.org 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

> 
> Cheers, Andreas
> 
> 
> >            data_opt = EXT4_MOUNT_JOURNAL_DATA;
> >            goto datacheck;
> >        case Opt_data_ordered:
> > -- 
> > 1.7.4.4
> > 
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-27 17:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-27 15:37 [PATCH] ext4: Deprecate data=journal mount option Lukas Czerner
2011-06-27 16:48 ` Andreas Dilger
2011-06-27 17:56   ` Lukas Czerner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.