Re: RENAME

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

From: Brent Callaghan (Brent.Callaghan@eng.sun.com)
Date: 09/23/99-12:30:03 PM Z


Date: Thu, 23 Sep 1999 10:30:03 -0700 (PDT)
From: Brent Callaghan <Brent.Callaghan@eng.sun.com>
Message-Id: <199909231730.KAA22056@terra.eng.sun.com>
Subject: Re: RENAME


G. Allen Morris III writes:
> I would like to add a mechanism that would inform clients that
> filehandles go stale after a rename.
> 
> The client could then update any openfiles that it renamed with:
> 
>     PUTFH  (source dir)
> 	RENAME "a" (dest dir) "b"
> 	SAVEFH
> 	PUTFH  (dest dir)
> 	LOOKUPFH "b" ("a"'s filehandle)	 # a new operation
> 	GETFH
> 	RESTOREFH


I don't see any advantage with a LOOKUPFH operation
tell you that the filehandle is different.

Why not do a regular LOOKUP, return the filehandle
unconditionally and have the client use it ?  If
it's a new filehandle that's good.  If it's the same
old filehandle - no harm done.

	Brent


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:47:38 AM Z CST