From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,bcd3a42930fe41e4 X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,bcd3a42930fe41e4 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-12-28 13:55:13 PST Path: nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!hudson.lm.com!nntp.club.cc.cmu.edu!cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!andrew.cmu.edu!postman+ From: Bruce_Leverett@transarc.com Newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc Subject: Re: Need help with DFS Date: Wed, 28 Dec 1994 16:12:32 -0500 Organization: Carnegie Mellon, Pittsburgh, PA Distribution: world Message-ID: References: <3dbg9q$mrg@ilex.fernuni-hagen.de> NNTP-Posting-Host: po5.andrew.cmu.edu In-Reply-To: <3dbg9q$mrg@ilex.fernuni-hagen.de> Xref: nntp.gmd.de comp.unix.osf.osf1:7036 comp.unix.osf.misc:2179 >Does anyone know if it is possible in DFS for two >clients to open for read/write the same file and >then concurrently write at disjoint areas of the >file? Two clients can open for read/write the same file, and then concurrently write at any area of the file. All data written by either client will be immediately visible to the other client, until it is overwritten. These semantics are supported, whether or not the clients are writing to disjoint "areas". These semantics are identical to those supported by Unix file systems on single-processor systems. In the DFS implementation of these semantics, the file is divided into "chunks",and the default size of a chunk is 64K bytes. When a client first accesses a chunk, it asks the server, and the server sends it the data, along with a "token", which is a promise that the client can read or modify the data. If two clients are concurrently accessing the same "chunk", the chunk's data and the corresponding tokens will be passed back and forth along the network from one client to the server, then to the other client, then back to the server, and so on. If this happens frequently, the performance of the system may be unsatisfactory. Nevertheless, the correct semantics are preserved, as described above.