lkml.org 
[lkml]   [2000]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: File System issue
On Wed, Oct 11, 2000 at 10:52:08AM -0700, Emmanuel STAPF wrote:
> Hi,
>
> I find out that doing the following command:
> cp toto titi/toto
> where toto is a file and titi is a directory do not change the date stamp of
> `titi'.
>
> Doing the same on Solaris 2.4 or 2.5 does it?
>
> Could someone point me on the reason for this behavior?


Assuming that you have EXT2 filesystem in the first place...
(You don't mention what kernel version you have (uname -a),
nor what type of filesystem is it where you did the test.)


If the 'titi/toto' file does not exist, and thus the directory
modification does happen, then the timestamp will change.
(If 'titi/toto' file exists, then an overwrite on it is done,
AND THE DIRECTORY WILL NOT CHANGE.)

One "problem" is that "ls -ld titi" will show only MINUTES,
which means you HAVE TO wait for the "date" command to show
different minute before proceeding with file creation after
you created the directory.

There definitely will be difference, but you won't see it.

rm -rf titi
mkdir titi
sleep 90
ls -ld titi
cp toto titi/toto
ls -lf titi

Are you still not seeing date change ?

> Thanks in advance,
> Regards,
> Manu
> ----------------------------------------------------------
> ISE Building, 2nd floor, 270 Storke Road, Goleta CA 93117
> Customer support: http://support.eiffel.com
> Product information: <info@eiffel.com>
> http://eiffel.com

/Matti Aarnio
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:39    [W:0.041 / U:1.776 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site