xfs
[Top] [All Lists]

Re: [NEWBIE] Why aren't directory mtimes updated like other filesystems?

To: "Kevin P. Fleming" <kpfleming@xxxxxxx>
Subject: Re: [NEWBIE] Why aren't directory mtimes updated like other filesystems?
From: Steve Lord <lord@xxxxxxx>
Date: 13 Mar 2003 14:57:25 -0600
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <3E70ECD9.2080008@xxxxxxx>
Organization:
References: <3E70E46A.20901@xxxxxxx> <1047586257.30836.58.camel@xxxxxxxxxxxxxxxxxxxx> <3E70ECD9.2080008@xxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Thu, 2003-03-13 at 14:40, Kevin P. Fleming wrote:
> Steve Lord wrote:
> > Well, the code is there to do this, and, when I modify a directory it
> > does change the times:
> > 
> > jen{lord}: stat .
> >   File: "."
> >   Size: 4096            Blocks: 8          IO Block: 4096   Directory
> > Device: 804h/2052d      Inode: 131         Links: 28   
> > Access: (0755/drwxr-xr-x)  Uid: (  858/    lord)   Gid: ( 1015/ network)
> > Access: Thu Mar 13 14:08:25 2003
> > Modify: Thu Mar 13 10:50:35 2003
> > Change: Thu Mar 13 10:50:35 2003
> > 
> > jen{lord}: touch foo
> > jen{lord}:  stat .
> >   File: "."
> >   Size: 4096            Blocks: 8          IO Block: 4096   Directory
> > Device: 804h/2052d      Inode: 131         Links: 28   
> > Access: (0755/drwxr-xr-x)  Uid: (  858/    lord)   Gid: ( 1015/ network)
> > Access: Thu Mar 13 14:08:25 2003
> > Modify: Thu Mar 13 14:10:28 2003
> > Change: Thu Mar 13 14:10:28 2003
> > 
> 
> Strange, I try exactly the same commands and the ctime gets updated but the 
> mtime does not. Are you running on 2.5?

Ah, this is 2.4, I don't have a spare box for 2.5 here right now,
but I know someone who does. The core xfs code is the same, and it
is updating the timestamp fields in the inode. Possibly it is
something in the stat path.

Steve

-- 

Steve Lord                                      voice: +1-651-683-3511
Principal Engineer, Filesystem Software         email: lord@xxxxxxx


<Prev in Thread] Current Thread [Next in Thread>