From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,2d717934f08f5df8 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-05-20 09:35:33 PST Path: bga.com!news.sprintlink.net!hookup!news.moneng.mei.com!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.duke.edu!godot.cc.duq.edu!toads.pgh.pa.us!news.sei.cmu.edu!bb3.andrew.cmu.edu!andrew.cmu.edu!cfe+ From: Craig_Everhart@transarc.com Newsgroups: comp.unix.osf.misc Subject: Re: DFS / cache manager- Questions Date: Fri, 20 May 1994 12:25:03 -0400 Organization: Sponsored account, Systems Group 82, Carnegie Mellon, Pittsburgh, PA Message-ID: References: NNTP-Posting-Host: andrew.cmu.edu In-Reply-To: Excerpts from netnews.comp.unix.osf.misc: 19-May-94 DFS / cache manager- Questions Lisianne MARZANI@merle.a (1042) > 1. How is the cache manager supposed to behave when the server goes down? > How long does it keep data locally and allow cached files to be read by an > application on the client? It's a conservative cache manager implementation; it doesn't want to violate Posix semantics. After the DFS CM has understood that the server has gone down (a matter of a couple of minutes) but before the server has returned to service, new filesystem calls will return error codes, probably ETIMEDOUT. Open file descriptors that receive no new calls won't be destroyed; instead, the CM attempts to regain its Posix single-site synchronization state. If this is successful, the CM will allow re-use of these file descriptors. If not, uses of those file descriptors will fail with ESTALE. > 2. What should happen if a user (on the client ) wants to WRITE out a file > after the server has gone down ? The commands 'cm lsstores/cm resetstores' > make me think that the cache manager keeps the modified data in the cache > and attempt to contact the server, I suppose during a limited period of > time. Is it the same time-out as in question 1) ? The application is told via the ETIMEDOUT or ESTALE error code. It's an independent timeout, set to 20 minutes. > 3. Also in that case, I assume that the user application is informed that > the data cannot be written to the Server. But is the application informed > of the *final* result of the operation ( I mean : whether the cache > manager has or not finally managed to reach the server ) ? The application is informed at close() or fsync() time. If there's no error from these calls, all data has been stored back. Craig