Jacob Robert Wilkins
2005-Feb-04 18:36 UTC
[Dovecot] Problems with dovecot using Maildir on JFS.
Howdy, I have dovecot installed on CentOS (rhel3 clone), and I'm using Dag's dovecot package. I have postfix setup to deliver to Maildir, in /home. The /home volume was formatted with JFS. In this setup, both Outlook and Thunderbird would not show any new mail unless they were completely shutdown and restarted. I have moved /home to an ext3 formatted and all is well. Anyone have any insight on this? Thanks, jrw
On Fri, 2005-02-04 at 13:36 -0500, Jacob Robert Wilkins wrote:> I have postfix setup to deliver to Maildir, in /home. > > The /home volume was formatted with JFS. > > In this setup, both Outlook and Thunderbird would not show any new mail > unless they were completely shutdown and restarted. > > I have moved /home to an ext3 formatted and all is well. > > Anyone have any insight on this?I already replied to this in IRC, but for others too: JFS doesn't update directory's mtime when files are added, removed or renamed in it. So Dovecot can't know when the maildir has changed without constantly reading its contents. With Linux's dnotify this could be kind of worked around, but I'm not really interested about doing that. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20050209/30c3b3c4/attachment-0001.bin>
On 02/09/2005 02:15:18 PM, Timo Sirainen wrote:> On Fri, 2005-02-04 at 13:36 -0500, Jacob Robert Wilkins wrote: > > I have postfix setup to deliver to Maildir, in /home. > > > > The /home volume was formatted with JFS. > > > > In this setup, both Outlook and Thunderbird would not show any new mail > > unless they were completely shutdown and restarted. > > > > I have moved /home to an ext3 formatted and all is well. > > > > Anyone have any insight on this? > > I already replied to this in IRC, but for others too: > > JFS doesn't update directory's mtime when files are added, removed or > renamed in it.Really? I figured that wouldn't be difficult to fix in the kernel, so I looked at the source (linux-2.6.11-rc2/fs/jfs/namei.c). The parent mtime _is_ updated (dip->i_ctime = dip->i_mtime = CURRENT_TIME;) in jfs_create(), jfs_mkdir(), jfs_rmdir(), jfs_unlink(), jfs_rename() + mtime is changed in old_dir and new_dir for rename... So what's the story here? Willem Riede.
On Wed, 9 Feb 2005, Timo Sirainen wrote:> JFS doesn't update directory's mtime when files are added, removed or > renamed in it.I'm curious - just when does it update a directory's mtime? -- Charlie A: Because we read from top to bottom, left to right. Q: Why should i start my reply below the quoted text?
On 02/09/2005 02:15:18 PM, Timo Sirainen wrote:> > JFS doesn't update directory's mtime when files are added, removed or > renamed in it. So Dovecot can't know when the maildir has changed > without constantly reading its contents. With Linux's dnotify this could > be kind of worked around, but I'm not really interested about doing > that.[wriede at serve ~]$ mount | grep jfs /dev/mapper/VolGroup00-LogVol01 on /home type jfs (rw) [wriede at serve ~]$ mkdir try [wriede at serve ~]$ stat -c%y try 2005-02-12 10:27:30.923695153 -0500 [wriede at serve ~]$ date Sat Feb 12 10:28:25 EST 2005 [wriede at serve ~]$ touch try/afile [wriede at serve ~]$ stat -c%y try 2005-02-12 10:28:37.978676796 -0500 [wriede at serve ~]$ date Sat Feb 12 10:28:48 EST 2005 [wriede at serve ~]$ mv try/afile try/somethingelse [wriede at serve ~]$ stat -c%y try 2005-02-12 10:29:33.456596795 -0500 [wriede at serve ~]$ date Sat Feb 12 10:29:43 EST 2005 [wriede at serve ~]$ rm try/somethingelse [wriede at serve ~]$ stat -c%y try 2005-02-12 10:29:51.707964720 -0500 [wriede at serve ~]$ date Sat Feb 12 10:30:08 EST 2005 [wriede at serve ~]$ man stat NAME stat - display file or filesystem status ... %y Time of last modification Comments? Willem Riede.