bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fs/ext2/namei.c: dir link/unlink bug? [Re: mv changes dir timestamp


From: Nilmoni Deb
Subject: Re: fs/ext2/namei.c: dir link/unlink bug? [Re: mv changes dir timestamp
Date: Thu, 4 Oct 2001 13:24:55 -0400 (EDT)

On Thu, 4 Oct 2001, Albert D. Cahalan wrote:

> Bob Proulx writes:
> 
> > I tested this on both HP-UX, IBM AIX and Linux.  HP-UX always
> > preserved the previous timestamps.  The same with 2.2.x versions of
> > Linux.  AIX was different and preserved the previous timestamp if
> > the .. entry was the same as before but updated the timestamp if .. was
> > different than before.  But in the case where no real changes occurred
> > none updated the timestamp.  It would be interesting to see what
> > Sun's Solaris and other systems do in those cases.  This does not seem
> > like a huge deal.  There were differences in the different commercial
> > flavors.  But I like to think that we can do better than that.
> 
> Compaq Tru64 5    No time change in any case.
> 

I tested it on Solaris 2.7 . No time stamp change in any of these two
cases ->

mv tmp tmp1
mv tmp ..

In the 1st case there is no justification for time change bcos even the ..
link inside the dir has not changed. In the 2nd case, there may be some
justification but it will lead to a lot of confusion. When there is
nothing to gain and something to lose why make such a change from
traditional behavior ?

thanks
- Nil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]