Re: attributes of renamed file

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Mike Eisler (mre@eng.sun.com)
Date: 03/07/00-09:31:04 AM Z


Date: Tue, 7 Mar 2000 07:31:04 -0800 (PST)
From: Mike Eisler <mre@eng.sun.com>
Subject: Re: attributes of renamed file
Message-ID: <Roam.SIMC.2.0.6.952443064.1721.mre@eng.sun.com>

> > >      stat ("foo", &sb2);
> > >      if (sb.st_ino != sb2.st_ino || sb.st_mtime != sb2.st_mtime || ...)
> > >          || sb.st_ctime != sb2.st_ctime || ...)
> > >        warn ("File has been modified.  Really save?");

> > The client that supposedly doesn't know which file handle has been
> "renamed" > (the file handle doesn't change btw), is the one that did the
> rename.  > The client thus knows to flush its attributes.
> 
> No, because there is a race condition.  If no one else touches the
> file system, the client knows what file it has renamed.  If another
> user changes things around at just the right time, howeve, the rename
> will actually apply to another file.

Sorry, I guess I'm dense, but I don't see what problem you are trying to
solve, and how adding an a ctime to the results of the of
REANME will solve it. 

	-mre


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.2 : 03/04/05-01:48:07 AM Z CST