* [PATCH] ext3: Fix synchronization of quota files in journal=data mode
@ 2008-04-30 15:06 Jan Kara
2008-04-30 15:06 ` [PATCH] ext4: " Jan Kara
0 siblings, 1 reply; 15+ messages in thread
From: Jan Kara @ 2008-04-30 15:06 UTC (permalink / raw)
To: Andrew Morton; +Cc: LKML, Jan Kara, linux-ext4
In journal=data mode, it is not enough to do write_inode_now as done in
vfs_quota_on() to write all data to their final location (which is needed
for quota_read to work correctly). Calling journal_flush() does its job.
Reported-by: Nick <gentuu@gmail.com>
Cc: linux-ext4@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
---
fs/ext3/super.c | 35 +++++++++++++++++++++++++++--------
1 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index fe3119a..1c7b0fc 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -2759,23 +2759,42 @@ static int ext3_quota_on(struct super_block *sb, int type, int format_id,
if (!test_opt(sb, QUOTA))
return -EINVAL;
- /* Not journalling quota or remount? */
- if ((!EXT3_SB(sb)->s_qf_names[USRQUOTA] &&
- !EXT3_SB(sb)->s_qf_names[GRPQUOTA]) || remount)
+ /* When remounting, no checks are needed and in fact, path is NULL */
+ if (remount)
return vfs_quota_on(sb, type, format_id, path, remount);
+
err = path_lookup(path, LOOKUP_FOLLOW, &nd);
if (err)
return err;
+
/* Quotafile not on the same filesystem? */
if (nd.path.mnt->mnt_sb != sb) {
path_put(&nd.path);
return -EXDEV;
}
- /* Quotafile not in fs root? */
- if (nd.path.dentry->d_parent->d_inode != sb->s_root->d_inode)
- printk(KERN_WARNING
- "EXT3-fs: Quota file not on filesystem root. "
- "Journalled quota will not work.\n");
+ /* Journaling quota? */
+ if (EXT3_SB(sb)->s_qf_names[type]) {
+ /* Quotafile not of fs root? */
+ if (nd.path.dentry->d_parent->d_inode != sb->s_root->d_inode)
+ printk(KERN_WARNING
+ "EXT3-fs: Quota file not on filesystem root. "
+ "Journaled quota will not work.\n");
+ }
+
+ /*
+ * When we journal data on quota file, we have to flush journal to see
+ * all updates to the file when we bypass pagecache...
+ */
+ if (ext3_should_journal_data(nd.path.dentry->d_inode)) {
+ /*
+ * We don't need to lock updates but journal_flush() could
+ * otherwise be livelocked...
+ */
+ journal_lock_updates(EXT3_SB(sb)->s_journal);
+ journal_flush(EXT3_SB(sb)->s_journal);
+ journal_unlock_updates(EXT3_SB(sb)->s_journal);
+ }
+
path_put(&nd.path);
return vfs_quota_on(sb, type, format_id, path, remount);
}
--
1.5.2.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH] ext4: Fix synchronization of quota files in journal=data mode
2008-04-30 15:06 [PATCH] ext3: Fix synchronization of quota files in journal=data mode Jan Kara
@ 2008-04-30 15:06 ` Jan Kara
[not found] ` <12095679812452-git-send-email-jack@suse.cz>
0 siblings, 1 reply; 15+ messages in thread
From: Jan Kara @ 2008-04-30 15:06 UTC (permalink / raw)
To: Andrew Morton; +Cc: LKML, Jan Kara, linux-ext4
In journal=data mode, it is not enough to do write_inode_now as done in
vfs_quota_on() to write all data to their final location (which is needed
for quota_read to work correctly). Calling journal_flush() does its job.
Cc: linux-ext4@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
---
fs/ext4/super.c | 35 +++++++++++++++++++++++++++--------
1 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 52dd067..f6ab164 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3153,23 +3153,42 @@ static int ext4_quota_on(struct super_block *sb, int type, int format_id,
if (!test_opt(sb, QUOTA))
return -EINVAL;
- /* Not journalling quota? */
- if ((!EXT4_SB(sb)->s_qf_names[USRQUOTA] &&
- !EXT4_SB(sb)->s_qf_names[GRPQUOTA]) || remount)
+ /* When remounting, no checks are needed and in fact, path is NULL */
+ if (remount)
return vfs_quota_on(sb, type, format_id, path, remount);
+
err = path_lookup(path, LOOKUP_FOLLOW, &nd);
if (err)
return err;
+
/* Quotafile not on the same filesystem? */
if (nd.path.mnt->mnt_sb != sb) {
path_put(&nd.path);
return -EXDEV;
}
- /* Quotafile not of fs root? */
- if (nd.path.dentry->d_parent->d_inode != sb->s_root->d_inode)
- printk(KERN_WARNING
- "EXT4-fs: Quota file not on filesystem root. "
- "Journalled quota will not work.\n");
+ /* Journaling quota? */
+ if (EXT4_SB(sb)->s_qf_names[type]) {
+ /* Quotafile not of fs root? */
+ if (nd.path.dentry->d_parent->d_inode != sb->s_root->d_inode)
+ printk(KERN_WARNING
+ "EXT4-fs: Quota file not on filesystem root. "
+ "Journaled quota will not work.\n");
+ }
+
+ /*
+ * When we journal data on quota file, we have to flush journal to see
+ * all updates to the file when we bypass pagecache...
+ */
+ if (ext4_should_journal_data(nd.path.dentry->d_inode)) {
+ /*
+ * We don't need to lock updates but journal_flush() could
+ * otherwise be livelocked...
+ */
+ jbd2_journal_lock_updates(EXT4_SB(sb)->s_journal);
+ jbd2_journal_flush(EXT4_SB(sb)->s_journal);
+ jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal);
+ }
+
path_put(&nd.path);
return vfs_quota_on(sb, type, format_id, path, remount);
}
--
1.5.2.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled)
[not found] ` <12095679812452-git-send-email-jack@suse.cz>
@ 2008-04-30 15:06 ` Jan Kara
2008-04-30 15:06 ` [PATCH] ext4: " Jan Kara
2008-04-30 17:43 ` [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled) Andrew Morton
0 siblings, 2 replies; 15+ messages in thread
From: Jan Kara @ 2008-04-30 15:06 UTC (permalink / raw)
To: Andrew Morton; +Cc: LKML, Jan Kara, linux-ext4
Cc: linux-ext4@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
---
fs/ext3/super.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 1c7b0fc..890e72f 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -1020,7 +1020,7 @@ static int parse_options (char *options, struct super_block *sb,
set_qf_name:
if (sb_any_quota_enabled(sb)) {
printk(KERN_ERR
- "EXT3-fs: Cannot change journalled "
+ "EXT3-fs: Cannot change journaled "
"quota options when quota turned on.\n");
return 0;
}
@@ -1058,7 +1058,7 @@ set_qf_name:
clear_qf_name:
if (sb_any_quota_enabled(sb)) {
printk(KERN_ERR "EXT3-fs: Cannot change "
- "journalled quota options when "
+ "journaled quota options when "
"quota turned on.\n");
return 0;
}
@@ -1169,14 +1169,14 @@ clear_qf_name:
}
if (!sbi->s_jquota_fmt) {
- printk(KERN_ERR "EXT3-fs: journalled quota format "
+ printk(KERN_ERR "EXT3-fs: journaled quota format "
"not specified.\n");
return 0;
}
} else {
if (sbi->s_jquota_fmt) {
- printk(KERN_ERR "EXT3-fs: journalled quota format "
- "specified with no journalling "
+ printk(KERN_ERR "EXT3-fs: journaled quota format "
+ "specified with no journaling "
"enabled.\n");
return 0;
}
@@ -1370,7 +1370,7 @@ static void ext3_orphan_cleanup (struct super_block * sb,
int ret = ext3_quota_on_mount(sb, i);
if (ret < 0)
printk(KERN_ERR
- "EXT3-fs: Cannot turn on journalled "
+ "EXT3-fs: Cannot turn on journaled "
"quota: error %d\n", ret);
}
}
@@ -2712,7 +2712,7 @@ static int ext3_release_dquot(struct dquot *dquot)
static int ext3_mark_dquot_dirty(struct dquot *dquot)
{
- /* Are we journalling quotas? */
+ /* Are we journaling quotas? */
if (EXT3_SB(dquot->dq_sb)->s_qf_names[USRQUOTA] ||
EXT3_SB(dquot->dq_sb)->s_qf_names[GRPQUOTA]) {
dquot_mark_dquot_dirty(dquot);
--
1.5.2.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH] ext4: Fix typos in messages and comments (journalled -> journaled)
2008-04-30 15:06 ` [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled) Jan Kara
@ 2008-04-30 15:06 ` Jan Kara
[not found] ` <12095679812717-git-send-email-jack@suse.cz>
2008-04-30 17:43 ` [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled) Andrew Morton
1 sibling, 1 reply; 15+ messages in thread
From: Jan Kara @ 2008-04-30 15:06 UTC (permalink / raw)
To: Andrew Morton; +Cc: LKML, Jan Kara, linux-ext4
Cc: linux-ext4@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
---
fs/ext4/super.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index f6ab164..49099e4 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -1164,7 +1164,7 @@ static int parse_options (char *options, struct super_block *sb,
set_qf_name:
if (sb_any_quota_enabled(sb)) {
printk(KERN_ERR
- "EXT4-fs: Cannot change journalled "
+ "EXT4-fs: Cannot change journaled "
"quota options when quota turned on.\n");
return 0;
}
@@ -1202,7 +1202,7 @@ set_qf_name:
clear_qf_name:
if (sb_any_quota_enabled(sb)) {
printk(KERN_ERR "EXT4-fs: Cannot change "
- "journalled quota options when "
+ "journaled quota options when "
"quota turned on.\n");
return 0;
}
@@ -1248,7 +1248,7 @@ clear_qf_name:
case Opt_jqfmt_vfsold:
case Opt_jqfmt_vfsv0:
printk(KERN_ERR
- "EXT4-fs: journalled quota options not "
+ "EXT4-fs: journaled quota options not "
"supported.\n");
break;
case Opt_noquota:
@@ -1333,14 +1333,14 @@ clear_qf_name:
}
if (!sbi->s_jquota_fmt) {
- printk(KERN_ERR "EXT4-fs: journalled quota format "
+ printk(KERN_ERR "EXT4-fs: journaled quota format "
"not specified.\n");
return 0;
}
} else {
if (sbi->s_jquota_fmt) {
- printk(KERN_ERR "EXT4-fs: journalled quota format "
- "specified with no journalling "
+ printk(KERN_ERR "EXT4-fs: journaled quota format "
+ "specified with no journaling "
"enabled.\n");
return 0;
}
@@ -1581,7 +1581,7 @@ static void ext4_orphan_cleanup (struct super_block * sb,
int ret = ext4_quota_on_mount(sb, i);
if (ret < 0)
printk(KERN_ERR
- "EXT4-fs: Cannot turn on journalled "
+ "EXT4-fs: Cannot turn on journaled "
"quota: error %d\n", ret);
}
}
@@ -3106,7 +3106,7 @@ static int ext4_release_dquot(struct dquot *dquot)
static int ext4_mark_dquot_dirty(struct dquot *dquot)
{
- /* Are we journalling quotas? */
+ /* Are we journaling quotas? */
if (EXT4_SB(dquot->dq_sb)->s_qf_names[USRQUOTA] ||
EXT4_SB(dquot->dq_sb)->s_qf_names[GRPQUOTA]) {
dquot_mark_dquot_dirty(dquot);
--
1.5.2.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH] ext3: Correct mount option parsing to detect when quota options can be changed
[not found] ` <12095679824183-git-send-email-jack@suse.cz>
@ 2008-04-30 15:06 ` Jan Kara
2008-04-30 15:06 ` [PATCH] ext4: " Jan Kara
0 siblings, 1 reply; 15+ messages in thread
From: Jan Kara @ 2008-04-30 15:06 UTC (permalink / raw)
To: Andrew Morton; +Cc: LKML, Jan Kara, linux-ext4
We should not allow user to change quota mount options when quota is just
suspended. I would make mount options and internal quota state inconsistent.
Also we should not allow user to change quota format when quota is turned on.
On the other hand we can just silently ignore when some option is set to the
value it already has (mount does this on remount).
Cc: linux-ext4@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
---
fs/ext3/super.c | 29 ++++++++++++++++++++++-------
1 files changed, 22 insertions(+), 7 deletions(-)
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 890e72f..0b6f924 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -842,7 +842,7 @@ static int parse_options (char *options, struct super_block *sb,
int data_opt = 0;
int option;
#ifdef CONFIG_QUOTA
- int qtype;
+ int qtype, qfmt;
char *qname;
#endif
@@ -1018,7 +1018,9 @@ static int parse_options (char *options, struct super_block *sb,
case Opt_grpjquota:
qtype = GRPQUOTA;
set_qf_name:
- if (sb_any_quota_enabled(sb)) {
+ if ((sb_any_quota_enabled(sb) ||
+ sb_any_quota_suspended(sb)) &&
+ !sbi->s_qf_names[qtype]) {
printk(KERN_ERR
"EXT3-fs: Cannot change journaled "
"quota options when quota turned on.\n");
@@ -1056,7 +1058,9 @@ set_qf_name:
case Opt_offgrpjquota:
qtype = GRPQUOTA;
clear_qf_name:
- if (sb_any_quota_enabled(sb)) {
+ if ((sb_any_quota_enabled(sb) ||
+ sb_any_quota_suspended(sb)) &&
+ sbi->s_qf_names[qtype]) {
printk(KERN_ERR "EXT3-fs: Cannot change "
"journaled quota options when "
"quota turned on.\n");
@@ -1069,10 +1073,20 @@ clear_qf_name:
sbi->s_qf_names[qtype] = NULL;
break;
case Opt_jqfmt_vfsold:
- sbi->s_jquota_fmt = QFMT_VFS_OLD;
- break;
+ qfmt = QFMT_VFS_OLD;
+ goto set_qf_format;
case Opt_jqfmt_vfsv0:
- sbi->s_jquota_fmt = QFMT_VFS_V0;
+ qfmt = QFMT_VFS_V0;
+set_qf_format:
+ if ((sb_any_quota_enabled(sb) ||
+ sb_any_quota_suspended(sb)) &&
+ sbi->s_jquota_fmt != qfmt) {
+ printk(KERN_ERR "EXT3-fs: Cannot change "
+ "journaled quota options when "
+ "quota turned on.\n");
+ return 0;
+ }
+ sbi->s_jquota_fmt = qfmt;
break;
case Opt_quota:
case Opt_usrquota:
@@ -1084,7 +1098,8 @@ clear_qf_name:
set_opt(sbi->s_mount_opt, GRPQUOTA);
break;
case Opt_noquota:
- if (sb_any_quota_enabled(sb)) {
+ if (sb_any_quota_enabled(sb) ||
+ sb_any_quota_suspended(sb)) {
printk(KERN_ERR "EXT3-fs: Cannot change quota "
"options when quota turned on.\n");
return 0;
--
1.5.2.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH] ext4: Correct mount option parsing to detect when quota options can be changed
2008-04-30 15:06 ` [PATCH] ext3: Correct mount option parsing to detect when quota options can be changed Jan Kara
@ 2008-04-30 15:06 ` Jan Kara
0 siblings, 0 replies; 15+ messages in thread
From: Jan Kara @ 2008-04-30 15:06 UTC (permalink / raw)
To: Andrew Morton; +Cc: LKML, Jan Kara, linux-ext4
We should not allow user to change quota mount options when quota is just
suspended. I would make mount options and internal quota state inconsistent.
Also we should not allow user to change quota format when quota is turned on.
On the other hand we can just silently ignore when some option is set to the
value it already has (mount does this on remount).
Cc: linux-ext4@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
---
fs/ext4/super.c | 26 ++++++++++++++++++++------
1 files changed, 20 insertions(+), 6 deletions(-)
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 49099e4..4f0588a 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -979,7 +979,7 @@ static int parse_options (char *options, struct super_block *sb,
int data_opt = 0;
int option;
#ifdef CONFIG_QUOTA
- int qtype;
+ int qtype, qfmt;
char *qname;
#endif
@@ -1162,7 +1162,9 @@ static int parse_options (char *options, struct super_block *sb,
case Opt_grpjquota:
qtype = GRPQUOTA;
set_qf_name:
- if (sb_any_quota_enabled(sb)) {
+ if ((sb_any_quota_enabled(sb) ||
+ sb_any_quota_suspended(sb)) &&
+ !sbi->s_qf_names[qtype]) {
printk(KERN_ERR
"EXT4-fs: Cannot change journaled "
"quota options when quota turned on.\n");
@@ -1200,7 +1202,9 @@ set_qf_name:
case Opt_offgrpjquota:
qtype = GRPQUOTA;
clear_qf_name:
- if (sb_any_quota_enabled(sb)) {
+ if ((sb_any_quota_enabled(sb) ||
+ sb_any_quota_suspended(sb)) &&
+ sbi->s_qf_names[qtype]) {
printk(KERN_ERR "EXT4-fs: Cannot change "
"journaled quota options when "
"quota turned on.\n");
@@ -1213,10 +1217,20 @@ clear_qf_name:
sbi->s_qf_names[qtype] = NULL;
break;
case Opt_jqfmt_vfsold:
- sbi->s_jquota_fmt = QFMT_VFS_OLD;
- break;
+ qfmt = QFMT_VFS_OLD;
+ goto set_qf_format;
case Opt_jqfmt_vfsv0:
- sbi->s_jquota_fmt = QFMT_VFS_V0;
+ qfmt = QFMT_VFS_V0;
+set_qf_format:
+ if ((sb_any_quota_enabled(sb) ||
+ sb_any_quota_suspended(sb)) &&
+ sbi->s_jquota_fmt != qfmt) {
+ printk(KERN_ERR "EXT4-fs: Cannot change "
+ "journaled quota options when "
+ "quota turned on.\n");
+ return 0;
+ }
+ sbi->s_jquota_fmt = qfmt;
break;
case Opt_quota:
case Opt_usrquota:
--
1.5.2.4
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled)
2008-04-30 15:06 ` [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled) Jan Kara
2008-04-30 15:06 ` [PATCH] ext4: " Jan Kara
@ 2008-04-30 17:43 ` Andrew Morton
2008-04-30 20:27 ` Alan Cox
2008-05-05 10:09 ` Jan Kara
1 sibling, 2 replies; 15+ messages in thread
From: Andrew Morton @ 2008-04-30 17:43 UTC (permalink / raw)
To: Jan Kara; +Cc: linux-kernel, jack, linux-ext4
On Wed, 30 Apr 2008 17:06:15 +0200
Jan Kara <jack@suse.cz> wrote:
> - "EXT3-fs: Cannot change journalled "
> + "EXT3-fs: Cannot change journaled "
hrm, who said?
Dictionary.com recognises neither.
google(journalled) = 520,000
google(journaled) = 652,000
akpm:/usr/src/25> grep journalled fs/ext3/*.c|wc -l
17
akpm:/usr/src/25> grep journaled fs/ext3/*.c|wc -l
6
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled)
2008-04-30 17:43 ` [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled) Andrew Morton
@ 2008-04-30 20:27 ` Alan Cox
2008-04-30 22:02 ` Dave Kleikamp
2008-05-05 10:09 ` Jan Kara
1 sibling, 1 reply; 15+ messages in thread
From: Alan Cox @ 2008-04-30 20:27 UTC (permalink / raw)
To: Andrew Morton; +Cc: Jan Kara, linux-kernel, linux-ext4
On Wed, 30 Apr 2008 10:43:30 -0700
Andrew Morton <akpm@linux-foundation.org> wrote:
> On Wed, 30 Apr 2008 17:06:15 +0200
> Jan Kara <jack@suse.cz> wrote:
>
> > - "EXT3-fs: Cannot change journalled "
> > + "EXT3-fs: Cannot change journaled "
>
> hrm, who said?
This has come up several times before so I thought it might be time to
finally dig to the bottom of the pile and end it forever.
I put on my library hat and went for a dig: the verb is in fact "to
journalize", which according to the OED means
"enter (notes or information) in a journal"
Journal itself is strictly a noun. Thus in English it would be correct
for a file system to have a journal (from the latin diurnalis if anyone
cares) but it would appear that it is a journalizing file system.
The American dictionaries appear to agree with this viewpoint.
If we regard "journalizing" as incorrect then the natural way to end the
word would be -lled for British English and -led would certainly sound
and feel wrong. Indeed the search for the OED turns journalled into
journal when guessing near words but refuses to consider journaled. Our
existing policy is not to mess with US v UK v AU v CA v .. spelling
and that is probably wise.
A search of the ACM literature finds "journalized", "journalled" and
"journaled" are all in use for this operation.
I would submit the correct patch is to change the words to journalizing
and journalized. That would put Linux in agreement with the dictionary,
avoid US v UK meaning differences and not pose a problem linguistically
as all forms are currently in use.
Alan
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled)
2008-04-30 20:27 ` Alan Cox
@ 2008-04-30 22:02 ` Dave Kleikamp
2008-04-30 23:20 ` Alan Cox
2008-05-03 6:32 ` SL Baur
0 siblings, 2 replies; 15+ messages in thread
From: Dave Kleikamp @ 2008-04-30 22:02 UTC (permalink / raw)
To: Alan Cox; +Cc: Andrew Morton, Jan Kara, linux-kernel, linux-ext4
On Wed, 2008-04-30 at 21:27 +0100, Alan Cox wrote:
> On Wed, 30 Apr 2008 10:43:30 -0700
> Andrew Morton <akpm@linux-foundation.org> wrote:
>
> > On Wed, 30 Apr 2008 17:06:15 +0200
> > Jan Kara <jack@suse.cz> wrote:
> >
> > > - "EXT3-fs: Cannot change journalled "
> > > + "EXT3-fs: Cannot change journaled "
> >
> > hrm, who said?
>
> This has come up several times before so I thought it might be time to
> finally dig to the bottom of the pile and end it forever.
>
> I put on my library hat and went for a dig: the verb is in fact "to
> journalize", which according to the OED means
>
> "enter (notes or information) in a journal"
>
> Journal itself is strictly a noun. Thus in English it would be correct
> for a file system to have a journal (from the latin diurnalis if anyone
> cares) but it would appear that it is a journalizing file system.
>
> The American dictionaries appear to agree with this viewpoint.
>
> If we regard "journalizing" as incorrect then the natural way to end the
> word would be -lled for British English and -led would certainly sound
> and feel wrong. Indeed the search for the OED turns journalled into
> journal when guessing near words but refuses to consider journaled. Our
> existing policy is not to mess with US v UK v AU v CA v .. spelling
> and that is probably wise.
>
> A search of the ACM literature finds "journalized", "journalled" and
> "journaled" are all in use for this operation.
I hate to get into these discussions, but I've used "journaled" a lot,
so I feel I should chime in.
Maybe it's different in the UK, but I've always understood that if the
accent is not on the last syllable, then you do not double the final
vowel: offer, offered. So if we accept the use of "journal" as a verb,
"journaled" would be correct.
Since it's not a real word, I'd be happy not to make a big deal out of
it and accept either, so I think we're in agreement.
> I would submit the correct patch is to change the words to journalizing
> and journalized. That would put Linux in agreement with the dictionary,
> avoid US v UK meaning differences and not pose a problem linguistically
> as all forms are currently in use.
That would probably be more correct, but the use of "journal" as a verb
has really gotten ingrained in file system developers brains. I
personally haven't heard or used "journalized" and it would take some
getting used to.
Shaggy
P.S. Evolution's spell-checker doesn't like "journalize" either, but I
trust that it's correct.
--
David Kleikamp
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled)
2008-04-30 22:02 ` Dave Kleikamp
@ 2008-04-30 23:20 ` Alan Cox
2008-05-01 2:28 ` Dave Kleikamp
2008-05-01 10:01 ` Joe Fegan
2008-05-03 6:32 ` SL Baur
1 sibling, 2 replies; 15+ messages in thread
From: Alan Cox @ 2008-04-30 23:20 UTC (permalink / raw)
To: Dave Kleikamp; +Cc: Andrew Morton, Jan Kara, linux-kernel, linux-ext4
> > A search of the ACM literature finds "journalized", "journalled" and
> > "journaled" are all in use for this operation.
>
> I hate to get into these discussions, but I've used "journaled" a lot,
> so I feel I should chime in.
I noticed and IBM cannot even agree internally 8)
"Tivoli Storage Manager Journal Based Backup troubleshooting techniques
and solutions to common problems seen with journalized backups and the
journal database. This is from a 2005_November_07 Support Technical
Exchange Web seminar presented by TSM Support staff"
"IBM Journaled File System (JFS)"
> That would probably be more correct, but the use of "journal" as a verb
> has really gotten ingrained in file system developers brains. I
> personally haven't heard or used "journalized" and it would take some
> getting used to.
Mandrake use Journalized File System in various press articles. Mac
people seem to like journalized too and google shows it used in various
reviews and articles.
I think I'm going to follow this up with the professional bodies and see
if there is an opinion because either the computing world needs to agree
on a proper English name, or they need to agree on a new one and talk to
the dictionary people about it.
Alan
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled)
2008-04-30 23:20 ` Alan Cox
@ 2008-05-01 2:28 ` Dave Kleikamp
2008-05-01 9:47 ` Alan Cox
2008-05-01 10:01 ` Joe Fegan
1 sibling, 1 reply; 15+ messages in thread
From: Dave Kleikamp @ 2008-05-01 2:28 UTC (permalink / raw)
To: Alan Cox; +Cc: Andrew Morton, Jan Kara, linux-kernel, linux-ext4
On Thu, 2008-05-01 at 00:20 +0100, Alan Cox wrote:
> > > A search of the ACM literature finds "journalized", "journalled" and
> > > "journaled" are all in use for this operation.
> >
> > I hate to get into these discussions, but I've used "journaled" a lot,
> > so I feel I should chime in.
>
> I noticed and IBM cannot even agree internally 8)
>
> "Tivoli Storage Manager Journal Based Backup troubleshooting techniques
> and solutions to common problems seen with journalized backups and the
> journal database. This is from a 2005_November_07 Support Technical
> Exchange Web seminar presented by TSM Support staff"
>
> "IBM Journaled File System (JFS)"
IBM's big. What can I say? :-)
> > That would probably be more correct, but the use of "journal" as a verb
> > has really gotten ingrained in file system developers brains. I
> > personally haven't heard or used "journalized" and it would take some
> > getting used to.
>
> Mandrake use Journalized File System in various press articles. Mac
> people seem to like journalized too and google shows it used in various
> reviews and articles.
I guess it's more common that I thought.
> I think I'm going to follow this up with the professional bodies and see
> if there is an opinion because either the computing world needs to agree
> on a proper English name, or they need to agree on a new one and talk to
> the dictionary people about it.
If there's some kind of consensus, I don't have strong feelings either
way.
--
David Kleikamp
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled)
2008-05-01 2:28 ` Dave Kleikamp
@ 2008-05-01 9:47 ` Alan Cox
0 siblings, 0 replies; 15+ messages in thread
From: Alan Cox @ 2008-05-01 9:47 UTC (permalink / raw)
To: Dave Kleikamp; +Cc: Andrew Morton, Jan Kara, linux-kernel, linux-ext4
> > I think I'm going to follow this up with the professional bodies and see
> > if there is an opinion because either the computing world needs to agree
> > on a proper English name, or they need to agree on a new one and talk to
> > the dictionary people about it.
>
> If there's some kind of consensus, I don't have strong feelings either
> way.
BCS: "BCS use the OED as the final arbiter, without the zeds though...so
journalise is what we'd use if we absolutely had to."
I don't know if anyone has the right ACM contacts to find out what the
other big professional body thinks ?
Alan
^ permalink raw reply [flat|nested] 15+ messages in thread
* RE: [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled)
2008-04-30 23:20 ` Alan Cox
2008-05-01 2:28 ` Dave Kleikamp
@ 2008-05-01 10:01 ` Joe Fegan
1 sibling, 0 replies; 15+ messages in thread
From: Joe Fegan @ 2008-05-01 10:01 UTC (permalink / raw)
To: Alan Cox, Dave Kleikamp; +Cc: Andrew Morton, Jan Kara, linux-kernel, linux-ext4
Then again, I would consider journalize to be the US version of journalise
> Date: Thu, 1 May 2008 00:20:18 +0100
> From: alan@lxorguk.ukuu.org.uk
> To: shaggy@linux.vnet.ibm.com
> CC: akpm@linux-foundation.org; jack@suse.cz; linux-kernel@vger.kernel.org; linux-ext4@vger.kernel.org
> Subject: Re: [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled)
>
>>> A search of the ACM literature finds "journalized", "journalled" and
>>> "journaled" are all in use for this operation.
>>
>> I hate to get into these discussions, but I've used "journaled" a lot,
>> so I feel I should chime in.
>
> I noticed and IBM cannot even agree internally 8)
>
> "Tivoli Storage Manager Journal Based Backup troubleshooting techniques
> and solutions to common problems seen with journalized backups and the
> journal database. This is from a 2005_November_07 Support Technical
> Exchange Web seminar presented by TSM Support staff"
>
> "IBM Journaled File System (JFS)"
>
>
>> That would probably be more correct, but the use of "journal" as a verb
>> has really gotten ingrained in file system developers brains. I
>> personally haven't heard or used "journalized" and it would take some
>> getting used to.
>
> Mandrake use Journalized File System in various press articles. Mac
> people seem to like journalized too and google shows it used in various
> reviews and articles.
>
> I think I'm going to follow this up with the professional bodies and see
> if there is an opinion because either the computing world needs to agree
> on a proper English name, or they need to agree on a new one and talk to
> the dictionary people about it.
>
>
> Alan
> --
> 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
_________________________________________________________________
Windows Live Spaces – your life, your Space. Click here to find out more.
http://get.live.com/spaces/overview--
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] 15+ messages in thread
* Re: [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled)
2008-04-30 22:02 ` Dave Kleikamp
2008-04-30 23:20 ` Alan Cox
@ 2008-05-03 6:32 ` SL Baur
1 sibling, 0 replies; 15+ messages in thread
From: SL Baur @ 2008-05-03 6:32 UTC (permalink / raw)
To: Dave Kleikamp; +Cc: Alan Cox, Andrew Morton, Jan Kara, linux-kernel, linux-ext4
On 4/30/08, Dave Kleikamp <shaggy@linux.vnet.ibm.com> wrote:
> I hate to get into these discussions, but I've used "journaled" a lot,
> so I feel I should chime in.
>
> Maybe it's different in the UK, but I've always understood that if the
> accent is not on the last syllable, then you do not double the final
> vowel: offer, offered. So if we accept the use of "journal" as a verb,
> "journaled" would be correct.
So I have been taught as well. Merriam-Webster says:
The word you've entered isn't in the dictionary. Click on a spelling
suggestion below or try again using the search bar above.
Suggestions for journalled:
1. journalese 2. journalized
3. journalize 4. journals
5. journalizer 6. journeyed
7. journal 8. journal box
9. Journalist 10. julienned
11. junketed 12. generally
13. generals 14. journaleses
15. Journalism 16. General
17. gillnetted 18. gingered
19. journalizes 20. gendered
I'd suggest using neither M-W or OED as sole references and accept
spellings from both. Past experience has shown me that this is one
area where there will *never* be consensus.
-sb
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled)
2008-04-30 17:43 ` [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled) Andrew Morton
2008-04-30 20:27 ` Alan Cox
@ 2008-05-05 10:09 ` Jan Kara
1 sibling, 0 replies; 15+ messages in thread
From: Jan Kara @ 2008-05-05 10:09 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, linux-ext4
On Wed 30-04-08 10:43:30, Andrew Morton wrote:
> On Wed, 30 Apr 2008 17:06:15 +0200
> Jan Kara <jack@suse.cz> wrote:
>
> > - "EXT3-fs: Cannot change journalled "
> > + "EXT3-fs: Cannot change journaled "
>
> hrm, who said?
>
> Dictionary.com recognises neither.
>
> google(journalled) = 520,000
> google(journaled) = 652,000
google.cz gives like 250k vs 519k, interesting. Anyway, I'm happy to
leave the decision on the proper spelling of the verb to people with better
English skills ;).
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2008-05-05 10:09 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-30 15:06 [PATCH] ext3: Fix synchronization of quota files in journal=data mode Jan Kara
2008-04-30 15:06 ` [PATCH] ext4: " Jan Kara
[not found] ` <12095679812452-git-send-email-jack@suse.cz>
2008-04-30 15:06 ` [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled) Jan Kara
2008-04-30 15:06 ` [PATCH] ext4: " Jan Kara
[not found] ` <12095679812717-git-send-email-jack@suse.cz>
[not found] ` <12095679824183-git-send-email-jack@suse.cz>
2008-04-30 15:06 ` [PATCH] ext3: Correct mount option parsing to detect when quota options can be changed Jan Kara
2008-04-30 15:06 ` [PATCH] ext4: " Jan Kara
2008-04-30 17:43 ` [PATCH] ext3: Fix typos in messages and comments (journalled -> journaled) Andrew Morton
2008-04-30 20:27 ` Alan Cox
2008-04-30 22:02 ` Dave Kleikamp
2008-04-30 23:20 ` Alan Cox
2008-05-01 2:28 ` Dave Kleikamp
2008-05-01 9:47 ` Alan Cox
2008-05-01 10:01 ` Joe Fegan
2008-05-03 6:32 ` SL Baur
2008-05-05 10:09 ` Jan Kara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox