On Tue, 25 Mar 2008, Boyd Lynn Gerber wrote:
On Wed, 26 Mar 2008, Anders Johansson wrote:
On Tue, 2008-03-25 at 20:12 -0600, Boyd Lynn Gerber wrote:
On Wed, 26 Mar 2008, Anders Johansson wrote:
On Tue, 2008-03-25 at 13:09 -0600, Boyd Lynn Gerber wrote:
Both, but I am mainly using the xfs. I have a lot of small files. The files themselves keep their times, but the directories all change.
ls -l shows you the mtime of a file or directory, i.e. the time it was modified. Did something change inside the directory?
No, nothing changed. Here is what ls -l shows
osr6:/home/zenez/etc # ls -l total 144 -rw-r--r-- 1 root root 32520 2007-11-03 12:03 SuSEfirewall2 drwxr-xr-x 259 root root 16384 2008-03-23 09:47 etc drwxr-xr-x 153 root root 12288 2008-03-23 09:47 etc.ecom4 drwxr-xr-x 4 root root 35 2008-03-23 09:47 etc.hold drwxr-xr-x 2 root root 75 2008-03-23 09:47 etc.sav drwxr-xr-x 225 root root 16384 2008-03-23 09:47 etc.start drwxr-xr-x 192 root root 16384 2008-03-23 09:47 etc.suse
Notice only the directory timestamp has changed. also note they all have the same time. All the files within the directories have there orignal timestamps. Only the directories have changed.
Ok, I can reproduce this on xfs, not on ext3, and I think I understand why it is happening.
The directories *are* changing. Specifically, the .. dentry is changed to point to the inode of the new parent directory. In your ls output I'm willing to bet that you moved the directory to another partition, which means your directory got a new inode number, which in turn means all .. dentries in all subdirectories had to be updated
So to my mind it is correct that the mtime gets updated. I see it more as a problem with ext that it doesn't get updated there
They did not change partitions. They were all in /home/zenez/ This directory was getting to many directories to follow. I did the following
mkdir etc-new mv etc etc.* etc-new/ mv etc-new etc
The above was the result.
I do not see the problem on reiserfs. How do I get xfs to not do this? I
do not see it all the time on ext3. I have been fusing with it all day.
XFS always does it. EXT3 seems to do it randomly. REISERFS never. EXT3
to XFS does, EXT3 to REISERFS does not(at least in todays tests). I am
currently doing a 58 GB cpio from my ext3 to XFS and it has been running
now for 6 hours. I will do some more testing once it finishes.
--
Boyd Gerber