Mailinglist Archive: opensuse (2459 mails)

< Previous Next >
Re: [opensuse] mv and cpio have new behavior. How do I get the old back?
  • From: Boyd Lynn Gerber <gerberb@xxxxxxxxx>
  • Date: Tue, 25 Mar 2008 20:26:38 -0600
  • Message-id: <Pine.LNX.4.64.0803252023060.26263@xxxxxxxxxxxxxxx>
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

mkdir etc-new
mv etc etc.* etc-new/
mv etc-new etc

The above was the result.

Boyd Gerber <gerberb@xxxxxxxxx>
ZENEZ 1042 East Fort Union #135, Midvale Utah 84047
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >