€•VŒsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ$/translations/zh_CN/filesystems/coda”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/zh_TW/filesystems/coda”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/it_IT/filesystems/coda”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/ja_JP/filesystems/coda”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/ko_KR/filesystems/coda”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/pt_BR/filesystems/coda”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/sp_SP/filesystems/coda”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)�”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…”�”}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³Œ>/var/lib/git/docbuild/linux/Documentation/filesystems/coda.rst”h´KubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒCoda Kernel-Venus Interface”h]”hŒCoda Kernel-Venus Interface”…”�”}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒnote”“”)�”}”(hŒƒThis is one of the technical documents describing a component of Coda -- this document describes the client kernel-Venus interface.”h]”hŒ paragraph”“”)�”}”(hŒƒThis is one of the technical documents describing a component of Coda -- this document describes the client kernel-Venus interface.”h]”hŒƒThis is one of the technical documents describing a component of Coda -- this document describes the client kernel-Venus interface.”…”�”}”(hhåh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K hhßubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhhÊh²hh³hÇh´Nubhä)�”}”(hŒFor more information:”h]”hŒFor more information:”…”�”}”(hhùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K hhÊh²hubhŒ block_quote”“”)�”}”(hŒhttp://www.coda.cs.cmu.edu ”h]”hä)�”}”(hŒhttp://www.coda.cs.cmu.edu”h]”hŒ reference”“”)�”}”(hjh]”hŒhttp://www.coda.cs.cmu.edu”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”juh1jhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Khj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´KhhÊh²hubhä)�”}”(hŒ+For user level software needed to run Coda:”h]”hŒ+For user level software needed to run Coda:”…”�”}”(hj-h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KhhÊh²hubj)�”}”(hŒftp://ftp.coda.cs.cmu.edu ”h]”hä)�”}”(hŒftp://ftp.coda.cs.cmu.edu”h]”j)�”}”(hjAh]”hŒftp://ftp.coda.cs.cmu.edu”…”�”}”(hjCh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jAuh1jhj?ubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Khj;ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´KhhÊh²hubhä)�”}”(hŒÜTo run Coda you need to get a user level cache manager for the client, named Venus, as well as tools to manipulate ACLs, to log in, etc. The client needs to have the Coda filesystem selected in the kernel configuration.”h]”hŒÜTo run Coda you need to get a user level cache manager for the client, named Venus, as well as tools to manipulate ACLs, to log in, etc. The client needs to have the Coda filesystem selected in the kernel configuration.”…”�”}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KhhÊh²hubhä)�”}”(hŒVThe server needs a user level server and at present does not depend on kernel support.”h]”hŒVThe server needs a user level server and at present does not depend on kernel support.”…”�”}”(hjkh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KhhÊh²hubj)�”}”(hXAThe Venus kernel interface Peter J. Braam v1.0, Nov 9, 1997 This document describes the communication between Venus and kernel level filesystem code needed for the operation of the Coda file sys- tem. This document version is meant to describe the current interface (version 1.0) as well as improvements we envisage. ”h]”(hä)�”}”(hŒThe Venus kernel interface”h]”hŒThe Venus kernel interface”…”�”}”(hj}h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Khjyubhä)�”}”(hŒPeter J. Braam”h]”hŒPeter J. Braam”…”�”}”(hj‹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Khjyubhä)�”}”(hŒv1.0, Nov 9, 1997”h]”hŒv1.0, Nov 9, 1997”…”�”}”(hj™h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K hjyubhä)�”}”(hXThis document describes the communication between Venus and kernel level filesystem code needed for the operation of the Coda file sys- tem. This document version is meant to describe the current interface (version 1.0) as well as improvements we envisage.”h]”hXThis document describes the communication between Venus and kernel level filesystem code needed for the operation of the Coda file sys- tem. This document version is meant to describe the current interface (version 1.0) as well as improvements we envisage.”…”�”}”(hj§h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K"hjyubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´KhhÊh²hubh¶)�”}”(hXGTable of Contents 1. Introduction 2. Servicing Coda filesystem calls 3. The message layer 3.1 Implementation details 4. The interface at the call level 4.1 Data structures shared by the kernel and Venus 4.2 The pioctl interface 4.3 root 4.4 lookup 4.5 getattr 4.6 setattr 4.7 access 4.8 create 4.9 mkdir 4.10 link 4.11 symlink 4.12 remove 4.13 rmdir 4.14 readlink 4.15 open 4.16 close 4.17 ioctl 4.18 rename 4.19 readdir 4.20 vget 4.21 fsync 4.22 inactive 4.23 rdwr 4.24 odymount 4.25 ody_lookup 4.26 ody_expand 4.27 prefetch 4.28 signal 5. The minicache and downcalls 5.1 INVALIDATE 5.2 FLUSH 5.3 PURGEUSER 5.4 ZAPFILE 5.5 ZAPDIR 5.6 ZAPVNODE 5.7 PURGEFID 5.8 REPLACE 6. Initialization and cleanup 6.1 Requirements”h]”hXGTable of Contents 1. Introduction 2. Servicing Coda filesystem calls 3. The message layer 3.1 Implementation details 4. The interface at the call level 4.1 Data structures shared by the kernel and Venus 4.2 The pioctl interface 4.3 root 4.4 lookup 4.5 getattr 4.6 setattr 4.7 access 4.8 create 4.9 mkdir 4.10 link 4.11 symlink 4.12 remove 4.13 rmdir 4.14 readlink 4.15 open 4.16 close 4.17 ioctl 4.18 rename 4.19 readdir 4.20 vget 4.21 fsync 4.22 inactive 4.23 rdwr 4.24 odymount 4.25 ody_lookup 4.26 ody_expand 4.27 prefetch 4.28 signal 5. The minicache and downcalls 5.1 INVALIDATE 5.2 FLUSH 5.3 PURGEUSER 5.4 ZAPFILE 5.5 ZAPDIR 5.6 ZAPVNODE 5.7 PURGEFID 5.8 REPLACE 6. Initialization and cleanup 6.1 Requirements”…”�”}”hj»sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1hµhhÊh²hh³hÇh´K^ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ1. Introduction”h]”hŒ1. Introduction”…”�”}”(hjÌh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÉh²hh³hÇh´K`ubj)�”}”(hXIA key component in the Coda Distributed File System is the cache manager, Venus. When processes on a Coda enabled system access files in the Coda filesystem, requests are directed at the filesystem layer in the operating system. The operating system will communicate with Venus to service the request for the process. Venus manages a persistent client cache and makes remote procedure calls to Coda file servers and related servers (such as authentication servers) to service these requests it receives from the operating system. When Venus has serviced a request it replies to the operating system with appropriate return codes, and other data related to the request. Optionally the kernel support for Coda may maintain a minicache of recently processed requests to limit the number of interactions with Venus. Venus possesses the facility to inform the kernel when elements from its minicache are no longer valid. This document describes precisely this communication between the kernel and Venus. The definitions of so called upcalls and downcalls will be given with the format of the data they handle. We shall also describe the semantic invariants resulting from the calls. Historically Coda was implemented in a BSD file system in Mach 2.6. The interface between the kernel and Venus is very similar to the BSD VFS interface. Similar functionality is provided, and the format of the parameters and returned data is very similar to the BSD VFS. This leads to an almost natural environment for implementing a kernel-level filesystem driver for Coda in a BSD system. However, other operating systems such as Linux and Windows 95 and NT have virtual filesystem with different interfaces. To implement Coda on these systems some reverse engineering of the Venus/Kernel protocol is necessary. Also it came to light that other systems could profit significantly from certain small optimizations and modifications to the protocol. To facilitate this work as well as to make future ports easier, communication between Venus and the kernel should be documented in great detail. This is the aim of this document. ”h]”(hä)�”}”(hŒPA key component in the Coda Distributed File System is the cache manager, Venus.”h]”hŒPA key component in the Coda Distributed File System is the cache manager, Venus.”…”�”}”(hjÞh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KbhjÚubhä)�”}”(hXFWhen processes on a Coda enabled system access files in the Coda filesystem, requests are directed at the filesystem layer in the operating system. The operating system will communicate with Venus to service the request for the process. Venus manages a persistent client cache and makes remote procedure calls to Coda file servers and related servers (such as authentication servers) to service these requests it receives from the operating system. When Venus has serviced a request it replies to the operating system with appropriate return codes, and other data related to the request. Optionally the kernel support for Coda may maintain a minicache of recently processed requests to limit the number of interactions with Venus. Venus possesses the facility to inform the kernel when elements from its minicache are no longer valid.”h]”hXFWhen processes on a Coda enabled system access files in the Coda filesystem, requests are directed at the filesystem layer in the operating system. The operating system will communicate with Venus to service the request for the process. Venus manages a persistent client cache and makes remote procedure calls to Coda file servers and related servers (such as authentication servers) to service these requests it receives from the operating system. When Venus has serviced a request it replies to the operating system with appropriate return codes, and other data related to the request. Optionally the kernel support for Coda may maintain a minicache of recently processed requests to limit the number of interactions with Venus. Venus possesses the facility to inform the kernel when elements from its minicache are no longer valid.”…”�”}”(hjìh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KehjÚubhä)�”}”(hXThis document describes precisely this communication between the kernel and Venus. The definitions of so called upcalls and downcalls will be given with the format of the data they handle. We shall also describe the semantic invariants resulting from the calls.”h]”hXThis document describes precisely this communication between the kernel and Venus. The definitions of so called upcalls and downcalls will be given with the format of the data they handle. We shall also describe the semantic invariants resulting from the calls.”…”�”}”(hjúh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KshjÚubhä)�”}”(hXHistorically Coda was implemented in a BSD file system in Mach 2.6. The interface between the kernel and Venus is very similar to the BSD VFS interface. Similar functionality is provided, and the format of the parameters and returned data is very similar to the BSD VFS. This leads to an almost natural environment for implementing a kernel-level filesystem driver for Coda in a BSD system. However, other operating systems such as Linux and Windows 95 and NT have virtual filesystem with different interfaces.”h]”hXHistorically Coda was implemented in a BSD file system in Mach 2.6. The interface between the kernel and Venus is very similar to the BSD VFS interface. Similar functionality is provided, and the format of the parameters and returned data is very similar to the BSD VFS. This leads to an almost natural environment for implementing a kernel-level filesystem driver for Coda in a BSD system. However, other operating systems such as Linux and Windows 95 and NT have virtual filesystem with different interfaces.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KxhjÚubhä)�”}”(hX£To implement Coda on these systems some reverse engineering of the Venus/Kernel protocol is necessary. Also it came to light that other systems could profit significantly from certain small optimizations and modifications to the protocol. To facilitate this work as well as to make future ports easier, communication between Venus and the kernel should be documented in great detail. This is the aim of this document.”h]”hX£To implement Coda on these systems some reverse engineering of the Venus/Kernel protocol is necessary. Also it came to light that other systems could profit significantly from certain small optimizations and modifications to the protocol. To facilitate this work as well as to make future ports easier, communication between Venus and the kernel should be documented in great detail. This is the aim of this document.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K�hjÚubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´KbhjÉh²hubeh}”(h]”Œ introduction”ah ]”h"]”Œ1. introduction”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K`ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ#2. Servicing Coda filesystem calls”h]”hŒ#2. Servicing Coda filesystem calls”…”�”}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj2h²hh³hÇh´KŠubj)�”}”(hX The service of a request for a Coda file system service originates in a process P which accessing a Coda file. It makes a system call which traps to the OS kernel. Examples of such calls trapping to the kernel are ``read``, ``write``, ``open``, ``close``, ``create``, ``mkdir``, ``rmdir``, ``chmod`` in a Unix context. Similar calls exist in the Win32 environment, and are named ``CreateFile``. Generally the operating system handles the request in a virtual filesystem (VFS) layer, which is named I/O Manager in NT and IFS manager in Windows 95. The VFS is responsible for partial processing of the request and for locating the specific filesystem(s) which will service parts of the request. Usually the information in the path assists in locating the correct FS drivers. Sometimes after extensive pre-processing, the VFS starts invoking exported routines in the FS driver. This is the point where the FS specific processing of the request starts, and here the Coda specific kernel code comes into play. The FS layer for Coda must expose and implement several interfaces. First and foremost the VFS must be able to make all necessary calls to the Coda FS layer, so the Coda FS driver must expose the VFS interface as applicable in the operating system. These differ very significantly among operating systems, but share features such as facilities to read/write and create and remove objects. The Coda FS layer services such VFS requests by invoking one or more well defined services offered by the cache manager Venus. When the replies from Venus have come back to the FS driver, servicing of the VFS call continues and finishes with a reply to the kernel's VFS. Finally the VFS layer returns to the process. As a result of this design a basic interface exposed by the FS driver must allow Venus to manage message traffic. In particular Venus must be able to retrieve and place messages and to be notified of the arrival of a new message. The notification must be through a mechanism which does not block Venus since Venus must attend to other tasks even when no messages are waiting or being processed. **Interfaces of the Coda FS Driver** Furthermore the FS layer provides for a special path of communication between a user process and Venus, called the pioctl interface. The pioctl interface is used for Coda specific services, such as requesting detailed information about the persistent cache managed by Venus. Here the involvement of the kernel is minimal. It identifies the calling process and passes the information on to Venus. When Venus replies the response is passed back to the caller in unmodified form. Finally Venus allows the kernel FS driver to cache the results from certain services. This is done to avoid excessive context switches and results in an efficient system. However, Venus may acquire information, for example from the network which implies that cached information must be flushed or replaced. Venus then makes a downcall to the Coda FS layer to request flushes or updates in the cache. The kernel FS driver handles such requests synchronously. Among these interfaces the VFS interface and the facility to place, receive and be notified of messages are platform specific. We will not go into the calls exported to the VFS layer but we will state the requirements of the message exchange mechanism. ”h]”(hä)�”}”(hX‹The service of a request for a Coda file system service originates in a process P which accessing a Coda file. It makes a system call which traps to the OS kernel. Examples of such calls trapping to the kernel are ``read``, ``write``, ``open``, ``close``, ``create``, ``mkdir``, ``rmdir``, ``chmod`` in a Unix context. Similar calls exist in the Win32 environment, and are named ``CreateFile``.”h]”(hŒÖThe service of a request for a Coda file system service originates in a process P which accessing a Coda file. It makes a system call which traps to the OS kernel. Examples of such calls trapping to the kernel are ”…”�”}”(hjGh²hh³Nh´NubhŒliteral”“”)�”}”(hŒ``read``”h]”hŒread”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jOhjGubhŒ, ”…”�”}”(hjGh²hh³Nh´NubjP)�”}”(hŒ ``write``”h]”hŒwrite”…”�”}”(hjch²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jOhjGubhŒ, ”…”�”}”hjGsbjP)�”}”(hŒ``open``”h]”hŒopen”…”�”}”(hjuh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jOhjGubhŒ, ”…”�”}”hjGsbjP)�”}”(hŒ ``close``”h]”hŒclose”…”�”}”(hj‡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jOhjGubhŒ, ”…”�”}”hjGsbjP)�”}”(hŒ ``create``”h]”hŒcreate”…”�”}”(hj™h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jOhjGubhŒ, ”…”�”}”hjGsbjP)�”}”(hŒ ``mkdir``”h]”hŒmkdir”…”�”}”(hj«h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jOhjGubhŒ, ”…”�”}”(hjGh²hh³Nh´NubjP)�”}”(hŒ ``rmdir``”h]”hŒrmdir”…”�”}”(hj½h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jOhjGubhŒ, ”…”�”}”hjGsbjP)�”}”(hŒ ``chmod``”h]”hŒchmod”…”�”}”(hjÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jOhjGubhŒQ in a Unix context. Similar calls exist in the Win32 environment, and are named ”…”�”}”(hjGh²hh³Nh´NubjP)�”}”(hŒ``CreateFile``”h]”hŒ CreateFile”…”�”}”(hjáh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jOhjGubhŒ.”…”�”}”(hjGh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KŒhjCubhä)�”}”(hXeGenerally the operating system handles the request in a virtual filesystem (VFS) layer, which is named I/O Manager in NT and IFS manager in Windows 95. The VFS is responsible for partial processing of the request and for locating the specific filesystem(s) which will service parts of the request. Usually the information in the path assists in locating the correct FS drivers. Sometimes after extensive pre-processing, the VFS starts invoking exported routines in the FS driver. This is the point where the FS specific processing of the request starts, and here the Coda specific kernel code comes into play.”h]”hXeGenerally the operating system handles the request in a virtual filesystem (VFS) layer, which is named I/O Manager in NT and IFS manager in Windows 95. The VFS is responsible for partial processing of the request and for locating the specific filesystem(s) which will service parts of the request. Usually the information in the path assists in locating the correct FS drivers. Sometimes after extensive pre-processing, the VFS starts invoking exported routines in the FS driver. This is the point where the FS specific processing of the request starts, and here the Coda specific kernel code comes into play.”…”�”}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K“hjCubhä)�”}”(hXÃThe FS layer for Coda must expose and implement several interfaces. First and foremost the VFS must be able to make all necessary calls to the Coda FS layer, so the Coda FS driver must expose the VFS interface as applicable in the operating system. These differ very significantly among operating systems, but share features such as facilities to read/write and create and remove objects. The Coda FS layer services such VFS requests by invoking one or more well defined services offered by the cache manager Venus. When the replies from Venus have come back to the FS driver, servicing of the VFS call continues and finishes with a reply to the kernel's VFS. Finally the VFS layer returns to the process.”h]”hXÅThe FS layer for Coda must expose and implement several interfaces. First and foremost the VFS must be able to make all necessary calls to the Coda FS layer, so the Coda FS driver must expose the VFS interface as applicable in the operating system. These differ very significantly among operating systems, but share features such as facilities to read/write and create and remove objects. The Coda FS layer services such VFS requests by invoking one or more well defined services offered by the cache manager Venus. When the replies from Venus have come back to the FS driver, servicing of the VFS call continues and finishes with a reply to the kernel’s VFS. Finally the VFS layer returns to the process.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KžhjCubhä)�”}”(hX‹As a result of this design a basic interface exposed by the FS driver must allow Venus to manage message traffic. In particular Venus must be able to retrieve and place messages and to be notified of the arrival of a new message. The notification must be through a mechanism which does not block Venus since Venus must attend to other tasks even when no messages are waiting or being processed.”h]”hX‹As a result of this design a basic interface exposed by the FS driver must allow Venus to manage message traffic. In particular Venus must be able to retrieve and place messages and to be notified of the arrival of a new message. The notification must be through a mechanism which does not block Venus since Venus must attend to other tasks even when no messages are waiting or being processed.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KªhjCubhä)�”}”(hŒ$**Interfaces of the Coda FS Driver**”h]”hŒstrong”“”)�”}”(hj%h]”hŒ Interfaces of the Coda FS Driver”…”�”}”(hj)h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j'hj#ubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K±hjCubhä)�”}”(hXÞFurthermore the FS layer provides for a special path of communication between a user process and Venus, called the pioctl interface. The pioctl interface is used for Coda specific services, such as requesting detailed information about the persistent cache managed by Venus. Here the involvement of the kernel is minimal. It identifies the calling process and passes the information on to Venus. When Venus replies the response is passed back to the caller in unmodified form.”h]”hXÞFurthermore the FS layer provides for a special path of communication between a user process and Venus, called the pioctl interface. The pioctl interface is used for Coda specific services, such as requesting detailed information about the persistent cache managed by Venus. Here the involvement of the kernel is minimal. It identifies the calling process and passes the information on to Venus. When Venus replies the response is passed back to the caller in unmodified form.”…”�”}”(hj<h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K³hjCubhä)�”}”(hXÌFinally Venus allows the kernel FS driver to cache the results from certain services. This is done to avoid excessive context switches and results in an efficient system. However, Venus may acquire information, for example from the network which implies that cached information must be flushed or replaced. Venus then makes a downcall to the Coda FS layer to request flushes or updates in the cache. The kernel FS driver handles such requests synchronously.”h]”hXÌFinally Venus allows the kernel FS driver to cache the results from certain services. This is done to avoid excessive context switches and results in an efficient system. However, Venus may acquire information, for example from the network which implies that cached information must be flushed or replaced. Venus then makes a downcall to the Coda FS layer to request flushes or updates in the cache. The kernel FS driver handles such requests synchronously.”…”�”}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K¼hjCubhä)�”}”(hŒýAmong these interfaces the VFS interface and the facility to place, receive and be notified of messages are platform specific. We will not go into the calls exported to the VFS layer but we will state the requirements of the message exchange mechanism.”h]”hŒýAmong these interfaces the VFS interface and the facility to place, receive and be notified of messages are platform specific. We will not go into the calls exported to the VFS layer but we will state the requirements of the message exchange mechanism.”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KÄhjCubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´KŒhj2h²hubeh}”(h]”Œservicing-coda-filesystem-calls”ah ]”h"]”Œ"2. servicing coda filesystem calls”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KŠubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ3. The message layer”h]”hŒ3. The message layer”…”�”}”(hjwh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjth²hh³hÇh´KËubj)�”}”(hX±At the lowest level the communication between Venus and the FS driver proceeds through messages. The synchronization between processes requesting Coda file service and Venus relies on blocking and waking up processes. The Coda FS driver processes VFS- and pioctl-requests on behalf of a process P, creates messages for Venus, awaits replies and finally returns to the caller. The implementation of the exchange of messages is platform specific, but the semantics have (so far) appeared to be generally applicable. Data buffers are created by the FS Driver in kernel memory on behalf of P and copied to user memory in Venus. The FS Driver while servicing P makes upcalls to Venus. Such an upcall is dispatched to Venus by creating a message structure. The structure contains the identification of P, the message sequence number, the size of the request and a pointer to the data in kernel memory for the request. Since the data buffer is re-used to hold the reply from Venus, there is a field for the size of the reply. A flags field is used in the message to precisely record the status of the message. Additional platform dependent structures involve pointers to determine the position of the message on queues and pointers to synchronization objects. In the upcall routine the message structure is filled in, flags are set to 0, and it is placed on the *pending* queue. The routine calling upcall is responsible for allocating the data buffer; its structure will be described in the next section. A facility must exist to notify Venus that the message has been created, and implemented using available synchronization objects in the OS. This notification is done in the upcall context of the process P. When the message is on the pending queue, process P cannot proceed in upcall. The (kernel mode) processing of P in the filesystem request routine must be suspended until Venus has replied. Therefore the calling thread in P is blocked in upcall. A pointer in the message structure will locate the synchronization object on which P is sleeping. Venus detects the notification that a message has arrived, and the FS driver allow Venus to retrieve the message with a getmsg_from_kernel call. This action finishes in the kernel by putting the message on the queue of processing messages and setting flags to READ. Venus is passed the contents of the data buffer. The getmsg_from_kernel call now returns and Venus processes the request. At some later point the FS driver receives a message from Venus, namely when Venus calls sendmsg_to_kernel. At this moment the Coda FS driver looks at the contents of the message and decides if: * the message is a reply for a suspended thread P. If so it removes the message from the processing queue and marks the message as WRITTEN. Finally, the FS driver unblocks P (still in the kernel mode context of Venus) and the sendmsg_to_kernel call returns to Venus. The process P will be scheduled at some point and continues processing its upcall with the data buffer replaced with the reply from Venus. * The message is a ``downcall``. A downcall is a request from Venus to the FS Driver. The FS driver processes the request immediately (usually a cache eviction or replacement) and when it finishes sendmsg_to_kernel returns. Now P awakes and continues processing upcall. There are some subtleties to take account of. First P will determine if it was woken up in upcall by a signal from some other source (for example an attempt to terminate P) or as is normally the case by Venus in its sendmsg_to_kernel call. In the normal case, the upcall routine will deallocate the message structure and return. The FS routine can proceed with its processing. **Sleeping and IPC arrangements** In case P is woken up by a signal and not by Venus, it will first look at the flags field. If the message is not yet READ, the process P can handle its signal without notifying Venus. If Venus has READ, and the request should not be processed, P can send Venus a signal message to indicate that it should disregard the previous message. Such signals are put in the queue at the head, and read first by Venus. If the message is already marked as WRITTEN it is too late to stop the processing. The VFS routine will now continue. (-- If a VFS request involves more than one upcall, this can lead to complicated state, an extra field "handle_signals" could be added in the message structure to indicate points of no return have been passed.--) ”h]”(hä)�”}”(hXsAt the lowest level the communication between Venus and the FS driver proceeds through messages. The synchronization between processes requesting Coda file service and Venus relies on blocking and waking up processes. The Coda FS driver processes VFS- and pioctl-requests on behalf of a process P, creates messages for Venus, awaits replies and finally returns to the caller. The implementation of the exchange of messages is platform specific, but the semantics have (so far) appeared to be generally applicable. Data buffers are created by the FS Driver in kernel memory on behalf of P and copied to user memory in Venus.”h]”hXsAt the lowest level the communication between Venus and the FS driver proceeds through messages. The synchronization between processes requesting Coda file service and Venus relies on blocking and waking up processes. The Coda FS driver processes VFS- and pioctl-requests on behalf of a process P, creates messages for Venus, awaits replies and finally returns to the caller. The implementation of the exchange of messages is platform specific, but the semantics have (so far) appeared to be generally applicable. Data buffers are created by the FS Driver in kernel memory on behalf of P and copied to user memory in Venus.”…”�”}”(hj‰h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KÍhj…ubhä)�”}”(hXqThe FS Driver while servicing P makes upcalls to Venus. Such an upcall is dispatched to Venus by creating a message structure. The structure contains the identification of P, the message sequence number, the size of the request and a pointer to the data in kernel memory for the request. Since the data buffer is re-used to hold the reply from Venus, there is a field for the size of the reply. A flags field is used in the message to precisely record the status of the message. Additional platform dependent structures involve pointers to determine the position of the message on queues and pointers to synchronization objects. In the upcall routine the message structure is filled in, flags are set to 0, and it is placed on the *pending* queue. The routine calling upcall is responsible for allocating the data buffer; its structure will be described in the next section.”h]”(hXáThe FS Driver while servicing P makes upcalls to Venus. Such an upcall is dispatched to Venus by creating a message structure. The structure contains the identification of P, the message sequence number, the size of the request and a pointer to the data in kernel memory for the request. Since the data buffer is re-used to hold the reply from Venus, there is a field for the size of the reply. A flags field is used in the message to precisely record the status of the message. Additional platform dependent structures involve pointers to determine the position of the message on queues and pointers to synchronization objects. In the upcall routine the message structure is filled in, flags are set to 0, and it is placed on the ”…”�”}”(hj—h²hh³Nh´NubhŒemphasis”“”)�”}”(hŒ *pending*”h]”hŒpending”…”�”}”(hj¡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jŸhj—ubhŒ‡ queue. The routine calling upcall is responsible for allocating the data buffer; its structure will be described in the next section.”…”�”}”(hj—h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KØhj…ubhä)�”}”(hX'A facility must exist to notify Venus that the message has been created, and implemented using available synchronization objects in the OS. This notification is done in the upcall context of the process P. When the message is on the pending queue, process P cannot proceed in upcall. The (kernel mode) processing of P in the filesystem request routine must be suspended until Venus has replied. Therefore the calling thread in P is blocked in upcall. A pointer in the message structure will locate the synchronization object on which P is sleeping.”h]”hX'A facility must exist to notify Venus that the message has been created, and implemented using available synchronization objects in the OS. This notification is done in the upcall context of the process P. When the message is on the pending queue, process P cannot proceed in upcall. The (kernel mode) processing of P in the filesystem request routine must be suspended until Venus has replied. Therefore the calling thread in P is blocked in upcall. A pointer in the message structure will locate the synchronization object on which P is sleeping.”…”�”}”(hj¹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Kæhj…ubhä)�”}”(hX„Venus detects the notification that a message has arrived, and the FS driver allow Venus to retrieve the message with a getmsg_from_kernel call. This action finishes in the kernel by putting the message on the queue of processing messages and setting flags to READ. Venus is passed the contents of the data buffer. The getmsg_from_kernel call now returns and Venus processes the request.”h]”hX„Venus detects the notification that a message has arrived, and the FS driver allow Venus to retrieve the message with a getmsg_from_kernel call. This action finishes in the kernel by putting the message on the queue of processing messages and setting flags to READ. Venus is passed the contents of the data buffer. The getmsg_from_kernel call now returns and Venus processes the request.”…”�”}”(hjÇh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Kðhj…ubhä)�”}”(hŒÃAt some later point the FS driver receives a message from Venus, namely when Venus calls sendmsg_to_kernel. At this moment the Coda FS driver looks at the contents of the message and decides if:”h]”hŒÃAt some later point the FS driver receives a message from Venus, namely when Venus calls sendmsg_to_kernel. At this moment the Coda FS driver looks at the contents of the message and decides if:”…”�”}”(hjÕh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K÷hj…ubhŒ bullet_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hX—the message is a reply for a suspended thread P. If so it removes the message from the processing queue and marks the message as WRITTEN. Finally, the FS driver unblocks P (still in the kernel mode context of Venus) and the sendmsg_to_kernel call returns to Venus. The process P will be scheduled at some point and continues processing its upcall with the data buffer replaced with the reply from Venus. ”h]”hä)�”}”(hX–the message is a reply for a suspended thread P. If so it removes the message from the processing queue and marks the message as WRITTEN. Finally, the FS driver unblocks P (still in the kernel mode context of Venus) and the sendmsg_to_kernel call returns to Venus. The process P will be scheduled at some point and continues processing its upcall with the data buffer replaced with the reply from Venus.”h]”hX–the message is a reply for a suspended thread P. If so it removes the message from the processing queue and marks the message as WRITTEN. Finally, the FS driver unblocks P (still in the kernel mode context of Venus) and the sendmsg_to_kernel call returns to Venus. The process P will be scheduled at some point and continues processing its upcall with the data buffer replaced with the reply from Venus.”…”�”}”(hjîh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Kühjêubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhjåubjé)�”}”(hŒßThe message is a ``downcall``. A downcall is a request from Venus to the FS Driver. The FS driver processes the request immediately (usually a cache eviction or replacement) and when it finishes sendmsg_to_kernel returns. ”h]”hä)�”}”(hŒÞThe message is a ``downcall``. A downcall is a request from Venus to the FS Driver. The FS driver processes the request immediately (usually a cache eviction or replacement) and when it finishes sendmsg_to_kernel returns.”h]”(hŒThe message is a ”…”�”}”(hjh²hh³Nh´NubjP)�”}”(hŒ ``downcall``”h]”hŒdowncall”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jOhjubhŒÁ. A downcall is a request from Venus to the FS Driver. The FS driver processes the request immediately (usually a cache eviction or replacement) and when it finishes sendmsg_to_kernel returns.”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhjåubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ*”uh1jãh³hÇh´Kühj…ubhä)�”}”(hX©Now P awakes and continues processing upcall. There are some subtleties to take account of. First P will determine if it was woken up in upcall by a signal from some other source (for example an attempt to terminate P) or as is normally the case by Venus in its sendmsg_to_kernel call. In the normal case, the upcall routine will deallocate the message structure and return. The FS routine can proceed with its processing.”h]”hX©Now P awakes and continues processing upcall. There are some subtleties to take account of. First P will determine if it was woken up in upcall by a signal from some other source (for example an attempt to terminate P) or as is normally the case by Venus in its sendmsg_to_kernel call. In the normal case, the upcall routine will deallocate the message structure and return. The FS routine can proceed with its processing.”…”�”}”(hj4h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M hj…ubhä)�”}”(hŒ!**Sleeping and IPC arrangements**”h]”j()�”}”(hjDh]”hŒSleeping and IPC arrangements”…”�”}”(hjFh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j'hjBubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj…ubhä)�”}”(hXéIn case P is woken up by a signal and not by Venus, it will first look at the flags field. If the message is not yet READ, the process P can handle its signal without notifying Venus. If Venus has READ, and the request should not be processed, P can send Venus a signal message to indicate that it should disregard the previous message. Such signals are put in the queue at the head, and read first by Venus. If the message is already marked as WRITTEN it is too late to stop the processing. The VFS routine will now continue. (-- If a VFS request involves more than one upcall, this can lead to complicated state, an extra field "handle_signals" could be added in the message structure to indicate points of no return have been passed.--)”h]”hXíIn case P is woken up by a signal and not by Venus, it will first look at the flags field. If the message is not yet READ, the process P can handle its signal without notifying Venus. If Venus has READ, and the request should not be processed, P can send Venus a signal message to indicate that it should disregard the previous message. Such signals are put in the queue at the head, and read first by Venus. If the message is already marked as WRITTEN it is too late to stop the processing. The VFS routine will now continue. (-- If a VFS request involves more than one upcall, this can lead to complicated state, an extra field “handle_signalsâ€� could be added in the message structure to indicate points of no return have been passed.--)”…”�”}”(hjYh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj…ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´KÍhjth²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ3.1. Implementation details”h]”hŒ3.1. Implementation details”…”�”}”(hjph²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjmh²hh³hÇh´M#ubj)�”}”(hX8The Unix implementation of this mechanism has been through the implementation of a character device associated with Coda. Venus retrieves messages by doing a read on the device, replies are sent with a write and notification is through the select system call on the file descriptor for the device. The process P is kept waiting on an interruptible wait queue object. In Windows NT and the DPMI Windows 95 implementation a DeviceIoControl call is used. The DeviceIoControl call is designed to copy buffers from user memory to kernel memory with OPCODES. The sendmsg_to_kernel is issued as a synchronous call, while the getmsg_from_kernel call is asynchronous. Windows EventObjects are used for notification of message arrival. The process P is kept waiting on a KernelEvent object in NT and a semaphore in Windows 95. ”h]”(hä)�”}”(hXpThe Unix implementation of this mechanism has been through the implementation of a character device associated with Coda. Venus retrieves messages by doing a read on the device, replies are sent with a write and notification is through the select system call on the file descriptor for the device. The process P is kept waiting on an interruptible wait queue object.”h]”hXpThe Unix implementation of this mechanism has been through the implementation of a character device associated with Coda. Venus retrieves messages by doing a read on the device, replies are sent with a write and notification is through the select system call on the file descriptor for the device. The process P is kept waiting on an interruptible wait queue object.”…”�”}”(hj‚h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M%hj~ubhä)�”}”(hXÄIn Windows NT and the DPMI Windows 95 implementation a DeviceIoControl call is used. The DeviceIoControl call is designed to copy buffers from user memory to kernel memory with OPCODES. The sendmsg_to_kernel is issued as a synchronous call, while the getmsg_from_kernel call is asynchronous. Windows EventObjects are used for notification of message arrival. The process P is kept waiting on a KernelEvent object in NT and a semaphore in Windows 95.”h]”hXÄIn Windows NT and the DPMI Windows 95 implementation a DeviceIoControl call is used. The DeviceIoControl call is designed to copy buffers from user memory to kernel memory with OPCODES. The sendmsg_to_kernel is issued as a synchronous call, while the getmsg_from_kernel call is asynchronous. Windows EventObjects are used for notification of message arrival. The process P is kept waiting on a KernelEvent object in NT and a semaphore in Windows 95.”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M,hj~ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M%hjmh²hubeh}”(h]”Œimplementation-details”ah ]”h"]”Œ3.1. implementation details”ah$]”h&]”uh1hÈhjth²hh³hÇh´M#ubeh}”(h]”Œthe-message-layer”ah ]”h"]”Œ3. the message layer”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KËubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ#4. The interface at the call level”h]”hŒ#4. The interface at the call level”…”�”}”(hj·h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj´h²hh³hÇh´M6ubj)�”}”(hXOThis section describes the upcalls a Coda FS driver can make to Venus. Each of these upcalls make use of two structures: inputArgs and outputArgs. In pseudo BNF form the structures take the following form:: struct inputArgs { u_long opcode; u_long unique; /* Keep multiple outstanding msgs distinct */ u_short pid; /* Common to all */ u_short pgid; /* Common to all */ struct CodaCred cred; /* Common to all */ }; struct outputArgs { u_long opcode; u_long unique; /* Keep multiple outstanding msgs distinct */ u_long result; }; Before going on let us elucidate the role of the various fields. The inputArgs start with the opcode which defines the type of service requested from Venus. There are approximately 30 upcalls at present which we will discuss. The unique field labels the inputArg with a unique number which will identify the message uniquely. A process and process group id are passed. Finally the credentials of the caller are included. Before delving into the specific calls we need to discuss a variety of data structures shared by the kernel and Venus. ”h]”(hä)�”}”(hŒÐThis section describes the upcalls a Coda FS driver can make to Venus. Each of these upcalls make use of two structures: inputArgs and outputArgs. In pseudo BNF form the structures take the following form::”h]”hŒÏThis section describes the upcalls a Coda FS driver can make to Venus. Each of these upcalls make use of two structures: inputArgs and outputArgs. In pseudo BNF form the structures take the following form:”…”�”}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M9hjÅubhŒ literal_block”“”)�”}”(hXstruct inputArgs { u_long opcode; u_long unique; /* Keep multiple outstanding msgs distinct */ u_short pid; /* Common to all */ u_short pgid; /* Common to all */ struct CodaCred cred; /* Common to all */ }; struct outputArgs { u_long opcode; u_long unique; /* Keep multiple outstanding msgs distinct */ u_long result; };”h]”hXstruct inputArgs { u_long opcode; u_long unique; /* Keep multiple outstanding msgs distinct */ u_short pid; /* Common to all */ u_short pgid; /* Common to all */ struct CodaCred cred; /* Common to all */ }; struct outputArgs { u_long opcode; u_long unique; /* Keep multiple outstanding msgs distinct */ u_long result; };”…”�”}”hjÙsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M?hjÅubhä)�”}”(hX¨Before going on let us elucidate the role of the various fields. The inputArgs start with the opcode which defines the type of service requested from Venus. There are approximately 30 upcalls at present which we will discuss. The unique field labels the inputArg with a unique number which will identify the message uniquely. A process and process group id are passed. Finally the credentials of the caller are included.”h]”hX¨Before going on let us elucidate the role of the various fields. The inputArgs start with the opcode which defines the type of service requested from Venus. There are approximately 30 upcalls at present which we will discuss. The unique field labels the inputArg with a unique number which will identify the message uniquely. A process and process group id are passed. Finally the credentials of the caller are included.”…”�”}”(hjçh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MShjÅubhä)�”}”(hŒvBefore delving into the specific calls we need to discuss a variety of data structures shared by the kernel and Venus.”h]”hŒvBefore delving into the specific calls we need to discuss a variety of data structures shared by the kernel and Venus.”…”�”}”(hjõh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M[hjÅubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M9hj´h²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ44.1. Data structures shared by the kernel and Venus”h]”hŒ44.1. Data structures shared by the kernel and Venus”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj h²hh³hÇh´Mbubj)�”}”(hXõ The CodaCred structure defines a variety of user and group ids as they are set for the calling process. The vuid_t and vgid_t are 32 bit unsigned integers. It also defines group membership in an array. On Unix the CodaCred has proven sufficient to implement good security semantics for Coda but the structure may have to undergo modification for the Windows environment when these mature:: struct CodaCred { vuid_t cr_uid, cr_euid, cr_suid, cr_fsuid; /* Real, effective, set, fs uid */ vgid_t cr_gid, cr_egid, cr_sgid, cr_fsgid; /* same for groups */ vgid_t cr_groups[NGROUPS]; /* Group membership for caller */ }; .. Note:: It is questionable if we need CodaCreds in Venus. Finally Venus doesn't know about groups, although it does create files with the default uid/gid. Perhaps the list of group membership is superfluous. The next item is the fundamental identifier used to identify Coda files, the ViceFid. A fid of a file uniquely defines a file or directory in the Coda filesystem within a cell [1]_:: typedef struct ViceFid { VolumeId Volume; VnodeId Vnode; Unique_t Unique; } ViceFid; .. [1] A cell is agroup of Coda servers acting under the aegis of a single system control machine or SCM. See the Coda Administration manual for a detailed description of the role of the SCM. Each of the constituent fields: VolumeId, VnodeId and Unique_t are unsigned 32 bit integers. We envisage that a further field will need to be prefixed to identify the Coda cell; this will probably take the form of a Ipv6 size IP address naming the Coda cell through DNS. The next important structure shared between Venus and the kernel is the attributes of the file. The following structure is used to exchange information. It has room for future extensions such as support for device files (currently not present in Coda):: struct coda_timespec { int64_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ }; struct coda_vattr { enum coda_vtype va_type; /* vnode type (for create) */ u_short va_mode; /* files access mode and type */ short va_nlink; /* number of references to file */ vuid_t va_uid; /* owner user id */ vgid_t va_gid; /* owner group id */ long va_fsid; /* file system id (dev for now) */ long va_fileid; /* file id */ u_quad_t va_size; /* file size in bytes */ long va_blocksize; /* blocksize preferred for i/o */ struct coda_timespec va_atime; /* time of last access */ struct coda_timespec va_mtime; /* time of last modification */ struct coda_timespec va_ctime; /* time file changed */ u_long va_gen; /* generation number of file */ u_long va_flags; /* flags defined for file */ dev_t va_rdev; /* device special file represents */ u_quad_t va_bytes; /* bytes of disk space held by file */ u_quad_t va_filerev; /* file modification number */ u_int va_vaflags; /* operations flags, see below */ long va_spare; /* remain quad aligned */ }; ”h]”(hä)�”}”(hX‡The CodaCred structure defines a variety of user and group ids as they are set for the calling process. The vuid_t and vgid_t are 32 bit unsigned integers. It also defines group membership in an array. On Unix the CodaCred has proven sufficient to implement good security semantics for Coda but the structure may have to undergo modification for the Windows environment when these mature::”h]”hX†The CodaCred structure defines a variety of user and group ids as they are set for the calling process. The vuid_t and vgid_t are 32 bit unsigned integers. It also defines group membership in an array. On Unix the CodaCred has proven sufficient to implement good security semantics for Coda but the structure may have to undergo modification for the Windows environment when these mature:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MehjubjØ)�”}”(hŒóstruct CodaCred { vuid_t cr_uid, cr_euid, cr_suid, cr_fsuid; /* Real, effective, set, fs uid */ vgid_t cr_gid, cr_egid, cr_sgid, cr_fsgid; /* same for groups */ vgid_t cr_groups[NGROUPS]; /* Group membership for caller */ };”h]”hŒóstruct CodaCred { vuid_t cr_uid, cr_euid, cr_suid, cr_fsuid; /* Real, effective, set, fs uid */ vgid_t cr_gid, cr_egid, cr_sgid, cr_fsgid; /* same for groups */ vgid_t cr_groups[NGROUPS]; /* Group membership for caller */ };”…”�”}”hj,sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MlhjubhÞ)�”}”(hŒÈIt is questionable if we need CodaCreds in Venus. Finally Venus doesn't know about groups, although it does create files with the default uid/gid. Perhaps the list of group membership is superfluous.”h]”hä)�”}”(hŒÈIt is questionable if we need CodaCreds in Venus. Finally Venus doesn't know about groups, although it does create files with the default uid/gid. Perhaps the list of group membership is superfluous.”h]”hŒÊIt is questionable if we need CodaCreds in Venus. Finally Venus doesn’t know about groups, although it does create files with the default uid/gid. Perhaps the list of group membership is superfluous.”…”�”}”(hj>h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Muhj:ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhjubhä)�”}”(hŒ·The next item is the fundamental identifier used to identify Coda files, the ViceFid. A fid of a file uniquely defines a file or directory in the Coda filesystem within a cell [1]_::”h]”(hŒ±The next item is the fundamental identifier used to identify Coda files, the ViceFid. A fid of a file uniquely defines a file or directory in the Coda filesystem within a cell ”…”�”}”(hjRh²hh³Nh´NubhŒfootnote_reference”“”)�”}”(hŒ[1]_”h]”hŒ1”…”�”}”(hj\h²hh³Nh´Nubah}”(h]”Œid1”ah ]”h"]”h$]”h&]”Œrefid”Œid2”Œdocname”Œfilesystems/coda”uh1jZhjRŒresolved”KubhŒ:”…”�”}”(hjRh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MzhjubjØ)�”}”(hŒ`typedef struct ViceFid { VolumeId Volume; VnodeId Vnode; Unique_t Unique; } ViceFid;”h]”hŒ`typedef struct ViceFid { VolumeId Volume; VnodeId Vnode; Unique_t Unique; } ViceFid;”…”�”}”hjzsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M~hjubhŒfootnote”“”)�”}”(hŒ¹A cell is agroup of Coda servers acting under the aegis of a single system control machine or SCM. See the Coda Administration manual for a detailed description of the role of the SCM. ”h]”(hŒlabel”“”)�”}”(hŒ1”h]”hŒ1”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jŽhjŠubhä)�”}”(hŒ¸A cell is agroup of Coda servers acting under the aegis of a single system control machine or SCM. See the Coda Administration manual for a detailed description of the role of the SCM.”h]”hŒ¸A cell is agroup of Coda servers acting under the aegis of a single system control machine or SCM. See the Coda Administration manual for a detailed description of the role of the SCM.”…”�”}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M„hjŠubeh}”(h]”jlah ]”h"]”Œ1”ah$]”h&]”jfajmjnuh1jˆh³hÇh´M„hjjoKubhä)�”}”(hXEach of the constituent fields: VolumeId, VnodeId and Unique_t are unsigned 32 bit integers. We envisage that a further field will need to be prefixed to identify the Coda cell; this will probably take the form of a Ipv6 size IP address naming the Coda cell through DNS.”h]”hXEach of the constituent fields: VolumeId, VnodeId and Unique_t are unsigned 32 bit integers. We envisage that a further field will need to be prefixed to identify the Coda cell; this will probably take the form of a Ipv6 size IP address naming the Coda cell through DNS.”…”�”}”(hj³h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mˆhjubhä)�”}”(hŒÿThe next important structure shared between Venus and the kernel is the attributes of the file. The following structure is used to exchange information. It has room for future extensions such as support for device files (currently not present in Coda)::”h]”hŒþThe next important structure shared between Venus and the kernel is the attributes of the file. The following structure is used to exchange information. It has room for future extensions such as support for device files (currently not present in Coda):”…”�”}”(hjÁh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M�hjubjØ)�”}”(hXÆstruct coda_timespec { int64_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ }; struct coda_vattr { enum coda_vtype va_type; /* vnode type (for create) */ u_short va_mode; /* files access mode and type */ short va_nlink; /* number of references to file */ vuid_t va_uid; /* owner user id */ vgid_t va_gid; /* owner group id */ long va_fsid; /* file system id (dev for now) */ long va_fileid; /* file id */ u_quad_t va_size; /* file size in bytes */ long va_blocksize; /* blocksize preferred for i/o */ struct coda_timespec va_atime; /* time of last access */ struct coda_timespec va_mtime; /* time of last modification */ struct coda_timespec va_ctime; /* time file changed */ u_long va_gen; /* generation number of file */ u_long va_flags; /* flags defined for file */ dev_t va_rdev; /* device special file represents */ u_quad_t va_bytes; /* bytes of disk space held by file */ u_quad_t va_filerev; /* file modification number */ u_int va_vaflags; /* operations flags, see below */ long va_spare; /* remain quad aligned */ };”h]”hXÆstruct coda_timespec { int64_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ }; struct coda_vattr { enum coda_vtype va_type; /* vnode type (for create) */ u_short va_mode; /* files access mode and type */ short va_nlink; /* number of references to file */ vuid_t va_uid; /* owner user id */ vgid_t va_gid; /* owner group id */ long va_fsid; /* file system id (dev for now) */ long va_fileid; /* file id */ u_quad_t va_size; /* file size in bytes */ long va_blocksize; /* blocksize preferred for i/o */ struct coda_timespec va_atime; /* time of last access */ struct coda_timespec va_mtime; /* time of last modification */ struct coda_timespec va_ctime; /* time file changed */ u_long va_gen; /* generation number of file */ u_long va_flags; /* flags defined for file */ dev_t va_rdev; /* device special file represents */ u_quad_t va_bytes; /* bytes of disk space held by file */ u_quad_t va_filerev; /* file modification number */ u_int va_vaflags; /* operations flags, see below */ long va_spare; /* remain quad aligned */ };”…”�”}”hjÏsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M“hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mehj h²hubeh}”(h]”Œ.data-structures-shared-by-the-kernel-and-venus”ah ]”h"]”Œ34.1. data structures shared by the kernel and venus”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MbubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4.2. The pioctl interface”h]”hŒ4.2. The pioctl interface”…”�”}”(hjîh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjëh²hh³hÇh´M°ubj)�”}”(hX.Coda specific requests can be made by application through the pioctl interface. The pioctl is implemented as an ordinary ioctl on a fictitious file /coda/.CONTROL. The pioctl call opens this file, gets a file handle and makes the ioctl call. Finally it closes the file. The kernel involvement in this is limited to providing the facility to open and close and pass the ioctl message and to verify that a path in the pioctl data buffers is a file in a Coda filesystem. The kernel is handed a data packet of the form:: struct { const char *path; struct ViceIoctl vidata; int follow; } data; where:: struct ViceIoctl { caddr_t in, out; /* Data to be transferred in, or out */ short in_size; /* Size of input buffer <= 2K */ short out_size; /* Maximum size of output buffer, <= 2K */ }; The path must be a Coda file, otherwise the ioctl upcall will not be made. .. Note:: The data structures and code are a mess. We need to clean this up. ”h]”(hä)�”}”(hXCoda specific requests can be made by application through the pioctl interface. The pioctl is implemented as an ordinary ioctl on a fictitious file /coda/.CONTROL. The pioctl call opens this file, gets a file handle and makes the ioctl call. Finally it closes the file.”h]”hXCoda specific requests can be made by application through the pioctl interface. The pioctl is implemented as an ordinary ioctl on a fictitious file /coda/.CONTROL. The pioctl call opens this file, gets a file handle and makes the ioctl call. Finally it closes the file.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M³hjüubhä)�”}”(hŒÅThe kernel involvement in this is limited to providing the facility to open and close and pass the ioctl message and to verify that a path in the pioctl data buffers is a file in a Coda filesystem.”h]”hŒÅThe kernel involvement in this is limited to providing the facility to open and close and pass the ioctl message and to verify that a path in the pioctl data buffers is a file in a Coda filesystem.”…”�”•í}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M¸hjüubhä)�”}”(hŒ0The kernel is handed a data packet of the form::”h]”hŒ/The kernel is handed a data packet of the form:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M¼hjüubjØ)�”}”(hŒSstruct { const char *path; struct ViceIoctl vidata; int follow; } data;”h]”hŒSstruct { const char *path; struct ViceIoctl vidata; int follow; } data;”…”�”}”hj*sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M¾hjüubhä)�”}”(hŒwhere::”h]”hŒwhere:”…”�”}”(hj8h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÆhjüubjØ)�”}”(hŒéstruct ViceIoctl { caddr_t in, out; /* Data to be transferred in, or out */ short in_size; /* Size of input buffer <= 2K */ short out_size; /* Maximum size of output buffer, <= 2K */ };”h]”hŒéstruct ViceIoctl { caddr_t in, out; /* Data to be transferred in, or out */ short in_size; /* Size of input buffer <= 2K */ short out_size; /* Maximum size of output buffer, <= 2K */ };”…”�”}”hjFsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MÉhjüubhä)�”}”(hŒJThe path must be a Coda file, otherwise the ioctl upcall will not be made.”h]”hŒJThe path must be a Coda file, otherwise the ioctl upcall will not be made.”…”�”}”(hjTh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÑhjüubhÞ)�”}”(hŒCThe data structures and code are a mess. We need to clean this up.”h]”hä)�”}”(hjdh]”hŒCThe data structures and code are a mess. We need to clean this up.”…”�”}”(hjfh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÔhjbubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhjüubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M³hjëh²hubhä)�”}”(hŒ4**We now proceed to document the individual calls**:”h]”(j()�”}”(hŒ3**We now proceed to document the individual calls**”h]”hŒ/We now proceed to document the individual calls”…”�”}”(hjƒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j'hjubhŒ:”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M×hjëh²hubeh}”(h]”Œthe-pioctl-interface”ah ]”h"]”Œ4.2. the pioctl interface”ah$]”h&]”uh1hÈhj´h²hh³hÇh´M°ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.3. root”h]”hŒ 4.3. root”…”�”}”(hj¦h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj£h²hh³hÇh´MÛubj)�”}”(hXþArguments in empty out:: struct cfs_root_out { ViceFid VFid; } cfs_root; Description This call is made to Venus during the initialization of the Coda filesystem. If the result is zero, the cfs_root structure contains the ViceFid of the root of the Coda filesystem. If a non-zero result is generated, its value is a platform dependent error code indicating the difficulty Venus encountered in locating the root of the Coda filesystem. ”h]”hŒdefinition_list”“”)�”}”(hhh]”(hŒdefinition_list_item”“”)�”}”(hŒvArguments in empty out:: struct cfs_root_out { ViceFid VFid; } cfs_root; ”h]”(hŒterm”“”)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjÅh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Méhj¿ubhŒ definition”“”)�”}”(hhh]”(hä)�”}”(hŒin”h]”hŒin”…”�”}”(hjØh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MßhjÕubj)�”}”(hŒempty ”h]”hä)�”}”(hŒempty”h]”hŒempty”…”�”}”(hjêh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Máhjæubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MáhjÕubhä)�”}”(hŒout::”h]”hŒout:”…”�”}”(hjþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MãhjÕubjØ)�”}”(hŒ3struct cfs_root_out { ViceFid VFid; } cfs_root;”h]”hŒ3struct cfs_root_out { ViceFid VFid; } cfs_root;”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MåhjÕubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj¿ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Méhjºubj¾)�”}”(hXiDescription This call is made to Venus during the initialization of the Coda filesystem. If the result is zero, the cfs_root structure contains the ViceFid of the root of the Coda filesystem. If a non-zero result is generated, its value is a platform dependent error code indicating the difficulty Venus encountered in locating the root of the Coda filesystem. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hj*h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mñhj&ubjÔ)�”}”(hhh]”hä)�”}”(hX\This call is made to Venus during the initialization of the Coda filesystem. If the result is zero, the cfs_root structure contains the ViceFid of the root of the Coda filesystem. If a non-zero result is generated, its value is a platform dependent error code indicating the difficulty Venus encountered in locating the root of the Coda filesystem.”h]”hX\This call is made to Venus during the initialization of the Coda filesystem. If the result is zero, the cfs_root structure contains the ViceFid of the root of the Coda filesystem. If a non-zero result is generated, its value is a platform dependent error code indicating the difficulty Venus encountered in locating the root of the Coda filesystem.”…”�”}”(hj;h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mìhj8ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj&ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mñhjºubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj´ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MÞhj£h²hubeh}”(h]”Œroot”ah ]”h"]”Œ 4.3. root”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MÛubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.4. lookup”h]”hŒ 4.4. lookup”…”�”}”(hjlh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjih²hh³hÇh´Môubj)�”}”(hXvSummary Find the ViceFid and type of an object in a directory if it exists. Arguments in:: struct cfs_lookup_in { ViceFid VFid; char *name; /* Place holder for data. */ } cfs_lookup; out:: struct cfs_lookup_out { ViceFid VFid; int vtype; } cfs_lookup; Description This call is made to determine the ViceFid and filetype of a directory entry. The directory entry requested carries name 'name' and Venus will search the directory identified by cfs_lookup_in.VFid. The result may indicate that the name does not exist, or that difficulty was encountered in finding it (e.g. due to disconnection). If the result is zero, the field cfs_lookup_out.VFid contains the targets ViceFid and cfs_lookup_out.vtype the coda_vtype giving the type of object the name designates. The name of the object is an 8 bit character string of maximum length CFS_MAXNAMLEN, currently set to 256 (including a 0 terminator.) It is extremely important to realize that Venus bitwise ors the field cfs_lookup.vtype with CFS_NOCACHE to indicate that the object should not be put in the kernel name cache. .. Note:: The type of the vtype is currently wrong. It should be coda_vtype. Linux does not take note of CFS_NOCACHE. It should. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒLSummary Find the ViceFid and type of an object in a directory if it exists. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hj…h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Møhj�ubjÔ)�”}”(hhh]”hä)�”}”(hŒCFind the ViceFid and type of an object in a directory if it exists.”h]”hŒCFind the ViceFid and type of an object in a directory if it exists.”…”�”}”(hj–h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Møhj“ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj�ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Møhj~ubj¾)�”}”(hX4Arguments in:: struct cfs_lookup_in { ViceFid VFid; char *name; /* Place holder for data. */ } cfs_lookup; out:: struct cfs_lookup_out { ViceFid VFid; int vtype; } cfs_lookup; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj´h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M hj°ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hjÅh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MûhjÂubjØ)�”}”(hŒxstruct cfs_lookup_in { ViceFid VFid; char *name; /* Place holder for data. */ } cfs_lookup;”h]”hŒxstruct cfs_lookup_in { ViceFid VFid; char *name; /* Place holder for data. */ } cfs_lookup;”…”�”}”hjÓsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MýhjÂubhä)�”}”(hŒout::”h]”hŒout:”…”�”}”(hjáh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MhjÂubjØ)�”}”(hŒFstruct cfs_lookup_out { ViceFid VFid; int vtype; } cfs_lookup;”h]”hŒFstruct cfs_lookup_out { ViceFid VFid; int vtype; } cfs_lookup;”…”�”}”hjïsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MhjÂubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj°ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M hj~ubj¾)�”}”(hXDescription This call is made to determine the ViceFid and filetype of a directory entry. The directory entry requested carries name 'name' and Venus will search the directory identified by cfs_lookup_in.VFid. The result may indicate that the name does not exist, or that difficulty was encountered in finding it (e.g. due to disconnection). If the result is zero, the field cfs_lookup_out.VFid contains the targets ViceFid and cfs_lookup_out.vtype the coda_vtype giving the type of object the name designates. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mhj ubjÔ)�”}”(hhh]”hä)�”}”(hXóThis call is made to determine the ViceFid and filetype of a directory entry. The directory entry requested carries name 'name' and Venus will search the directory identified by cfs_lookup_in.VFid. The result may indicate that the name does not exist, or that difficulty was encountered in finding it (e.g. due to disconnection). If the result is zero, the field cfs_lookup_out.VFid contains the targets ViceFid and cfs_lookup_out.vtype the coda_vtype giving the type of object the name designates.”h]”hX÷This call is made to determine the ViceFid and filetype of a directory entry. The directory entry requested carries name ‘name’ and Venus will search the directory identified by cfs_lookup_in.VFid. The result may indicate that the name does not exist, or that difficulty was encountered in finding it (e.g. due to disconnection). If the result is zero, the field cfs_lookup_out.VFid contains the targets ViceFid and cfs_lookup_out.vtype the coda_vtype giving the type of object the name designates.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mhj~ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjzubhä)�”}”(hŒ…The name of the object is an 8 bit character string of maximum length CFS_MAXNAMLEN, currently set to 256 (including a 0 terminator.)”h]”hŒ…The name of the object is an 8 bit character string of maximum length CFS_MAXNAMLEN, currently set to 256 (including a 0 terminator.)”…”�”}”(hj>h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhjzubhä)�”}”(hŒ¯It is extremely important to realize that Venus bitwise ors the field cfs_lookup.vtype with CFS_NOCACHE to indicate that the object should not be put in the kernel name cache.”h]”hŒ¯It is extremely important to realize that Venus bitwise ors the field cfs_lookup.vtype with CFS_NOCACHE to indicate that the object should not be put in the kernel name cache.”…”�”}”(hjLh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MhjzubhÞ)�”}”(hŒxThe type of the vtype is currently wrong. It should be coda_vtype. Linux does not take note of CFS_NOCACHE. It should.”h]”hä)�”}”(hŒxThe type of the vtype is currently wrong. It should be coda_vtype. Linux does not take note of CFS_NOCACHE. It should.”h]”hŒxThe type of the vtype is currently wrong. It should be coda_vtype. Linux does not take note of CFS_NOCACHE. It should.”…”�”}”(hj^h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M hjZubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhjzubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M÷hjih²hubeh}”(h]”Œlookup”ah ]”h"]”Œ 4.4. lookup”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MôubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.5. getattr”h]”hŒ 4.5. getattr”…”�”}”(hjƒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj€h²hh³hÇh´M%ubj)�”}”(hXSummary Get the attributes of a file. Arguments in:: struct cfs_getattr_in { ViceFid VFid; struct coda_vattr attr; /* XXXXX */ } cfs_getattr; out:: struct cfs_getattr_out { struct coda_vattr attr; } cfs_getattr; Description This call returns the attributes of the file identified by fid. Errors Errors can occur if the object with fid does not exist, is unaccessible or if the caller does not have permission to fetch attributes. .. Note:: Many kernel FS drivers (Linux, NT and Windows 95) need to acquire the attributes as well as the Fid for the instantiation of an internal "inode" or "FileHandle". A significant improvement in performance on such systems could be made by combining the lookup and getattr calls both at the Venus/kernel interaction level and at the RPC level. The vattr structure included in the input arguments is superfluous and should be removed. ”h]”(hä)�”}”(hŒ%Summary Get the attributes of a file.”h]”hŒ%Summary Get the attributes of a file.”…”�”}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M(hj‘ubj¹)�”}”(hhh]”(j¾)�”}”(hXArguments in:: struct cfs_getattr_in { ViceFid VFid; struct coda_vattr attr; /* XXXXX */ } cfs_getattr; out:: struct cfs_getattr_out { struct coda_vattr attr; } cfs_getattr; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M:hj¦ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hj»h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M+hj¸ubjØ)�”}”(hŒ`struct cfs_getattr_in { ViceFid VFid; struct coda_vattr attr; /* XXXXX */ } cfs_getattr;”h]”hŒ`struct cfs_getattr_in { ViceFid VFid; struct coda_vattr attr; /* XXXXX */ } cfs_getattr;”…”�”}”hjÉsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M-hj¸ubhä)�”}”(hŒout::”h]”hŒout:”…”�”}”(hj×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M4hj¸ubjØ)�”}”(hŒCstruct cfs_getattr_out { struct coda_vattr attr; } cfs_getattr;”h]”hŒCstruct cfs_getattr_out { struct coda_vattr attr; } cfs_getattr;”…”�”}”hjåsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M6hj¸ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj¦ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M:hj£ubj¾)�”}”(hŒLDescription This call returns the attributes of the file identified by fid. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M=hjÿubjÔ)�”}”(hhh]”hä)�”}”(hŒ?This call returns the attributes of the file identified by fid.”h]”hŒ?This call returns the attributes of the file identified by fid.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M=hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÿubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M=hj£ubj¾)�”}”(hŒŽErrors Errors can occur if the object with fid does not exist, is unaccessible or if the caller does not have permission to fetch attributes. ”h]”(jÄ)�”}”(hŒErrors”h]”hŒErrors”…”�”}”(hj2 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MBhj. ubjÔ)�”}”(hhh]”hä)�”}”(hŒ†Errors can occur if the object with fid does not exist, is unaccessible or if the caller does not have permission to fetch attributes.”h]”hŒ†Errors can occur if the object with fid does not exist, is unaccessible or if the caller does not have permission to fetch attributes.”…”�”}”(hjC h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M@hj@ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj. ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MBhj£ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj‘ubhÞ)�”}”(hXTMany kernel FS drivers (Linux, NT and Windows 95) need to acquire the attributes as well as the Fid for the instantiation of an internal "inode" or "FileHandle". A significant improvement in performance on such systems could be made by combining the lookup and getattr calls both at the Venus/kernel interaction level and at the RPC level.”h]”hä)�”}”(hXTMany kernel FS drivers (Linux, NT and Windows 95) need to acquire the attributes as well as the Fid for the instantiation of an internal "inode" or "FileHandle". A significant improvement in performance on such systems could be made by combining the lookup and getattr calls both at the Venus/kernel interaction level and at the RPC level.”h]”hX\Many kernel FS drivers (Linux, NT and Windows 95) need to acquire the attributes as well as the Fid for the instantiation of an internal “inodeâ€� or “FileHandleâ€�. A significant improvement in performance on such systems could be made by combining the lookup and getattr calls both at the Venus/kernel interaction level and at the RPC level.”…”�”}”(hjg h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MFhjc ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj‘ubhä)�”}”(hŒYThe vattr structure included in the input arguments is superfluous and should be removed.”h]”hŒYThe vattr structure included in the input arguments is superfluous and should be removed.”…”�”}”(hj{ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MLhj‘ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M(hj€h²hubeh}”(h]”Œgetattr”ah ]”h"]”Œ 4.5. getattr”ah$]”h&]”uh1hÈhj´h²hh³hÇh´M%ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.6. setattr”h]”hŒ 4.6. setattr”…”�”}”(hjš h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj— h²hh³hÇh´MQubj)�”}”(hXíSummary Set the attributes of a file. Arguments in:: struct cfs_setattr_in { ViceFid VFid; struct coda_vattr attr; } cfs_setattr; out empty Description The structure attr is filled with attributes to be changed in BSD style. Attributes not to be changed are set to -1, apart from vtype which is set to VNON. Other are set to the value to be assigned. The only attributes which the FS driver may request to change are the mode, owner, groupid, atime, mtime and ctime. The return value indicates success or failure. Errors A variety of errors can occur. The object may not exist, may be inaccessible, or permission may not be granted by Venus. ”h]”j¹)�”}”(hhh]”(j¾)�”}”(hŒ&Summary Set the attributes of a file. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hj³ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MUhj¯ ubjÔ)�”}”(hhh]”hä)�”}”(hŒSet the attributes of a file.”h]”hŒSet the attributes of a file.”…”�”}”(hjÄ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MUhjÁ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj¯ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MUhj¬ ubj¾)�”}”(hŒ£Arguments in:: struct cfs_setattr_in { ViceFid VFid; struct coda_vattr attr; } cfs_setattr; out empty ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjâ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MdhjÞ ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hjó h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MXhjð ubjØ)�”}”(hŒTstruct cfs_setattr_in { ViceFid VFid; struct coda_vattr attr; } cfs_setattr;”h]”hŒTstruct cfs_setattr_in { ViceFid VFid; struct coda_vattr attr; } cfs_setattr;”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MZhjð ubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mbhjð ubj)�”}”(hŒempty ”h]”hä)�”}”(hŒempty”h]”hŒempty”…”�”}”(hj! h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mdhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mdhjð ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÞ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mdhj¬ ubj¾)�”}”(hXxDescription The structure attr is filled with attributes to be changed in BSD style. Attributes not to be changed are set to -1, apart from vtype which is set to VNON. Other are set to the value to be assigned. The only attributes which the FS driver may request to change are the mode, owner, groupid, atime, mtime and ctime. The return value indicates success or failure. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjE h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MlhjA ubjÔ)�”}”(hhh]”hä)�”}”(hXkThe structure attr is filled with attributes to be changed in BSD style. Attributes not to be changed are set to -1, apart from vtype which is set to VNON. Other are set to the value to be assigned. The only attributes which the FS driver may request to change are the mode, owner, groupid, atime, mtime and ctime. The return value indicates success or failure.”h]”hXkThe structure attr is filled with attributes to be changed in BSD style. Attributes not to be changed are set to -1, apart from vtype which is set to VNON. Other are set to the value to be assigned. The only attributes which the FS driver may request to change are the mode, owner, groupid, atime, mtime and ctime. The return value indicates success or failure.”…”�”}”(hjV h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MghjS ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjA ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mlhj¬ ubj¾)�”}”(hŒ‚Errors A variety of errors can occur. The object may not exist, may be inaccessible, or permission may not be granted by Venus. ”h]”(jÄ)�”}”(hŒErrors”h]”hŒErrors”…”�”}”(hjt h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mqhjp ubjÔ)�”}”(hhh]”hä)�”}”(hŒyA variety of errors can occur. The object may not exist, may be inaccessible, or permission may not be granted by Venus.”h]”hŒyA variety of errors can occur. The object may not exist, may be inaccessible, or permission may not be granted by Venus.”…”�”}”(hj… h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mohj‚ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjp ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mqhj¬ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj¨ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MThj— h²hubeh}”(h]”Œsetattr”ah ]”h"]”Œ 4.6. setattr”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MQubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.7. access”h]”hŒ 4.7. access”…”�”}”(hj¶ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj³ h²hh³hÇh´Mtubj)�”}”(hX¤Arguments in:: struct cfs_access_in { ViceFid VFid; int flags; } cfs_access; out empty Description Verify if access to the object identified by VFid for operations described by flags is permitted. The result indicates if access will be granted. It is important to remember that Coda uses ACLs to enforce protection and that ultimately the servers, not the clients enforce the security of the system. The result of this call will depend on whether a token is held by the user. Errors The object may not exist, or the ACL describing the protection may not be accessible. ”h]”j¹)�”}”(hhh]”(j¾)�”}”(hŒ—Arguments in:: struct cfs_access_in { ViceFid VFid; int flags; } cfs_access; out empty ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjÏ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MƒhjË ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hjà h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MxhjÝ ubjØ)�”}”(hŒIstruct cfs_access_in { ViceFid VFid; int flags; } cfs_access;”h]”hŒIstruct cfs_access_in { ViceFid VFid; int flags; } cfs_access;”…”�”}”hjî sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MzhjÝ ubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hjü h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M�hjÝ ubj)�”}”(hŒempty ”h]”hä)�”}”(hŒempty”h]”hŒempty”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mƒhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MƒhjÝ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjË ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MƒhjÈ ubj¾)�”}”(hXˆDescription Verify if access to the object identified by VFid for operations described by flags is permitted. The result indicates if access will be granted. It is important to remember that Coda uses ACLs to enforce protection and that ultimately the servers, not the clients enforce the security of the system. The result of this call will depend on whether a token is held by the user. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hj2 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M‹hj. ubjÔ)�”}”(hhh]”hä)�”}”(hX{Verify if access to the object identified by VFid for operations described by flags is permitted. The result indicates if access will be granted. It is important to remember that Coda uses ACLs to enforce protection and that ultimately the servers, not the clients enforce the security of the system. The result of this call will depend on whether a token is held by the user.”h]”hX{Verify if access to the object identified by VFid for operations described by flags is permitted. The result indicates if access will be granted. It is important to remember that Coda uses ACLs to enforce protection and that ultimately the servers, not the clients enforce the security of the system. The result of this call will depend on whether a token is held by the user.”…”�”}”(hjC h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M†hj@ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj. ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M‹hjÈ ubj¾)�”}”(hŒ^Errors The object may not exist, or the ACL describing the protection may not be accessible. ”h]”(jÄ)�”}”(hŒErrors”h]”hŒErrors”…”�”}”(hja h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M�hj] ubjÔ)�”}”(hhh]”hä)�”}”(hŒUThe object may not exist, or the ACL describing the protection may not be accessible.”h]”hŒUThe object may not exist, or the ACL describing the protection may not be accessible.”…”�”}”(hjr h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MŽhjo ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj] ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M�hjÈ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjÄ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mwhj³ h²hubeh}”(h]”Œaccess”ah ]”h"]”Œ 4.7. access”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MtubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.8. create”h]”hŒ 4.8. create”…”�”}”(hj£ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj  h²hh³hÇh´M“ubj)�”}”(hX–Summary Invoked to create a file Arguments in:: struct cfs_create_in { ViceFid VFid; struct coda_vattr attr; int excl; int mode; char *name; /* Place holder for data. */ } cfs_create; out:: struct cfs_create_out { ViceFid VFid; struct coda_vattr attr; } cfs_create; Description This upcall is invoked to request creation of a file. The file will be created in the directory identified by VFid, its name will be name, and the mode will be mode. If excl is set an error will be returned if the file already exists. If the size field in attr is set to zero the file will be truncated. The uid and gid of the file are set by converting the CodaCred to a uid using a macro CRTOUID (this macro is platform dependent). Upon success the VFid and attributes of the file are returned. The Coda FS Driver will normally instantiate a vnode, inode or file handle at kernel level for the new object. Errors A variety of errors can occur. Permissions may be insufficient. If the object exists and is not a file the error EISDIR is returned under Unix. .. Note:: The packing of parameters is very inefficient and appears to indicate confusion between the system call creat and the VFS operation create. The VFS operation create is only called to create new objects. This create call differs from the Unix one in that it is not invoked to return a file descriptor. The truncate and exclusive options, together with the mode, could simply be part of the mode as it is under Unix. There should be no flags argument; this is used in open (2) to return a file descriptor for READ or WRITE mode. The attributes of the directory should be returned too, since the size and mtime changed. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒ!Summary Invoked to create a file ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hj¼ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M—hj¸ ubjÔ)�”}”(hhh]”hä)�”}”(hŒInvoked to create a file”h]”hŒInvoked to create a file”…”�”}”(hjÍ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M—hjÊ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj¸ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M—hjµ ubj¾)�”}”(hX–Arguments in:: struct cfs_create_in { ViceFid VFid; struct coda_vattr attr; int excl; int mode; char *name; /* Place holder for data. */ } cfs_create; out:: struct cfs_create_out { ViceFid VFid; struct coda_vattr attr; } cfs_create; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjë h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M®hjç ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hjü h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mšhjù ubjØ)�”}”(hŒ«struct cfs_create_in { ViceFid VFid; struct coda_vattr attr; int excl; int mode; char *name; /* Place holder for data. */ } cfs_create;”h]”hŒ«struct cfs_create_in { ViceFid VFid; struct coda_vattr attr; int excl; int mode; char *name; /* Place holder for data. */ } cfs_create;”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´Mœhjù ubhä)�”}”(hŒout::”h]”hŒout:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M§hjù ubjØ)�”}”(hŒSstruct cfs_create_out { ViceFid VFid; struct coda_vattr attr; } cfs_create;”h]”hŒSstruct cfs_create_out { ViceFid VFid; struct coda_vattr attr; } cfs_create;”…”�”}”hj& sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M©hjù ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjç ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M®hjµ ubj¾)�”}”(hXrDescription This upcall is invoked to request creation of a file. The file will be created in the directory identified by VFid, its name will be name, and the mode will be mode. If excl is set an error will be returned if the file already exists. If the size field in attr is set to zero the file will be truncated. The uid and gid of the file are set by converting the CodaCred to a uid using a macro CRTOUID (this macro is platform dependent). Upon success the VFid and attributes of the file are returned. The Coda FS Driver will normally instantiate a vnode, inode or file handle at kernel level for the new object. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjD h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M»hj@ ubjÔ)�”}”(hhh]”hä)�”}”(hXdThis upcall is invoked to request creation of a file. The file will be created in the directory identified by VFid, its name will be name, and the mode will be mode. If excl is set an error will be returned if the file already exists. If the size field in attr is set to zero the file will be truncated. The uid and gid of the file are set by converting the CodaCred to a uid using a macro CRTOUID (this macro is platform dependent). Upon success the VFid and attributes of the file are returned. The Coda FS Driver will normally instantiate a vnode, inode or file handle at kernel level for the new object.”h]”hXdThis upcall is invoked to request creation of a file. The file will be created in the directory identified by VFid, its name will be name, and the mode will be mode. If excl is set an error will be returned if the file already exists. If the size field in attr is set to zero the file will be truncated. The uid and gid of the file are set by converting the CodaCred to a uid using a macro CRTOUID (this macro is platform dependent). Upon success the VFid and attributes of the file are returned. The Coda FS Driver will normally instantiate a vnode, inode or file handle at kernel level for the new object.”…”�”}”(hjU h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M±hjR ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj@ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M»hjµ ubj¾)�”}”(hŒ—Errors A variety of errors can occur. Permissions may be insufficient. If the object exists and is not a file the error EISDIR is returned under Unix. ”h]”(jÄ)�”}”(hŒErrors”h]”hŒErrors”…”�”}”(hjs h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MÀhjo ubjÔ)�”}”(hhh]”hä)�”}”(hŒ�A variety of errors can occur. Permissions may be insufficient. If the object exists and is not a file the error EISDIR is returned under Unix.”h]”hŒ�A variety of errors can occur. Permissions may be insufficient. If the object exists and is not a file the error EISDIR is returned under Unix.”…”�”}”(hj„ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M¾hj� ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjo ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MÀhjµ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj± ubhÞ)�”}”(hXThe packing of parameters is very inefficient and appears to indicate confusion between the system call creat and the VFS operation create. The VFS operation create is only called to create new objects. This create call differs from the Unix one in that it is not invoked to return a file descriptor. The truncate and exclusive options, together with the mode, could simply be part of the mode as it is under Unix. There should be no flags argument; this is used in open (2) to return a file descriptor for READ or WRITE mode.”h]”hä)�”}”(hXThe packing of parameters is very inefficient and appears to indicate confusion between the system call creat and the VFS operation create. The VFS operation create is only called to create new objects. This create call differs from the Unix one in that it is not invoked to return a file descriptor. The truncate and exclusive options, together with the mode, could simply be part of the mode as it is under Unix. There should be no flags argument; this is used in open (2) to return a file descriptor for READ or WRITE mode.”h]”hXThe packing of parameters is very inefficient and appears to indicate confusion between the system call creat and the VFS operation create. The VFS operation create is only called to create new objects. This create call differs from the Unix one in that it is not invoked to return a file descriptor. The truncate and exclusive options, together with the mode, could simply be part of the mode as it is under Unix. There should be no flags argument; this is used in open (2) to return a file descriptor for READ or WRITE mode.”…”�”}”(hj¨ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÄhj¤ ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj± ubhä)�”}”(hŒYThe attributes of the directory should be returned too, since the size and mtime changed.”h]”hŒYThe attributes of the directory should be returned too, since the size and mtime changed.”…”�”}”(hj¼ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÍhj± ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M–hj  h²hubeh}”(h]”Œcreate”ah ]”h"]”Œ 4.8. create”ah$]”h&]”uh1hÈhj´h²hh³hÇh´M“ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.9. mkdir”h]”hŒ 4.9. mkdir”…”�”}”(hjÛ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjØ h²hh³hÇh´MÒubj)�”}”(hXUSummary Create a new directory. Arguments in:: struct cfs_mkdir_in { ViceFid VFid; struct coda_vattr attr; char *name; /* Place holder for data. */ } cfs_mkdir; out:: struct cfs_mkdir_out { ViceFid VFid; struct coda_vattr attr; } cfs_mkdir; Description This call is similar to create but creates a directory. Only the mode field in the input parameters is used for creation. Upon successful creation, the attr returned contains the attributes of the new directory. Errors As for create. .. Note:: The input parameter should be changed to mode instead of attributes. The attributes of the parent should be returned since the size and mtime changes. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒ Summary Create a new directory. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjô h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MÖhjð ubjÔ)�”}”(hhh]”hä)�”}”(hŒCreate a new directory.”h]”hŒCreate a new directory.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÖhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjð ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MÖhjí ubj¾)�”}”(hXdArguments in:: struct cfs_mkdir_in { ViceFid VFid; struct coda_vattr attr; char *name; /* Place holder for data. */ } cfs_mkdir; out:: struct cfs_mkdir_out { ViceFid VFid; struct coda_vattr attr; } cfs_mkdir; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj# h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mëhj ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hj4 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÙhj1 ubjØ)�”}”(hŒ‘struct cfs_mkdir_in { ViceFid VFid; struct coda_vattr attr; char *name; /* Place holder for data. */ } cfs_mkdir;”h]”hŒ‘struct cfs_mkdir_in { ViceFid VFid; struct coda_vattr attr; char *name; /* Place holder for data. */ } cfs_mkdir;”…”�”}”hjB sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MÛhj1 ubhä)�”}”(hŒout::”h]”hŒout:”…”�”}”(hjP h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mãhj1 ubjØ)�”}”(hŒQstruct cfs_mkdir_out { ViceFid VFid; struct coda_vattr attr; } cfs_mkdir;”h]”hŒQstruct cfs_mkdir_out { ViceFid VFid; struct coda_vattr attr; } cfs_mkdir;”…”�”}”hj^ sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´Måhj1 ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mëhjí ubj¾)�”}”(hŒàDescription This call is similar to create but creates a directory. Only the mode field in the input parameters is used for creation. Upon successful creation, the attr returned contains the attributes of the new directory. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hj| h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mñhjx ubjÔ)�”}”(hhh]”hä)�”}”(hŒÓThis call is similar to create but creates a directory. Only the mode field in the input parameters is used for creation. Upon successful creation, the attr returned contains the attributes of the new directory.”h]”hŒÓThis call is similar to create but creates a directory. Only the mode field in the input parameters is used for creation. Upon successful creation, the attr returned contains the attributes of the new directory.”…”�”}”(hj� h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MîhjŠ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjx ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mñhjí ubj¾)�”}”(hŒErrors As for create. ”h]”(jÄ)�”}”(hŒErrors”h]”hŒErrors”…”�”}”(hj« h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Môhj§ ubjÔ)�”}”(hhh]”hä)�”}”(hŒAs for create.”h]”hŒAs for create.”…”�”}”(hj¼ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Môhj¹ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj§ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Môhjí ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjé ubhÞ)�”}”(hŒDThe input parameter should be changed to mode instead of attributes.”h]”hä)�”}”(hŒDThe input parameter should be changed to mode instead of attributes.”h]”hŒDThe input parameter should be changed to mode instead of attributes.”…”�”}”(hjà h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MøhjÜ ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhjé ubhä)�”}”(hŒQThe attributes of the parent should be returned since the size and mtime changes.”h]”hŒQThe attributes of the parent should be returned since the size and mtime changes.”…”�”}”(hjô h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mûhjé ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MÕhjØ h²hubeh}”(h]”Œmkdir”ah ]”h"]”Œ 4.9. mkdir”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MÒubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.10. link”h]”hŒ 4.10. link”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´Mubj)�”}”(hXSummary Create a link to an existing file. Arguments in:: struct cfs_link_in { ViceFid sourceFid; /* cnode to link *to* */ ViceFid destFid; /* Directory in which to place link */ char *tname; /* Place holder for data. */ } cfs_link; out empty Description This call creates a link to the sourceFid in the directory identified by destFid with name tname. The source must reside in the target's parent, i.e. the source must be have parent destFid, i.e. Coda does not support cross directory hard links. Only the return value is relevant. It indicates success or the type of failure. Errors The usual errors can occur. ”h]”j¹)�”}”(hhh]”(j¾)�”}”(hŒ+Summary Create a link to an existing file. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hj,h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mhj(ubjÔ)�”}”(hhh]”hä)�”}”(hŒ"Create a link to an existing file.”h]”hŒ"Create a link to an existing file.”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj:ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj(ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mhj%ubj¾)�”}”(hX6Arguments in:: struct cfs_link_in { ViceFid sourceFid; /* cnode to link *to* */ ViceFid destFid; /* Directory in which to place link */ char *tname; /* Place holder for data. */ } cfs_link; out empty ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj[h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MhjWubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hjlh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MhjiubjØ)�”}”(hŒÝstruct cfs_link_in { ViceFid sourceFid; /* cnode to link *to* */ ViceFid destFid; /* Directory in which to place link */ char *tname; /* Place holder for data. */ } cfs_link;”h]”hŒÝstruct cfs_link_in { ViceFid sourceFid; /* cnode to link *to* */ ViceFid destFid; /* Directory in which to place link */ char *tname; /* Place holder for data. */ } cfs_link;”…”�”}”hjzsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M hjiubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hjˆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhjiubj)�”}”(hŒempty ”h]”hä)�”}”(hŒempty”h]”hŒempty”…”�”}”(hjšh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj–ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mhjiubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjWubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mhj%ubj¾)�”}”(hXTDescription This call creates a link to the sourceFid in the directory identified by destFid with name tname. The source must reside in the target's parent, i.e. the source must be have parent destFid, i.e. Coda does not support cross directory hard links. Only the return value is relevant. It indicates success or the type of failure. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hj¾h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MhjºubjÔ)�”}”(hhh]”hä)�”}”(hXGThis call creates a link to the sourceFid in the directory identified by destFid with name tname. The source must reside in the target's parent, i.e. the source must be have parent destFid, i.e. Coda does not support cross directory hard links. Only the return value is relevant. It indicates success or the type of failure.”h]”hXIThis call creates a link to the sourceFid in the directory identified by destFid with name tname. The source must reside in the target’s parent, i.e. the source must be have parent destFid, i.e. Coda does not support cross directory hard links. Only the return value is relevant. It indicates success or the type of failure.”…”�”}”(hjÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MhjÌubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjºubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mhj%ubj¾)�”}”(hŒ$Errors The usual errors can occur. ”h]”(jÄ)�”}”(hŒErrors”h]”hŒErrors”…”�”}”(hjíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MhjéubjÔ)�”}”(hhh]”hä)�”}”(hŒThe usual errors can occur.”h]”hŒThe usual errors can occur.”…”�”}”(hjþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhjûubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjéubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mhj%ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj!ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mhjh²hubeh}”(h]”Œlink”ah ]”h"]”Œ 4.10. link”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4.11. symlink”h]”hŒ4.11. symlink”…”�”}”(hj/h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj,h²hh³hÇh´M!ubj)�”}”(hX¢Summary create a symbolic link Arguments in:: struct cfs_symlink_in { ViceFid VFid; /* Directory to put symlink in */ char *srcname; struct coda_vattr attr; char *tname; } cfs_symlink; out none Description Create a symbolic link. The link is to be placed in the directory identified by VFid and named tname. It should point to the pathname srcname. The attributes of the newly created object are to be set to attr. .. Note:: The attributes of the target directory should be returned since its size changed. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒSummary create a symbolic link ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjHh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M%hjDubjÔ)�”}”(hhh]”hä)�”}”(hŒcreate a symbolic link”h]”hŒcreate a symbolic link”…”�”}”(hjYh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M%hjVubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjDubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M%hjAubj¾)�”}”(hXArguments in:: struct cfs_symlink_in { ViceFid VFid; /* Directory to put symlink in */ char *srcname; struct coda_vattr attr; char *tname; } cfs_symlink; out none ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjwh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M5hjsubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hjˆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M(hj…ubjØ)�”}”(hŒµstruct cfs_symlink_in { ViceFid VFid; /* Directory to put symlink in */ char *srcname; struct coda_vattr attr; char *tname; } cfs_symlink;”h]”hŒµstruct cfs_symlink_in { ViceFid VFid; /* Directory to put symlink in */ char *srcname; struct coda_vattr attr; char *tname; } cfs_symlink;”…”�”}”hj–sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M*hj…ubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hj¤h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M3hj…ubj)�”}”(hŒnone ”h]”hä)�”}”(hŒnone”h]”hŒnone”…”�”}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M5hj²ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M5hj…ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjsubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M5hjAubj¾)�”}”(hŒßDescription Create a symbolic link. The link is to be placed in the directory identified by VFid and named tname. It should point to the pathname srcname. The attributes of the newly created object are to be set to attr. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjÚh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M;hjÖubjÔ)�”}”(hhh]”hä)�”}”(hŒÒCreate a symbolic link. The link is to be placed in the directory identified by VFid and named tname. It should point to the pathname srcname. The attributes of the newly created object are to be set to attr.”h]”hŒÒCreate a symbolic link. The link is to be placed in the directory identified by VFid and named tname. It should point to the pathname srcname. The attributes of the newly created object are to be set to attr.”…”�”}”(hjëh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M8hjèubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÖubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M;hjAubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj=ubhÞ)�”}”(hŒQThe attributes of the target directory should be returned since its size changed.”h]”hä)�”}”(hŒQThe attributes of the target directory should be returned since its size changed.”h]”hŒQThe attributes of the target directory should be returned since its size changed.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M?hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj=ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M$hj,h²hubeh}”(h]”Œsymlink”ah ]”h"]”Œ 4.11. symlink”ah$]”h&]”uh1hÈhj´h²hh³hÇh´M!ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.12. remove”h]”hŒ 4.12. remove”…”�”}”(hj4h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj1h²hh³hÇh´MDubj)�”}”(hX·Summary Remove a file Arguments in:: struct cfs_remove_in { ViceFid VFid; char *name; /* Place holder for data. */ } cfs_remove; out none Description Remove file named cfs_remove_in.name in directory identified by VFid. .. Note:: The attributes of the directory should be returned since its mtime and size may change. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒSummary Remove a file ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjMh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MHhjIubjÔ)�”}”(hhh]”hä)�”}”(hŒ Remove a file”h]”hŒ Remove a file”…”�”}”(hj^h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MHhj[ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjIubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MHhjFubj¾)�”}”(hŒÄArguments in:: struct cfs_remove_in { ViceFid VFid; char *name; /* Place holder for data. */ } cfs_remove; out none ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj|h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MVhjxubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MKhjŠubjØ)�”}”(hŒwstruct cfs_remove_in { ViceFid VFid; char *name; /* Place holder for data. */ } cfs_remove;”h]”hŒwstruct cfs_remove_in { ViceFid VFid; char *name; /* Place holder for data. */ } cfs_remove;”…”�”}”hj›sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MMhjŠubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hj©h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MThjŠubj)�”}”(hŒnone ”h]”hä)�”}”(hŒnone”h]”hŒnone”…”�”}”(hj»h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MVhj·ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MVhjŠubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjxubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MVhjFubj¾)�”}”(hŒUDescription Remove file named cfs_remove_in.name in directory identified by VFid. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M[hjÛubjÔ)�”}”(hhh]”hä)�”}”(hŒGRemove file named cfs_remove_in.name in directory identified by VFid.”h]”hŒGRemove file named cfs_remove_in.name in directory identified by VFid.”…”�”}”(hjðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MYhjíubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÛubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M[hjFubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjBubhÞ)�”}”(hŒWThe attributes of the directory should be returned since its mtime and size may change.”h]”hä)�”}”(hŒWThe attributes of the directory should be returned since its mtime and size may change.”h]”hŒWThe attributes of the directory should be returned since its mtime and size may change.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M_hjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhjBubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MGhj1h²hubeh}”(h]”Œremove”ah ]”h"]”Œ 4.12. remove”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MDubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.13. rmdir”h]”hŒ 4.13. rmdir”…”�”}”(hj9h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj6h²hh³hÇh´Mdubj)�”}”(hXÈSummary Remove a directory Arguments in:: struct cfs_rmdir_in { ViceFid VFid; char *name; /* Place holder for data. */ } cfs_rmdir; out none Description Remove the directory with name 'name' from the directory identified by VFid. .. Note:: The attributes of the parent directory should be returned since its mtime and size may change. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒSummary Remove a directory ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjRh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MhhjNubjÔ)�”}”(hhh]”hä)�”}”(hŒRemove a directory”h]”hŒRemove a directory”…”�”}”(hjch²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhhj`ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjNubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MhhjKubj¾)�”}”(hŒÂArguments in:: struct cfs_rmdir_in { ViceFid VFid; char *name; /* Place holder for data. */ } cfs_rmdir; out none ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mvhj}ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hj’h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mkhj�ubjØ)�”}”(hŒustruct cfs_rmdir_in { ViceFid VFid; char *name; /* Place holder for data. */ } cfs_rmdir;”h]”hŒustruct cfs_rmdir_in { ViceFid VFid; char *name; /* Place holder for data. */ } cfs_rmdir;”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´Mmhj�ubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hj®h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mthj�ubj)�”}”(hŒnone ”h]”hä)�”}”(hŒnone”h]”hŒnone”…”�”}”(hjÀh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mvhj¼ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mvhj�ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj}ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MvhjKubj¾)�”}”(hŒYDescription Remove the directory with name 'name' from the directory identified by VFid. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjäh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MzhjàubjÔ)�”}”(hhh]”hä)�”}”(hŒLRemove the directory with name 'name' from the directory identified by VFid.”h]”hŒPRemove the directory with name ‘name’ from the directory identified by VFid.”…”�”}”(hjõh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Myhjòubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjàubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MzhjKubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjGubhÞ)�”}”(hŒ^The attributes of the parent directory should be returned since its mtime and size may change.”h]”hä)�”}”(hŒ^The attributes of the parent directory should be returned since its mtime and size may change.”h]”hŒ^The attributes of the parent directory should be returned since its mtime and size may change.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M|hjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhjGubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mghj6h²hubeh}”(h]”Œrmdir”ah ]”h"]”Œ 4.13. rmdir”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MdubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4.14. readlink”h]”hŒ4.14. readlink”…”�”}”(hj>h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj;h²hh³hÇh´M�ubj)�”}”(hXBSummary Read the value of a symbolic link. Arguments in:: struct cfs_readlink_in { ViceFid VFid; } cfs_readlink; out:: struct cfs_readlink_out { int count; caddr_t data; /* Place holder for data. */ } cfs_readlink; Description This routine reads the contents of symbolic link identified by VFid into the buffer data. The buffer data must be able to hold any name up to CFS_MAXNAMLEN (PATH or NAM??). Errors No unusual errors. ”h]”j¹)�”}”(hhh]”(j¾)�”}”(hŒ+Summary Read the value of a symbolic link. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjWh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M…hjSubjÔ)�”}”(hhh]”hä)�”}”(hŒ"Read the value of a symbolic link.”h]”hŒ"Read the value of a symbolic link.”…”�”}”(hjhh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M…hjeubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjSubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M…hjPubj¾)�”}”(hXArguments in:: struct cfs_readlink_in { ViceFid VFid; } cfs_readlink; out:: struct cfs_readlink_out { int count; caddr_t data; /* Place holder for data. */ } cfs_readlink; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj†h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M—hj‚ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mˆhj”ubjØ)�”}”(hŒ:struct cfs_readlink_in { ViceFid VFid; } cfs_readlink;”h]”hŒ:struct cfs_readlink_in { ViceFid VFid; } cfs_readlink;”…”�”}”hj¥sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MŠhj”ubhä)�”}”(hŒout::”h]”hŒout:”…”�”}”(hj³h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M�hj”ubjØ)�”}”(hŒustruct cfs_readlink_out { int count; caddr_t data; /* Place holder for data. */ } cfs_readlink;”h]”hŒustruct cfs_readlink_out { int count; caddr_t data; /* Place holder for data. */ } cfs_readlink;”…”�”}”hjÁsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M’hj”ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj‚ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M—hjPubj¾)�”}”(hŒºDescription This routine reads the contents of symbolic link identified by VFid into the buffer data. The buffer data must be able to hold any name up to CFS_MAXNAMLEN (PATH or NAM??). ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MœhjÛubjÔ)�”}”(hhh]”hä)�”}”(hŒ­This routine reads the contents of symbolic link identified by VFid into the buffer data. The buffer data must be able to hold any name up to CFS_MAXNAMLEN (PATH or NAM??).”h]”hŒ­This routine reads the contents of symbolic link identified by VFid into the buffer data. The buffer data must be able to hold any name up to CFS_MAXNAMLEN (PATH or NAM??).”…”�”}”(hjðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mšhjíubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÛubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MœhjPubj¾)�”}”(hŒErrors No unusual errors. ”h]”(jÄ)�”}”(hŒErrors”h]”hŒErrors”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M hj ubjÔ)�”}”(hhh]”hä)�”}”(hŒNo unusual errors.”h]”hŒNo unusual errors.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MŸhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M hjPubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjLubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M„hj;h²hubeh}”(h]”Œreadlink”ah ]”h"]”Œ4.14. readlink”ah$]”h&]”uh1hÈhj´h²hh³hÇh´M�ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.15. open”h]”hŒ 4.15. open”…”�”}”(hjPh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjMh²hh³hÇh´M£ubj)�”}”(hXøSummary Open a file. Arguments in:: struct cfs_open_in { ViceFid VFid; int flags; } cfs_open; out:: struct cfs_open_out { dev_t dev; ino_t inode; } cfs_open; Description This request asks Venus to place the file identified by VFid in its cache and to note that the calling process wishes to open it with flags as in open(2). The return value to the kernel differs for Unix and Windows systems. For Unix systems the Coda FS Driver is informed of the device and inode number of the container file in the fields dev and inode. For Windows the path of the container file is returned to the kernel. .. Note:: Currently the cfs_open_out structure is not properly adapted to deal with the Windows case. It might be best to implement two upcalls, one to open aiming at a container file name, the other at a container file inode. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒSummary Open a file. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjih²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M§hjeubjÔ)�”}”(hhh]”hä)�”}”(hŒ Open a file.”h]”hŒ Open a file.”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M§hjwubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjeubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M§hjbubj¾)�”}”(hXArguments in:: struct cfs_open_in { ViceFid VFid; int flags; } cfs_open; out:: struct cfs_open_out { dev_t dev; ino_t inode; } cfs_open; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj˜h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mºhj”ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hj©h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mªhj¦ubjØ)�”}”(hŒEstruct cfs_open_in { ViceFid VFid; int flags; } cfs_open;”h]”hŒEstruct cfs_open_in { ViceFid VFid; int flags; } cfs_open;”…”�”}”hj·sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M¬hj¦ubhä)�”}”(hŒout::”h]”hŒout:”…”�”}”(hjÅh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M³hj¦ubjØ)�”}”(hŒMstruct cfs_open_out { dev_t dev; ino_t inode; } cfs_open;”h]”hŒMstruct cfs_open_out { dev_t dev; ino_t inode; } cfs_open;”…”�”}”hjÓsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´Mµhj¦ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj”ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mºhjbubj¾)�”}”(hX¸Description This request asks Venus to place the file identified by VFid in its cache and to note that the calling process wishes to open it with flags as in open(2). The return value to the kernel differs for Unix and Windows systems. For Unix systems the Coda FS Driver is informed of the device and inode number of the container file in the fields dev and inode. For Windows the path of the container file is returned to the kernel. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MÄhjíubjÔ)�”}”(hhh]”hä)�”}”(hXªThis request asks Venus to place the file identified by VFid in its cache and to note that the calling process wishes to open it with flags as in open(2). The return value to the kernel differs for Unix and Windows systems. For Unix systems the Coda FS Driver is informed of the device and inode number of the container file in the fields dev and inode. For Windows the path of the container file is returned to the kernel.”h]”hXªThis request asks Venus to place the file identified by VFid in its cache and to note that the calling process wishes to open it with flags as in open(2). The return value to the kernel differs for Unix and Windows systems. For Unix systems the Coda FS Driver is informed of the device and inode number of the container file in the fields dev and inode. For Windows the path of the container file is returned to the kernel.”…”�”•Ý}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M½hjÿubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjíubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MÄhjbubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj^ubhÞ)�”}”(hŒÙCurrently the cfs_open_out structure is not properly adapted to deal with the Windows case. It might be best to implement two upcalls, one to open aiming at a container file name, the other at a container file inode.”h]”hä)�”}”(hŒÙCurrently the cfs_open_out structure is not properly adapted to deal with the Windows case. It might be best to implement two upcalls, one to open aiming at a container file name, the other at a container file inode.”h]”hŒÙCurrently the cfs_open_out structure is not properly adapted to deal with the Windows case. It might be best to implement two upcalls, one to open aiming at a container file name, the other at a container file inode.”…”�”}”(hj&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÈhj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj^ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M¦hjMh²hubeh}”(h]”Œopen”ah ]”h"]”Œ 4.15. open”ah$]”h&]”uh1hÈhj´h²hh³hÇh´M£ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.16. close”h]”hŒ 4.16. close”…”�”}”(hjKh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjHh²hh³hÇh´MÏubj)�”}”(hX–Summary Close a file, update it on the servers. Arguments in:: struct cfs_close_in { ViceFid VFid; int flags; } cfs_close; out none Description Close the file identified by VFid. .. Note:: The flags argument is bogus and not used. However, Venus' code has room to deal with an execp input field, probably this field should be used to inform Venus that the file was closed but is still memory mapped for execution. There are comments about fetching versus not fetching the data in Venus vproc_vfscalls. This seems silly. If a file is being closed, the data in the container file is to be the new data. Here again the execp flag might be in play to create confusion: currently Venus might think a file can be flushed from the cache when it is still memory mapped. This needs to be understood. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒ0Summary Close a file, update it on the servers. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjdh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MÓhj`ubjÔ)�”}”(hhh]”hä)�”}”(hŒ'Close a file, update it on the servers.”h]”hŒ'Close a file, update it on the servers.”…”�”}”(hjuh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÓhjrubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj`ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MÓhj]ubj¾)�”}”(hŒ”Arguments in:: struct cfs_close_in { ViceFid VFid; int flags; } cfs_close; out none ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj“h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Máhj�ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hj¤h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÖhj¡ubjØ)�”}”(hŒGstruct cfs_close_in { ViceFid VFid; int flags; } cfs_close;”h]”hŒGstruct cfs_close_in { ViceFid VFid; int flags; } cfs_close;”…”�”}”hj²sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MØhj¡ubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hjÀh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mßhj¡ubj)�”}”(hŒnone ”h]”hä)�”}”(hŒnone”h]”hŒnone”…”�”}”(hjÒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MáhjÎubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Máhj¡ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj�ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Máhj]ubj¾)�”}”(hŒ/Description Close the file identified by VFid. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjöh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MähjòubjÔ)�”}”(hhh]”hä)�”}”(hŒ"Close the file identified by VFid.”h]”hŒ"Close the file identified by VFid.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mähjubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjòubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mähj]ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjYubhÞ)�”}”(hX_The flags argument is bogus and not used. However, Venus' code has room to deal with an execp input field, probably this field should be used to inform Venus that the file was closed but is still memory mapped for execution. There are comments about fetching versus not fetching the data in Venus vproc_vfscalls. This seems silly. If a file is being closed, the data in the container file is to be the new data. Here again the execp flag might be in play to create confusion: currently Venus might think a file can be flushed from the cache when it is still memory mapped. This needs to be understood.”h]”hä)�”}”(hX_The flags argument is bogus and not used. However, Venus' code has room to deal with an execp input field, probably this field should be used to inform Venus that the file was closed but is still memory mapped for execution. There are comments about fetching versus not fetching the data in Venus vproc_vfscalls. This seems silly. If a file is being closed, the data in the container file is to be the new data. Here again the execp flag might be in play to create confusion: currently Venus might think a file can be flushed from the cache when it is still memory mapped. This needs to be understood.”h]”hXaThe flags argument is bogus and not used. However, Venus’ code has room to deal with an execp input field, probably this field should be used to inform Venus that the file was closed but is still memory mapped for execution. There are comments about fetching versus not fetching the data in Venus vproc_vfscalls. This seems silly. If a file is being closed, the data in the container file is to be the new data. Here again the execp flag might be in play to create confusion: currently Venus might think a file can be flushed from the cache when it is still memory mapped. This needs to be understood.”…”�”}”(hj+h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mèhj'ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhjYubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MÒhjHh²hubeh}”(h]”Œclose”ah ]”h"]”Œ 4.16. close”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MÏubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.17. ioctl”h]”hŒ 4.17. ioctl”…”�”}”(hjPh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjMh²hh³hÇh´Môubj)�”}”(hXSummary Do an ioctl on a file. This includes the pioctl interface. Arguments in:: struct cfs_ioctl_in { ViceFid VFid; int cmd; int len; int rwflag; char *data; /* Place holder for data. */ } cfs_ioctl; out:: struct cfs_ioctl_out { int len; caddr_t data; /* Place holder for data. */ } cfs_ioctl; Description Do an ioctl operation on a file. The command, len and data arguments are filled as usual. flags is not used by Venus. .. Note:: Another bogus parameter. flags is not used. What is the business about PREFETCHING in the Venus code? ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒCSummary Do an ioctl on a file. This includes the pioctl interface. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjih²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MøhjeubjÔ)�”}”(hhh]”hä)�”}”(hŒ:Do an ioctl on a file. This includes the pioctl interface.”h]”hŒ:Do an ioctl on a file. This includes the pioctl interface.”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Møhjwubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjeubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Møhjbubj¾)�”}”(hX Arguments in:: struct cfs_ioctl_in { ViceFid VFid; int cmd; int len; int rwflag; char *data; /* Place holder for data. */ } cfs_ioctl; out:: struct cfs_ioctl_out { int len; caddr_t data; /* Place holder for data. */ } cfs_ioctl; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj˜h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mhj”ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hj©h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mûhj¦ubjØ)�”}”(hŒ›struct cfs_ioctl_in { ViceFid VFid; int cmd; int len; int rwflag; char *data; /* Place holder for data. */ } cfs_ioctl;”h]”hŒ›struct cfs_ioctl_in { ViceFid VFid; int cmd; int len; int rwflag; char *data; /* Place holder for data. */ } cfs_ioctl;”…”�”}”hj·sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´Mýhj¦ubhä)�”}”(hŒout::”h]”hŒout:”…”�”}”(hjÅh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj¦ubjØ)�”}”(hŒmstruct cfs_ioctl_out { int len; caddr_t data; /* Place holder for data. */ } cfs_ioctl;”h]”hŒmstruct cfs_ioctl_out { int len; caddr_t data; /* Place holder for data. */ } cfs_ioctl;”…”�”}”hjÓsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M hj¦ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj”ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mhjbubj¾)�”}”(hŒ„Description Do an ioctl operation on a file. The command, len and data arguments are filled as usual. flags is not used by Venus. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MhjíubjÔ)�”}”(hhh]”hä)�”}”(hŒwDo an ioctl operation on a file. The command, len and data arguments are filled as usual. flags is not used by Venus.”h]”hŒwDo an ioctl operation on a file. The command, len and data arguments are filled as usual. flags is not used by Venus.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhjÿubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjíubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mhjbubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj^ubhÞ)�”}”(hŒgAnother bogus parameter. flags is not used. What is the business about PREFETCHING in the Venus code?”h]”hä)�”}”(hŒgAnother bogus parameter. flags is not used. What is the business about PREFETCHING in the Venus code?”h]”hŒgAnother bogus parameter. flags is not used. What is the business about PREFETCHING in the Venus code?”…”�”}”(hj&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj^ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M÷hjMh²hubeh}”(h]”Œioctl”ah ]”h"]”Œ 4.17. ioctl”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MôubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.18. rename”h]”hŒ 4.18. rename”…”�”}”(hjKh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjHh²hh³hÇh´Mubj)�”}”(hXSummary Rename a fid. Arguments in:: struct cfs_rename_in { ViceFid sourceFid; char *srcname; ViceFid destFid; char *destname; } cfs_rename; out none Description Rename the object with name srcname in directory sourceFid to destname in destFid. It is important that the names srcname and destname are 0 terminated strings. Strings in Unix kernels are not always null terminated. ”h]”j¹)�”}”(hhh]”(j¾)�”}”(hŒSummary Rename a fid. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjdh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M!hj`ubjÔ)�”}”(hhh]”hä)�”}”(hŒ Rename a fid.”h]”hŒ Rename a fid.”…”�”}”(hjuh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M!hjrubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj`ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M!hj]ubj¾)�”}”(hŒìArguments in:: struct cfs_rename_in { ViceFid sourceFid; char *srcname; ViceFid destFid; char *destname; } cfs_rename; out none ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj“h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M1hj�ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hj¤h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M$hj¡ubjØ)�”}”(hŒ‰struct cfs_rename_in { ViceFid sourceFid; char *srcname; ViceFid destFid; char *destname; } cfs_rename;”h]”hŒ‰struct cfs_rename_in { ViceFid sourceFid; char *srcname; ViceFid destFid; char *destname; } cfs_rename;”…”�”}”hj²sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M&hj¡ubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hjÀh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M/hj¡ubj)�”}”(hŒnone ”h]”hä)�”}”(hŒnone”h]”hŒnone”…”�”}”(hjÒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M1hjÎubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M1hj¡ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj�ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M1hj]ubj¾)�”}”(hŒéDescription Rename the object with name srcname in directory sourceFid to destname in destFid. It is important that the names srcname and destname are 0 terminated strings. Strings in Unix kernels are not always null terminated. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjöh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M8hjòubjÔ)�”}”(hhh]”hä)�”}”(hŒÛRename the object with name srcname in directory sourceFid to destname in destFid. It is important that the names srcname and destname are 0 terminated strings. Strings in Unix kernels are not always null terminated.”h]”hŒÛRename the object with name srcname in directory sourceFid to destname in destFid. It is important that the names srcname and destname are 0 terminated strings. Strings in Unix kernels are not always null terminated.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M4hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjòubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M8hj]ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjYubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M hjHh²hubeh}”(h]”Œrename”ah ]”h"]”Œ 4.18. rename”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4.19. readdir”h]”hŒ4.19. readdir”…”�”}”(hj8h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj5h²hh³hÇh´M;ubj)�”}”(hXßSummary Read directory entries. Arguments in:: struct cfs_readdir_in { ViceFid VFid; int count; int offset; } cfs_readdir; out:: struct cfs_readdir_out { int size; caddr_t data; /* Place holder for data. */ } cfs_readdir; Description Read directory entries from VFid starting at offset and read at most count bytes. Returns the data in data and returns the size in size. .. Note:: This call is not used. Readdir operations exploit container files. We will re-evaluate this during the directory revamp which is about to take place. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒ Summary Read directory entries. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M?hjMubjÔ)�”}”(hhh]”hä)�”}”(hŒRead directory entries.”h]”hŒRead directory entries.”…”�”}”(hjbh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M?hj_ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjMubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M?hjJubj¾)�”}”(hXOArguments in:: struct cfs_readdir_in { ViceFid VFid; int count; int offset; } cfs_readdir; out:: struct cfs_readdir_out { int size; caddr_t data; /* Place holder for data. */ } cfs_readdir; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj€h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MThj|ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hj‘h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MBhjŽubjØ)�”}”(hŒ[struct cfs_readdir_in { ViceFid VFid; int count; int offset; } cfs_readdir;”h]”hŒ[struct cfs_readdir_in { ViceFid VFid; int count; int offset; } cfs_readdir;”…”�”}”hjŸsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MDhjŽubhä)�”}”(hŒout::”h]”hŒout:”…”�”}”(hj­h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MMhjŽubjØ)�”}”(hŒrstruct cfs_readdir_out { int size; caddr_t data; /* Place holder for data. */ } cfs_readdir;”h]”hŒrstruct cfs_readdir_out { int size; caddr_t data; /* Place holder for data. */ } cfs_readdir;”…”�”}”hj»sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MOhjŽubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj|ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MThjJubj¾)�”}”(hŒ—Description Read directory entries from VFid starting at offset and read at most count bytes. Returns the data in data and returns the size in size. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MZhjÕubjÔ)�”}”(hhh]”hä)�”}”(hŒ‰Read directory entries from VFid starting at offset and read at most count bytes. Returns the data in data and returns the size in size.”h]”hŒ‰Read directory entries from VFid starting at offset and read at most count bytes. Returns the data in data and returns the size in size.”…”�”}”(hjêh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MWhjçubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÕubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MZhjJubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjFubhÞ)�”}”(hŒ—This call is not used. Readdir operations exploit container files. We will re-evaluate this during the directory revamp which is about to take place.”h]”hä)�”}”(hŒ—This call is not used. Readdir operations exploit container files. We will re-evaluate this during the directory revamp which is about to take place.”h]”hŒ—This call is not used. Readdir operations exploit container files. We will re-evaluate this during the directory revamp which is about to take place.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M^hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhjFubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M>hj5h²hubeh}”(h]”Œreaddir”ah ]”h"]”Œ 4.19. readdir”ah$]”h&]”uh1hÈhj´h²hh³hÇh´M;ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.20. vget”h]”hŒ 4.20. vget”…”�”}”(hj3h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj0h²hh³hÇh´Mdubj)�”}”(hXmSummary instructs Venus to do an FSDB->Get. Arguments in:: struct cfs_vget_in { ViceFid VFid; } cfs_vget; out:: struct cfs_vget_out { ViceFid VFid; int vtype; } cfs_vget; Description This upcall asks Venus to do a get operation on an fsobj labelled by VFid. .. Note:: This operation is not used. However, it is extremely useful since it can be used to deal with read/write memory mapped files. These can be "pinned" in the Venus cache using vget and released with inactive. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒ,Summary instructs Venus to do an FSDB->Get. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjLh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MhhjHubjÔ)�”}”(hhh]”hä)�”}”(hŒ#instructs Venus to do an FSDB->Get.”h]”hŒ#instructs Venus to do an FSDB->Get.”…”�”}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MhhjZubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjHubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MhhjEubj¾)�”}”(hŒßArguments in:: struct cfs_vget_in { ViceFid VFid; } cfs_vget; out:: struct cfs_vget_out { ViceFid VFid; int vtype; } cfs_vget; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj{h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MzhjwubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mkhj‰ubjØ)�”}”(hŒ2struct cfs_vget_in { ViceFid VFid; } cfs_vget;”h]”hŒ2struct cfs_vget_in { ViceFid VFid; } cfs_vget;”…”�”}”hjšsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´Mmhj‰ubhä)�”}”(hŒout::”h]”hŒout:”…”�”}”(hj¨h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mshj‰ubjØ)�”}”(hŒBstruct cfs_vget_out { ViceFid VFid; int vtype; } cfs_vget;”h]”hŒBstruct cfs_vget_out { ViceFid VFid; int vtype; } cfs_vget;”…”�”}”hj¶sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´Muhj‰ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjwubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MzhjEubj¾)�”}”(hŒWDescription This upcall asks Venus to do a get operation on an fsobj labelled by VFid. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M~hjÐubjÔ)�”}”(hhh]”hä)�”}”(hŒJThis upcall asks Venus to do a get operation on an fsobj labelled by VFid.”h]”hŒJThis upcall asks Venus to do a get operation on an fsobj labelled by VFid.”…”�”}”(hjåh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M}hjâubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÐubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M~hjEubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjAubhÞ)�”}”(hŒÎThis operation is not used. However, it is extremely useful since it can be used to deal with read/write memory mapped files. These can be "pinned" in the Venus cache using vget and released with inactive.”h]”hä)�”}”(hŒÎThis operation is not used. However, it is extremely useful since it can be used to deal with read/write memory mapped files. These can be "pinned" in the Venus cache using vget and released with inactive.”h]”hŒÒThis operation is not used. However, it is extremely useful since it can be used to deal with read/write memory mapped files. These can be “pinnedâ€� in the Venus cache using vget and released with inactive.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M‚hjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhjAubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mghj0h²hubeh}”(h]”Œvget”ah ]”h"]”Œ 4.20. vget”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MdubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.21. fsync”h]”hŒ 4.21. fsync”…”�”}”(hj.h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj+h²hh³hÇh´M‰ubj)�”}”(hX¼Summary Tell Venus to update the RVM attributes of a file. Arguments in:: struct cfs_fsync_in { ViceFid VFid; } cfs_fsync; out none Description Ask Venus to update RVM attributes of object VFid. This should be called as part of kernel level fsync type calls. The result indicates if the syncing was successful. .. Note:: Linux does not implement this call. It should. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒ;Summary Tell Venus to update the RVM attributes of a file. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjGh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M�hjCubjÔ)�”}”(hhh]”hä)�”}”(hŒ2Tell Venus to update the RVM attributes of a file.”h]”hŒ2Tell Venus to update the RVM attributes of a file.”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M�hjUubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjCubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M�hj@ubj¾)�”}”(hŒvArguments in:: struct cfs_fsync_in { ViceFid VFid; } cfs_fsync; out none ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjvh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MšhjrubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hj‡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M�hj„ubjØ)�”}”(hŒ4struct cfs_fsync_in { ViceFid VFid; } cfs_fsync;”h]”hŒ4struct cfs_fsync_in { ViceFid VFid; } cfs_fsync;”…”�”}”hj•sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M’hj„ubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hj£h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M˜hj„ubj)�”}”(hŒnone ”h]”hä)�”}”(hŒnone”h]”hŒnone”…”�”}”(hjµh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mšhj±ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mšhj„ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjrubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mšhj@ubj¾)�”}”(hŒ´Description Ask Venus to update RVM attributes of object VFid. This should be called as part of kernel level fsync type calls. The result indicates if the syncing was successful. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MŸhjÕubjÔ)�”}”(hhh]”hä)�”}”(hŒ§Ask Venus to update RVM attributes of object VFid. This should be called as part of kernel level fsync type calls. The result indicates if the syncing was successful.”h]”hŒ§Ask Venus to update RVM attributes of object VFid. This should be called as part of kernel level fsync type calls. The result indicates if the syncing was successful.”…”�”}”(hjêh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M�hjçubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÕubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MŸhj@ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj<ubhÞ)�”}”(hŒ.Linux does not implement this call. It should.”h]”hä)�”}”(hj h]”hŒ.Linux does not implement this call. It should.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M¡hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj<ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MŒhj+h²hubeh}”(h]”Œfsync”ah ]”h"]”Œ 4.21. fsync”ah$]”h&]”uh1hÈhj´h²hh³hÇh´M‰ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4.22. inactive”h]”hŒ4.22. inactive”…”�”}”(hj2h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj/h²hh³hÇh´M¥ubj)�”}”(hXSummary Tell Venus a vnode is no longer in use. Arguments in:: struct cfs_inactive_in { ViceFid VFid; } cfs_inactive; out none Description This operation returns EOPNOTSUPP. .. Note:: This should perhaps be removed. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒ0Summary Tell Venus a vnode is no longer in use. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjKh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M©hjGubjÔ)�”}”(hhh]”hä)�”}”(hŒ'Tell Venus a vnode is no longer in use.”h]”hŒ'Tell Venus a vnode is no longer in use.”…”�”}”(hj\h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M©hjYubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjGubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M©hjDubj¾)�”}”(hŒ|Arguments in:: struct cfs_inactive_in { ViceFid VFid; } cfs_inactive; out none ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M¶hjvubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hj‹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M¬hjˆubjØ)�”}”(hŒ:struct cfs_inactive_in { ViceFid VFid; } cfs_inactive;”h]”hŒ:struct cfs_inactive_in { ViceFid VFid; } cfs_inactive;”…”�”}”hj™sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M®hjˆubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hj§h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M´hjˆubj)�”}”(hŒnone ”h]”hä)�”}”(hŒnone”h]”hŒnone”…”�”}”(hj¹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M¶hjµubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M¶hjˆubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjvubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M¶hjDubj¾)�”}”(hŒ/Description This operation returns EOPNOTSUPP. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjÝh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M¹hjÙubjÔ)�”}”(hhh]”hä)�”}”(hŒ"This operation returns EOPNOTSUPP.”h]”hŒ"This operation returns EOPNOTSUPP.”…”�”}”(hjîh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M¹hjëubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÙubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M¹hjDubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj@ubhÞ)�”}”(hŒThis should perhaps be removed.”h]”hä)�”}”(hjh]”hŒThis should perhaps be removed.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M»hjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj@ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M¨hj/h²hubeh}”(h]”Œinactive”ah ]”h"]”Œ4.22. inactive”ah$]”h&]”uh1hÈhj´h²hh³hÇh´M¥ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.23. rdwr”h]”hŒ 4.23. rdwr”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj3h²hh³hÇh´M¿ubj)�”}”(hX5Summary Read or write from a file Arguments in:: struct cfs_rdwr_in { ViceFid VFid; int rwflag; int count; int offset; int ioflag; caddr_t data; /* Place holder for data. */ } cfs_rdwr; out:: struct cfs_rdwr_out { int rwflag; int count; caddr_t data; /* Place holder for data. */ } cfs_rdwr; Description This upcall asks Venus to read or write from a file. .. Note:: It should be removed since it is against the Coda philosophy that read/write operations never reach Venus. I have been told the operation does not work. It is not currently used. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒ"Summary Read or write from a file ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjOh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MÃhjKubjÔ)�”}”(hhh]”hä)�”}”(hŒRead or write from a file”h]”hŒRead or write from a file”…”�”}”(hj`h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÃhj]ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjKubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MÃhjHubj¾)�”}”(hXÕArguments in:: struct cfs_rdwr_in { ViceFid VFid; int rwflag; int count; int offset; int ioflag; caddr_t data; /* Place holder for data. */ } cfs_rdwr; out:: struct cfs_rdwr_out { int rwflag; int count; caddr_t data; /* Place holder for data. */ } cfs_rdwr; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj~h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MÜhjzubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÆhjŒubjØ)�”}”(hŒ²struct cfs_rdwr_in { ViceFid VFid; int rwflag; int count; int offset; int ioflag; caddr_t data; /* Place holder for data. */ } cfs_rdwr;”h]”hŒ²struct cfs_rdwr_in { ViceFid VFid; int rwflag; int count; int offset; int ioflag; caddr_t data; /* Place holder for data. */ } cfs_rdwr;”…”�”}”hj�sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MÈhjŒubhä)�”}”(hŒout::”h]”hŒout:”…”�”}”(hj«h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÔhjŒubjØ)�”}”(hŒustruct cfs_rdwr_out { int rwflag; int count; caddr_t data; /* Place holder for data. */ } cfs_rdwr;”h]”hŒustruct cfs_rdwr_out { int rwflag; int count; caddr_t data; /* Place holder for data. */ } cfs_rdwr;”…”�”}”hj¹sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MÖhjŒubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjzubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MÜhjHubj¾)�”}”(hŒBDescription This upcall asks Venus to read or write from a file. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hj×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MàhjÓubjÔ)�”}”(hhh]”hä)�”}”(hŒ4This upcall asks Venus to read or write from a file.”h]”hŒ4This upcall asks Venus to read or write from a file.”…”�”}”(hjèh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mßhjåubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÓubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MàhjHubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjDubhÞ)�”}”(hŒ´It should be removed since it is against the Coda philosophy that read/write operations never reach Venus. I have been told the operation does not work. It is not currently used.”h]”hä)�”}”(hŒ´It should be removed since it is against the Coda philosophy that read/write operations never reach Venus. I have been told the operation does not work. It is not currently used.”h]”hŒ´It should be removed since it is against the Coda philosophy that read/write operations never reach Venus. I have been told the operation does not work. It is not currently used.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mähjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhjDubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MÂhj3h²hubeh}”(h]”Œrdwr”ah ]”h"]”Œ 4.23. rdwr”ah$]”h&]”uh1hÈhj´h²hh³hÇh´M¿ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4.24. odymount”h]”hŒ4.24. odymount”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj.h²hh³hÇh´Mëubj)�”}”(hX¤Summary Allows mounting multiple Coda "filesystems" on one Unix mount point. Arguments in:: struct ody_mount_in { char *name; /* Place holder for data. */ } ody_mount; out:: struct ody_mount_out { ViceFid VFid; } ody_mount; Description Asks Venus to return the rootfid of a Coda system named name. The fid is returned in VFid. .. Note:: This call was used by David for dynamic sets. It should be removed since it causes a jungle of pointers in the VFS mounting area. It is not used by Coda proper. Call is not implemented by Venus. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒMSummary Allows mounting multiple Coda "filesystems" on one Unix mount point. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MïhjFubjÔ)�”}”(hhh]”hä)�”}”(hŒDAllows mounting multiple Coda "filesystems" on one Unix mount point.”h]”hŒHAllows mounting multiple Coda “filesystemsâ€� on one Unix mount point.”…”�”}”(hj[h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MïhjXubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjFubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MïhjCubj¾)�”}”(hŒôArguments in:: struct ody_mount_in { char *name; /* Place holder for data. */ } ody_mount; out:: struct ody_mount_out { ViceFid VFid; } ody_mount; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjyh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MhjuubjÔ)�”}”(hhh]”(hä)�”}”(hŒin::”h]”hŒin:”…”�”}”(hjŠh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mòhj‡ubjØ)�”}”(hŒ_struct ody_mount_in { char *name; /* Place holder for data. */ } ody_mount;”h]”hŒ_struct ody_mount_in { char *name; /* Place holder for data. */ } ody_mount;”…”�”}”hj˜sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´Môhj‡ubhä)�”}”(hŒout::”h]”hŒout:”…”�”}”(hj¦h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Múhj‡ubjØ)�”}”(hŒ5struct ody_mount_out { ViceFid VFid; } ody_mount;”h]”hŒ5struct ody_mount_out { ViceFid VFid; } ody_mount;”…”�”}”hj´sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´Mühj‡ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjuubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MhjCubj¾)�”}”(hŒhDescription Asks Venus to return the rootfid of a Coda system named name. The fid is returned in VFid. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjÒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MhjÎubjÔ)�”}”(hhh]”hä)�”}”(hŒ[Asks Venus to return the rootfid of a Coda system named name. The fid is returned in VFid.”h]”hŒ[Asks Venus to return the rootfid of a Coda system named name. The fid is returned in VFid.”…”�”}”(hjãh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhjàubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÎubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MhjCubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj?ubhÞ)�”}”(hŒÄThis call was used by David for dynamic sets. It should be removed since it causes a jungle of pointers in the VFS mounting area. It is not used by Coda proper. Call is not implemented by Venus.”h]”hä)�”}”(hŒÄThis call was used by David for dynamic sets. It should be removed since it causes a jungle of pointers in the VFS mounting area. It is not used by Coda proper. Call is not implemented by Venus.”h]”hŒÄThis call was used by David for dynamic sets. It should be removed since it causes a jungle of pointers in the VFS mounting area. It is not used by Coda proper. Call is not implemented by Venus.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj?ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mîhj.h²hubeh}”(h]”Œodymount”ah ]”h"]”Œ4.24. odymount”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MëubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4.25. ody_lookup”h]”hŒ4.25. ody_lookup”…”�”}”(hj,h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj)h²hh³hÇh´Mubj)�”}”(hŒ“Summary Looks up something. Arguments in irrelevant out irrelevant .. Note:: Gut it. Call is not implemented by Venus. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒSummary Looks up something. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjEh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MhjAubjÔ)�”}”(hhh]”hä)�”}”(hŒLooks up something.”h]”hŒLooks up something.”…”�”}”(hjVh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MhjSubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjAubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mhj>ubj¾)�”}”(hŒ2Arguments in irrelevant out irrelevant ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjth²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MhjpubjÔ)�”}”(hhh]”(hä)�”}”(hŒin”h]”hŒin”…”�”}”(hj…h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj‚ubj)�”}”(hŒ irrelevant ”h]”hä)�”}”(hŒ irrelevant”h]”hŒ irrelevant”…”�”}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj“ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mhj‚ubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hj«h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj‚ubj)�”}”(hŒ irrelevant ”h]”hä)�”}”(hŒ irrelevant”h]”hŒ irrelevant”…”�”}”(hj½h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj¹ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mhj‚ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjpubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mhj>ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj:ubhÞ)�”}”(hŒ)Gut it. Call is not implemented by Venus.”h]”hä)�”}”(hjåh]”hŒ)Gut it. Call is not implemented by Venus.”…”�”}”(hjçh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhjãubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj:ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mhj)h²hubeh}”(h]”Œ ody-lookup”ah ]”h"]”Œ4.25. ody_lookup”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4.26. ody_expand”h]”hŒ4.26. ody_expand”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´M#ubj)�”}”(hŒ¡Summary expands something in a dynamic set. Arguments in irrelevant out irrelevant .. Note:: Gut it. Call is not implemented by Venus. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒ,Summary expands something in a dynamic set. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hj$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M'hj ubjÔ)�”}”(hhh]”hä)�”}”(hŒ#expands something in a dynamic set.”h]”hŒ#expands something in a dynamic set.”…”�”}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M'hj2ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M'hjubj¾)�”}”(hŒ0Arguments in irrelevant out irrelevant ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjSh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M0hjOubjÔ)�”}”(hhh]”(hä)�”}”(hŒin”h]”hŒin”…”�”}”(hjdh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M*hjaubj)�”}”(hŒ irrelevant ”h]”hä)�”}”(hŒ irrelevant”h]”hŒ irrelevant”…”�”}”(hjvh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M,hjrubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M,hjaubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hjŠh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M.hjaubj)�”}”(hŒ irrelevant ”h]”hä)�”}”(hŒ irrelevant”h]”hŒ irrelevant”…”�”}”(hjœh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M0hj˜ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M0hjaubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjOubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M0hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjubhÞ)�”}”(hŒ)Gut it. Call is not implemented by Venus.”h]”hä)�”}”(hjÄh]”hŒ)Gut it. Call is not implemented by Venus.”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M2hjÂubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M&hjh²hubeh}”(h]”Œ ody-expand”ah ]”h"]”Œ4.26. ody_expand”ah$]”h&]”uh1hÈhj´h²hh³hÇh´M#ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4.27. prefetch”h]”hŒ4.27. prefetch”…”�”}”(hjêh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjçh²hh³hÇh´M6ubj)�”}”(hX}Summary Prefetch a dynamic set. Arguments in Not documented. out Not documented. Description Venus worker.cc has support for this call, although it is noted that it doesn't work. Not surprising, since the kernel does not have support for it. (ODY_PREFETCH is not a defined operation). .. Note:: Gut it. It isn't working and isn't used by Coda. ”h]”(j¹)�”}”(hhh]”j¾)�”}”(hŒ Summary Prefetch a dynamic set. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M:hjÿubjÔ)�”}”(hhh]”hä)�”}”(hŒPrefetch a dynamic set.”h]”hŒPrefetch a dynamic set.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M:hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÿubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M:hjüubah}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjøubhä)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj4h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M<hjøubj)�”}”(hŒ0in Not documented. out Not documented. ”h]”(hä)�”}”(hŒin”h]”hŒin”…”�”}”(hjFh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M>hjBubj)�”}”(hŒNot documented. ”h]”hä)�”}”(hŒNot documented.”h]”hŒNot documented.”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M@hjTubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M@hjBubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hjlh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MBhjBubj)�”}”(hŒNot documented. ”h]”hä)�”}”(hŒNot documented.”h]”hŒNot documented.”…”�”}”(hj~h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MDhjzubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MDhjBubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M>hjøubj¹)�”}”(hhh]”j¾)�”}”(hŒÎDescription Venus worker.cc has support for this call, although it is noted that it doesn't work. Not surprising, since the kernel does not have support for it. (ODY_PREFETCH is not a defined operation). ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MJhj›ubjÔ)�”}”(hhh]”hä)�”}”(hŒÀVenus worker.cc has support for this call, although it is noted that it doesn't work. Not surprising, since the kernel does not have support for it. (ODY_PREFETCH is not a defined operation).”h]”hŒÂVenus worker.cc has support for this call, although it is noted that it doesn’t work. Not surprising, since the kernel does not have support for it. (ODY_PREFETCH is not a defined operation).”…”�”}”(hj°h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MGhj­ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj›ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MJhj˜ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjøubhÞ)�”}”(hŒ0Gut it. It isn't working and isn't used by Coda.”h]”hä)�”}”(hjÒh]”hŒ4Gut it. It isn’t working and isn’t used by Coda.”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MLhjÐubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhjøubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M9hjçh²hubeh}”(h]”Œprefetch”ah ]”h"]”Œ4.27. prefetch”ah$]”h&]”uh1hÈhj´h²hh³hÇh´M6ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 4.28. signal”h]”hŒ 4.28. signal”…”�”}”(hjøh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjõh²hh³hÇh´MQubj)�”}”(hXSummary Send Venus a signal about an upcall. Arguments in none out not applicable. Description This is an out-of-band upcall to Venus to inform Venus that the calling process received a signal after Venus read the message from the input queue. Venus is supposed to clean up the operation. Errors No reply is given. .. Note:: We need to better understand what Venus needs to clean up and if it is doing this correctly. Also we need to handle multiple upcall per system call situations correctly. It would be important to know what state changes in Venus take place after an upcall for which the kernel is responsible for notifying Venus to clean up (e.g. open definitely is such a state change, but many others are maybe not). ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒ-Summary Send Venus a signal about an upcall. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MUhj ubjÔ)�”}”(hhh]”hä)�”}”(hŒ$Send Venus a signal about an upcall.”h]”hŒ$Send Venus a signal about an upcall.”…”�”}”(hj" h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MUhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MUhj ubj¾)�”}”(hŒ/Arguments in none out not applicable. ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj@ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M^hj< ubjÔ)�”}”(hhh]”(hä)�”}”(hŒin”h]”hŒin”…”�”}”(hjQ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MXhjN ubj)�”}”(hŒnone ”h]”hä)�”}”(hŒnone”h]”hŒnone”…”�”}”(hjc h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MZhj_ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MZhjN ubhä)�”}”(hŒout”h]”hŒout”…”�”}”(hjw h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M\hjN ubj)�”}”(hŒnot applicable. ”h]”hä)�”}”(hŒnot applicable.”h]”hŒnot applicable.”…”�”}”(hj‰ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M^hj… ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M^hjN ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj< ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M^hj ubj¾)�”}”(hŒÏDescription This is an out-of-band upcall to Venus to inform Venus that the calling process received a signal after Venus read the message from the input queue. Venus is supposed to clean up the operation. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hj­ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mdhj© ubjÔ)�”}”(hhh]”hä)�”}”(hŒÂThis is an out-of-band upcall to Venus to inform Venus that the calling process received a signal after Venus read the message from the input queue. Venus is supposed to clean up the operation.”h]”hŒÂThis is an out-of-band upcall to Venus to inform Venus that the calling process received a signal after Venus read the message from the input queue. Venus is supposed to clean up the operation.”…”�”}”(hj¾ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mahj» ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj© ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mdhj ubj¾)�”}”(hŒErrors No reply is given. ”h]”(jÄ)�”}”(hŒErrors”h]”hŒErrors”…”�”}”(hjÜ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MghjØ ubjÔ)�”}”(hhh]”hä)�”}”(hŒNo reply is given.”h]”hŒNo reply is given.”…”�”}”(hjí h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mghjê ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjØ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mghj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj ubhÞ)�”}”(hX’We need to better understand what Venus needs to clean up and if it is doing this correctly. Also we need to handle multiple upcall per system call situations correctly. It would be important to know what state changes in Venus take place after an upcall for which the kernel is responsible for notifying Venus to clean up (e.g. open definitely is such a state change, but many others are maybe not).”h]”hä)�”}”(hX’We need to better understand what Venus needs to clean up and if it is doing this correctly. Also we need to handle multiple upcall per system call situations correctly. It would be important to know what state changes in Venus take place after an upcall for which the kernel is responsible for notifying Venus to clean up (e.g. open definitely is such a state change, but many others are maybe not).”h]”hX’We need to better understand what Venus needs to clean up and if it is doing this correctly. Also we need to handle multiple upcall per system call situations correctly. It would be important to know what state changes in Venus take place after an upcall for which the kernel is responsible for notifying Venus to clean up (e.g. open definitely is such a state change, but many others are maybe not).”…”�”}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mkhj !ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MThjõh²hubeh}”(h]”Œsignal”ah ]”h"]”Œ 4.28. signal”ah$]”h&]”uh1hÈhj´h²hh³hÇh´MQubeh}”(h]”Œthe-interface-at-the-call-level”ah ]”h"]”Œ"4. the interface at the call level”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´M6ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ5. The minicache and downcalls”h]”hŒ5. The minicache and downcalls”…”�”}”(hj>!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj;!h²hh³hÇh´Mtubj)�”}”(hXIThe Coda FS Driver can cache results of lookup and access upcalls, to limit the frequency of upcalls. Upcalls carry a price since a process context switch needs to take place. The counterpart of caching the information is that Venus will notify the FS Driver that cached entries must be flushed or renamed. The kernel code generally has to maintain a structure which links the internal file handles (called vnodes in BSD, inodes in Linux and FileHandles in Windows) with the ViceFid's which Venus maintains. The reason is that frequent translations back and forth are needed in order to make upcalls and use the results of upcalls. Such linking objects are called cnodes. The current minicache implementations have cache entries which record the following: 1. the name of the file 2. the cnode of the directory containing the object 3. a list of CodaCred's for which the lookup is permitted. 4. the cnode of the object The lookup call in the Coda FS Driver may request the cnode of the desired object from the cache, by passing its name, directory and the CodaCred's of the caller. The cache will return the cnode or indicate that it cannot be found. The Coda FS Driver must be careful to invalidate cache entries when it modifies or removes objects. When Venus obtains information that indicates that cache entries are no longer valid, it will make a downcall to the kernel. Downcalls are intercepted by the Coda FS Driver and lead to cache invalidations of the kind described below. The Coda FS Driver does not return an error unless the downcall data could not be read into kernel memory. ”h]”(hä)�”}”(hX4The Coda FS Driver can cache results of lookup and access upcalls, to limit the frequency of upcalls. Upcalls carry a price since a process context switch needs to take place. The counterpart of caching the information is that Venus will notify the FS Driver that cached entries must be flushed or renamed.”h]”hX4The Coda FS Driver can cache results of lookup and access upcalls, to limit the frequency of upcalls. Upcalls carry a price since a process context switch needs to take place. The counterpart of caching the information is that Venus will notify the FS Driver that cached entries must be flushed or renamed.”…”�”}”(hjP!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MwhjL!ubhä)�”}”(hXnThe kernel code generally has to maintain a structure which links the internal file handles (called vnodes in BSD, inodes in Linux and FileHandles in Windows) with the ViceFid's which Venus maintains. The reason is that frequent translations back and forth are needed in order to make upcalls and use the results of upcalls. Such linking objects are called cnodes.”h]”hXpThe kernel code generally has to maintain a structure which links the internal file handles (called vnodes in BSD, inodes in Linux and FileHandles in Windows) with the ViceFid’s which Venus maintains. The reason is that frequent translations back and forth are needed in order to make upcalls and use the results of upcalls. Such linking objects are called cnodes.”…”�”}”(hj^!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M}hjL!ubhä)�”}”(hŒTThe current minicache implementations have cache entries which record the following:”h]”hŒTThe current minicache implementations have cache entries which record the following:”…”�”}”(hjl!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M„hjL!ubhŒenumerated_list”“”)�”}”(hhh]”(jé)�”}”(hŒthe name of the file ”h]”hä)�”}”(hŒthe name of the file”h]”hŒthe name of the file”…”�”}”(hjƒ!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M‡hj!ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj|!ubjé)�”}”(hŒ1the cnode of the directory containing the object ”h]”hä)�”}”(hŒ0the cnode of the directory containing the object”h]”hŒ0the cnode of the directory containing the object”…”�”}”(hj›!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M‰hj—!ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj|!ubjé)�”}”(hŒ8a list of CodaCred's for which the lookup is permitted. ”h]”hä)�”}”(hŒ7a list of CodaCred's for which the lookup is permitted.”h]”hŒ9a list of CodaCred’s for which the lookup is permitted.”…”�”}”(hj³!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M‹hj¯!ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj|!ubjé)�”}”(hŒthe cnode of the object ”h]”hä)�”}”(hŒthe cnode of the object”h]”hŒthe cnode of the object”…”�”}”(hjË!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M�hjÇ!ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj|!ubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ.”uh1jz!hjL!ubhä)�”}”(hXMThe lookup call in the Coda FS Driver may request the cnode of the desired object from the cache, by passing its name, directory and the CodaCred's of the caller. The cache will return the cnode or indicate that it cannot be found. The Coda FS Driver must be careful to invalidate cache entries when it modifies or removes objects.”h]”hXOThe lookup call in the Coda FS Driver may request the cnode of the desired object from the cache, by passing its name, directory and the CodaCred’s of the caller. The cache will return the cnode or indicate that it cannot be found. The Coda FS Driver must be careful to invalidate cache entries when it modifies or removes objects.”…”�”}”(hjê!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M�hjL!ubhä)�”}”(hXVWhen Venus obtains information that indicates that cache entries are no longer valid, it will make a downcall to the kernel. Downcalls are intercepted by the Coda FS Driver and lead to cache invalidations of the kind described below. The Coda FS Driver does not return an error unless the downcall data could not be read into kernel memory.”h]”hXVWhen Venus obtains information that indicates that cache entries are no longer valid, it will make a downcall to the kernel. Downcalls are intercepted by the Coda FS Driver and lead to cache invalidations of the kind described below. The Coda FS Driver does not return an error unless the downcall data could not be read into kernel memory.”…”�”}”(hjø!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M•hjL!ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mwhj;!h²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ5.1. INVALIDATE”h]”hŒ5.1. INVALIDATE”…”�”}”(hj"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj "h²hh³hÇh´M�ubj)�”}”(hŒ+No information is available on this call. ”h]”hä)�”}”(hŒ)No information is available on this call.”h]”hŒ)No information is available on this call.”…”�”}”(hj!"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M hj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M hj "h²hubeh}”(h]”Œ invalidate”ah ]”h"]”Œ5.1. invalidate”ah$]”h&]”uh1hÈhj;!h²hh³hÇh´M�ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 5.2. FLUSH”h]”hŒ 5.2. FLUSH”…”�”}”(hj@"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj="h²hh³hÇh´M¤ubj)�”}”(hX<Arguments None Summary Flush the name cache entirely. Description Venus issues this call upon startup and when it dies. This is to prevent stale cache information being held. Some operating systems allow the kernel name cache to be switched off dynamically. When this is done, this downcall is made. ”h]”j¹)�”}”(hhh]”(j¾)�”}”(hŒArguments None ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjY"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M©hjU"ubjÔ)�”}”(hhh]”hä)�”}”(hŒNone”h]”hŒNone”…”�”}”(hjj"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M©hjg"ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjU"ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M©hjR"ubj¾)�”}”(hŒ'Summary Flush the name cache entirely. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjˆ"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M¬hj„"ubjÔ)�”}”(hhh]”hä)�”}”(hŒFlush the name cache entirely.”h]”hŒFlush the name cache entirely.”…”�”}”(hj™"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M¬hj–"ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj„"ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M¬hjR"ubj¾)�”}”(hŒøDescription Venus issues this call upon startup and when it dies. This is to prevent stale cache information being held. Some operating systems allow the kernel name cache to be switched off dynamically. When this is done, this downcall is made. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hj·"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M³hj³"ubjÔ)�”}”(hhh]”hä)�”}”(hŒêVenus issues this call upon startup and when it dies. This is to prevent stale cache information being held. Some operating systems allow the kernel name cache to be switched off dynamically. When this is done, this downcall is made.”h]”hŒêVenus issues this call upon startup and when it dies. This is to prevent stale cache information being held. Some operating systems allow the kernel name cache to be switched off dynamically. When this is done, this downcall is made.”…”�”}”(hjÈ"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M¯hjÅ"ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj³"ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M³hjR"ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjN"ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M¨hj="h²hubeh}”(h]”Œflush”ah ]”h"]”Œ 5.2. flush”ah$]”h&]”uh1hÈhj;!h²hh³hÇh´M¤ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ5.3. PURGEUSER”h]”hŒ5.3. PURGEUSER”…”�”}”(hjù"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjö"h²hh³hÇh´M¶ubj)�”}”(hX#Arguments :: struct cfs_purgeuser_out {/* CFS_PURGEUSER is a venus->kernel call */ struct CodaCred cred; } cfs_purgeuser; Description Remove all entries in the cache carrying the Cred. This call is issued when tokens for a user expire or are flushed. ”h]”j¹)�”}”(hhh]”(j¾)�”}”(hŒ“Arguments :: struct cfs_purgeuser_out {/* CFS_PURGEUSER is a venus->kernel call */ struct CodaCred cred; } cfs_purgeuser; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MÀhj#ubjÔ)�”}”(hhh]”jØ)�”}”(hŒpstruct cfs_purgeuser_out {/* CFS_PURGEUSER is a venus->kernel call */ struct CodaCred cred; } cfs_purgeuser;”h]”hŒpstruct cfs_purgeuser_out {/* CFS_PURGEUSER is a venus->kernel call */ struct CodaCred cred; } cfs_purgeuser;”…”�”}”hj##sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M¼hj #ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj#ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MÀhj #ubj¾)�”}”(hŒƒDescription Remove all entries in the cache carrying the Cred. This call is issued when tokens for a user expire or are flushed. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjA#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MÅhj=#ubjÔ)�”}”(hhh]”hä)�”}”(hŒuRemove all entries in the cache carrying the Cred. This call is issued when tokens for a user expire or are flushed.”h]”hŒuRemove all entries in the cache carrying the Cred. This call is issued when tokens for a user expire or are flushed.”…”�”}”(hjR#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÃhjO#ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj=#ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MÅhj #ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj#ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M¹hjö"h²hubeh}”(h]”Œ purgeuser”ah ]”h"]”Œ5.3. purgeuser”ah$]”h&]”uh1hÈhj;!h²hh³hÇh´M¶ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 5.4. ZAPFILE”h]”hŒ 5.4. ZAPFILE”…”�”}”(hjƒ#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj€#h²hh³hÇh´MÈubj)�”}”(hXòArguments :: struct cfs_zapfile_out { /* CFS_ZAPFILE is a venus->kernel call */ ViceFid CodaFid; } cfs_zapfile; Description Remove all entries which have the (dir vnode, name) pair. This is issued as a result of an invalidation of cached attributes of a vnode. .. Note:: Call is not named correctly in NetBSD and Mach. The minicache zapfile routine takes different arguments. Linux does not implement the invalidation of attributes correctly. ”h]”(j¹)�”}”(hhh]”(j¾)�”}”(hŒŠArguments :: struct cfs_zapfile_out { /* CFS_ZAPFILE is a venus->kernel call */ ViceFid CodaFid; } cfs_zapfile; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjœ#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MÒhj˜#ubjÔ)�”}”(hhh]”jØ)�”}”(hŒgstruct cfs_zapfile_out { /* CFS_ZAPFILE is a venus->kernel call */ ViceFid CodaFid; } cfs_zapfile;”h]”hŒgstruct cfs_zapfile_out { /* CFS_ZAPFILE is a venus->kernel call */ ViceFid CodaFid; } cfs_zapfile;”…”�”}”hj­#sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MÎhjª#ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj˜#ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MÒhj•#ubj¾)�”}”(hŒ•Description Remove all entries which have the (dir vnode, name) pair. This is issued as a result of an invalidation of cached attributes of a vnode. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjË#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M×hjÇ#ubjÔ)�”}”(hhh]”hä)�”}”(hŒˆRemove all entries which have the (dir vnode, name) pair. This is issued as a result of an invalidation of cached attributes of a vnode.”h]”hŒˆRemove all entries which have the (dir vnode, name) pair. This is issued as a result of an invalidation of cached attributes of a vnode.”…”�”}”(hjÜ#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÕhjÙ#ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÇ#ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M×hj•#ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj‘#ubhÞ)�”}”(hŒ¬Call is not named correctly in NetBSD and Mach. The minicache zapfile routine takes different arguments. Linux does not implement the invalidation of attributes correctly.”h]”hä)�”}”(hŒ¬Call is not named correctly in NetBSD and Mach. The minicache zapfile routine takes different arguments. Linux does not implement the invalidation of attributes correctly.”h]”hŒ¬Call is not named correctly in NetBSD and Mach. The minicache zapfile routine takes different arguments. Linux does not implement the invalidation of attributes correctly.”…”�”}”(hj$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MÛhjü#ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj‘#ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MËhj€#h²hubeh}”(h]”Œzapfile”ah ]”h"]”Œ 5.4. zapfile”ah$]”h&]”uh1hÈhj;!h²hh³hÇh´MÈubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 5.5. ZAPDIR”h]”hŒ 5.5. ZAPDIR”…”�”}”(hj%$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj"$h²hh³hÇh´Mâubj)�”}”(hXKArguments :: struct cfs_zapdir_out { /* CFS_ZAPDIR is a venus->kernel call */ ViceFid CodaFid; } cfs_zapdir; Description Remove all entries in the cache lying in a directory CodaFid, and all children of this directory. This call is issued when Venus receives a callback on the directory. ”•¼gh]”j¹)�”}”(hhh]”(j¾)�”}”(hŒˆArguments :: struct cfs_zapdir_out { /* CFS_ZAPDIR is a venus->kernel call */ ViceFid CodaFid; } cfs_zapdir; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj>$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mìhj:$ubjÔ)�”}”(hhh]”jØ)�”}”(hŒestruct cfs_zapdir_out { /* CFS_ZAPDIR is a venus->kernel call */ ViceFid CodaFid; } cfs_zapdir;”h]”hŒestruct cfs_zapdir_out { /* CFS_ZAPDIR is a venus->kernel call */ ViceFid CodaFid; } cfs_zapdir;”…”�”}”hjO$sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MèhjL$ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj:$ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mìhj7$ubj¾)�”}”(hŒ´Description Remove all entries in the cache lying in a directory CodaFid, and all children of this directory. This call is issued when Venus receives a callback on the directory. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hjm$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mòhji$ubjÔ)�”}”(hhh]”hä)�”}”(hŒ¦Remove all entries in the cache lying in a directory CodaFid, and all children of this directory. This call is issued when Venus receives a callback on the directory.”h]”hŒ¦Remove all entries in the cache lying in a directory CodaFid, and all children of this directory. This call is issued when Venus receives a callback on the directory.”…”�”}”(hj~$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mïhj{$ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhji$ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´Mòhj7$ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj3$ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Måhj"$h²hubeh}”(h]”Œzapdir”ah ]”h"]”Œ 5.5. zapdir”ah$]”h&]”uh1hÈhj;!h²hh³hÇh´MâubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ5.6. ZAPVNODE”h]”hŒ5.6. ZAPVNODE”…”�”}”(hj¯$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj¬$h²hh³hÇh´Mõubj)�”}”(hX=Arguments :: struct cfs_zapvnode_out { /* CFS_ZAPVNODE is a venus->kernel call */ struct CodaCred cred; ViceFid VFid; } cfs_zapvnode; Description Remove all entries in the cache carrying the cred and VFid as in the arguments. This downcall is probably never issued. ”h]”j¹)�”}”(hhh]”(j¾)�”}”(hŒ©Arguments :: struct cfs_zapvnode_out { /* CFS_ZAPVNODE is a venus->kernel call */ struct CodaCred cred; ViceFid VFid; } cfs_zapvnode; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjÈ$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MhjÄ$ubjÔ)�”}”(hhh]”jØ)�”}”(hŒ€struct cfs_zapvnode_out { /* CFS_ZAPVNODE is a venus->kernel call */ struct CodaCred cred; ViceFid VFid; } cfs_zapvnode;”h]”hŒ€struct cfs_zapvnode_out { /* CFS_ZAPVNODE is a venus->kernel call */ struct CodaCred cred; ViceFid VFid; } cfs_zapvnode;”…”�”}”hjÙ$sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´MühjÖ$ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjÄ$ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MhjÁ$ubj¾)�”}”(hŒ…Description Remove all entries in the cache carrying the cred and VFid as in the arguments. This downcall is probably never issued. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hj÷$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mhjó$ubjÔ)�”}”(hhh]”hä)�”}”(hŒwRemove all entries in the cache carrying the cred and VFid as in the arguments. This downcall is probably never issued.”h]”hŒwRemove all entries in the cache carrying the cred and VFid as in the arguments. This downcall is probably never issued.”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj%ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjó$ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MhjÁ$ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hj½$ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Mùhj¬$h²hubeh}”(h]”Œzapvnode”ah ]”h"]”Œ 5.6. zapvnode”ah$]”h&]”uh1hÈhj;!h²hh³hÇh´MõubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ5.7. PURGEFID”h]”hŒ5.7. PURGEFID”…”�”}”(hj9%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj6%h²hh³hÇh´M ubj)�”}”(hX5Arguments :: struct cfs_purgefid_out { /* CFS_PURGEFID is a venus->kernel call */ ViceFid CodaFid; } cfs_purgefid; Description Flush the attribute for the file. If it is a dir (odd vnode), purge its children from the namecache and remove the file from the namecache. ”h]”j¹)�”}”(hhh]”(j¾)�”}”(hŒŒArguments :: struct cfs_purgefid_out { /* CFS_PURGEFID is a venus->kernel call */ ViceFid CodaFid; } cfs_purgefid; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hjR%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´MhjN%ubjÔ)�”}”(hhh]”jØ)�”}”(hŒistruct cfs_purgefid_out { /* CFS_PURGEFID is a venus->kernel call */ ViceFid CodaFid; } cfs_purgefid;”h]”hŒistruct cfs_purgefid_out { /* CFS_PURGEFID is a venus->kernel call */ ViceFid CodaFid; } cfs_purgefid;”…”�”}”hjc%sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´Mhj`%ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjN%ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MhjK%ubj¾)�”}”(hŒšDescription Flush the attribute for the file. If it is a dir (odd vnode), purge its children from the namecache and remove the file from the namecache. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hj�%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´Mhj}%ubjÔ)�”}”(hhh]”hä)�”}”(hŒ‹Flush the attribute for the file. If it is a dir (odd vnode), purge its children from the namecache and remove the file from the namecache.”h]”hŒ‹Flush the attribute for the file. If it is a dir (odd vnode), purge its children from the namecache and remove the file from the namecache.”…”�”}”(hj’%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj�%ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj}%ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´MhjK%ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjG%ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M hj6%h²hubeh}”(h]”Œpurgefid”ah ]”h"]”Œ 5.7. purgefid”ah$]”h&]”uh1hÈhj;!h²hh³hÇh´M ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 5.8. REPLACE”h]”hŒ 5.8. REPLACE”…”�”}”(hjÃ%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÀ%h²hh³hÇh´Mubj)�”}”(hXñSummary Replace the Fid's for a collection of names. Arguments :: struct cfs_replace_out { /* cfs_replace is a venus->kernel call */ ViceFid NewFid; ViceFid OldFid; } cfs_replace; Description This routine replaces a ViceFid in the name cache with another. It is added to allow Venus during reintegration to replace locally allocated temp fids while disconnected with global fids even when the reference counts on those fids are not zero. ”h]”j¹)�”}”(hhh]”(j¾)�”}”(hŒ5Summary Replace the Fid's for a collection of names. ”h]”(jÄ)�”}”(hŒSummary”h]”hŒSummary”…”�”}”(hjÜ%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M!hjØ%ubjÔ)�”}”(hhh]”hä)�”}”(hŒ,Replace the Fid's for a collection of names.”h]”hŒ.Replace the Fid’s for a collection of names.”…”�”}”(hjí%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M!hjê%ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhjØ%ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M!hjÕ%ubj¾)�”}”(hŒ¢Arguments :: struct cfs_replace_out { /* cfs_replace is a venus->kernel call */ ViceFid NewFid; ViceFid OldFid; } cfs_replace; ”h]”(jÄ)�”}”(hŒ Arguments”h]”hŒ Arguments”…”�”}”(hj &h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M+hj&ubjÔ)�”}”(hhh]”jØ)�”}”(hŒystruct cfs_replace_out { /* cfs_replace is a venus->kernel call */ ViceFid NewFid; ViceFid OldFid; } cfs_replace;”h]”hŒystruct cfs_replace_out { /* cfs_replace is a venus->kernel call */ ViceFid NewFid; ViceFid OldFid; } cfs_replace;”…”�”}”hj&sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j×h³hÇh´M&hj&ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj&ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M+hjÕ%ubj¾)�”}”(hXDescription This routine replaces a ViceFid in the name cache with another. It is added to allow Venus during reintegration to replace locally allocated temp fids while disconnected with global fids even when the reference counts on those fids are not zero. ”h]”(jÄ)�”}”(hŒ Description”h]”hŒ Description”…”�”}”(hj:&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÃh³hÇh´M2hj6&ubjÔ)�”}”(hhh]”hä)�”}”(hŒöThis routine replaces a ViceFid in the name cache with another. It is added to allow Venus during reintegration to replace locally allocated temp fids while disconnected with global fids even when the reference counts on those fids are not zero.”h]”hŒöThis routine replaces a ViceFid in the name cache with another. It is added to allow Venus during reintegration to replace locally allocated temp fids while disconnected with global fids even when the reference counts on those fids are not zero.”…”�”}”(hjK&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M.hjH&ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÓhj6&ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j½h³hÇh´M2hjÕ%ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¸hjÑ%ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M hjÀ%h²hubeh}”(h]”Œreplace”ah ]”h"]”Œ 5.8. replace”ah$]”h&]”uh1hÈhj;!h²hh³hÇh´Mubeh}”(h]”Œthe-minicache-and-downcalls”ah ]”h"]”Œ5. the minicache and downcalls”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´MtubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ6. Initialization and cleanup”h]”hŒ6. Initialization and cleanup”…”�”}”(hj„&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj�&h²hh³hÇh´M5ubj)�”}”(hX7This section gives brief hints as to desirable features for the Coda FS Driver at startup and upon shutdown or Venus failures. Before entering the discussion it is useful to repeat that the Coda FS Driver maintains the following data: 1. message queues 2. cnodes 3. name cache entries The name cache entries are entirely private to the driver, so they can easily be manipulated. The message queues will generally have clear points of initialization and destruction. The cnodes are much more delicate. User processes hold reference counts in Coda filesystems and it can be difficult to clean up the cnodes. It can expect requests through: 1. the message subsystem 2. the VFS layer 3. pioctl interface Currently the pioctl passes through the VFS for Coda so we can treat these similarly. ”h]”(hä)�”}”(hŒëThis section gives brief hints as to desirable features for the Coda FS Driver at startup and upon shutdown or Venus failures. Before entering the discussion it is useful to repeat that the Coda FS Driver maintains the following data:”h]”hŒëThis section gives brief hints as to desirable features for the Coda FS Driver at startup and upon shutdown or Venus failures. Before entering the discussion it is useful to repeat that the Coda FS Driver maintains the following data:”…”�”}”(hj–&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M8hj’&ubj{!)�”}”(hhh]”(jé)�”}”(hŒmessage queues ”h]”hä)�”}”(hŒmessage queues”h]”hŒmessage queues”…”�”}”(hj«&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M>hj§&ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj¤&ubjé)�”}”(hŒcnodes ”h]”hä)�”}”(hŒcnodes”h]”hŒcnodes”…”�”}”(hjÃ&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M@hj¿&ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj¤&ubjé)�”}”(hXYname cache entries The name cache entries are entirely private to the driver, so they can easily be manipulated. The message queues will generally have clear points of initialization and destruction. The cnodes are much more delicate. User processes hold reference counts in Coda filesystems and it can be difficult to clean up the cnodes. ”h]”(hä)�”}”(hŒname cache entries”h]”hŒname cache entries”…”�”}”(hjÛ&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MBhj×&ubhä)�”}”(hXDThe name cache entries are entirely private to the driver, so they can easily be manipulated. The message queues will generally have clear points of initialization and destruction. The cnodes are much more delicate. User processes hold reference counts in Coda filesystems and it can be difficult to clean up the cnodes.”h]”hXDThe name cache entries are entirely private to the driver, so they can easily be manipulated. The message queues will generally have clear points of initialization and destruction. The cnodes are much more delicate. User processes hold reference counts in Coda filesystems and it can be difficult to clean up the cnodes.”…”�”}”(hjé&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MDhj×&ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jèhj¤&ubeh}”(h]”h ]”h"]”h$]”h&]”jå!jæ!jç!hjè!jé!uh1jz!hj’&ubhä)�”}”(hŒIt can expect requests through:”h]”hŒIt can expect requests through:”…”�”}”(hj'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MJhj’&ubj{!)�”}”(hhh]”(jé)�”}”(hŒthe message subsystem ”h]”hä)�”}”(hŒthe message subsystem”h]”hŒthe message subsystem”…”�”}”(hj'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MLhj'ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj'ubjé)�”}”(hŒthe VFS layer ”h]”hä)�”}”(hŒ the VFS layer”h]”hŒ the VFS layer”…”�”}”(hj0'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MNhj,'ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj'ubjé)�”}”(hŒipioctl interface Currently the pioctl passes through the VFS for Coda so we can treat these similarly. ”h]”(hä)�”}”(hŒpioctl interface”h]”hŒpioctl interface”…”�”}”(hjH'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MPhjD'ubhä)�”}”(hŒUCurrently the pioctl passes through the VFS for Coda so we can treat these similarly.”h]”hŒUCurrently the pioctl passes through the VFS for Coda so we can treat these similarly.”…”�”}”(hjV'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MRhjD'ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jèhj'ubeh}”(h]”h ]”h"]”h$]”h&]”jå!jæ!jç!hjè!jé!uh1jz!hj’&ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M8hj�&h²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ6.1. Requirements”h]”hŒ6.1. Requirements”…”�”}”(hjy'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjv'h²hh³hÇh´MWubj)�”}”(hXàThe following requirements should be accommodated: 1. The message queues should have open and close routines. On Unix the opening of the character devices are such routines. - Before opening, no messages can be placed. - Opening will remove any old messages still pending. - Close will notify any sleeping processes that their upcall cannot be completed. - Close will free all memory allocated by the message queues. 2. At open the namecache shall be initialized to empty state. 3. Before the message queues are open, all VFS operations will fail. Fortunately this can be achieved by making sure than mounting the Coda filesystem cannot succeed before opening. 4. After closing of the queues, no VFS operations can succeed. Here one needs to be careful, since a few operations (lookup, read/write, readdir) can proceed without upcalls. These must be explicitly blocked. 5. Upon closing the namecache shall be flushed and disabled. 6. All memory held by cnodes can be freed without relying on upcalls. 7. Unmounting the file system can be done without relying on upcalls. 8. Mounting the Coda filesystem should fail gracefully if Venus cannot get the rootfid or the attributes of the rootfid. The latter is best implemented by Venus fetching these objects before attempting to mount. .. Note:: NetBSD in particular but also Linux have not implemented the above requirements fully. For smooth operation this needs to be corrected. ”h]”(hä)�”}”(hŒ2The following requirements should be accommodated:”h]”hŒ2The following requirements should be accommodated:”…”�”}”(hj‹'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MZhj‡'ubj{!)�”}”(hhh]”jé)�”}”(hŒyThe message queues should have open and close routines. On Unix the opening of the character devices are such routines. ”h]”hä)�”}”(hŒxThe message queues should have open and close routines. On Unix the opening of the character devices are such routines.”h]”hŒxThe message queues should have open and close routines. On Unix the opening of the character devices are such routines.”…”�”}”(hj 'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M\hjœ'ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj™'ubah}”(h]”h ]”h"]”h$]”h&]”jå!jæ!jç!hjè!jé!uh1jz!hj‡'ubj)�”}”(hŒþ- Before opening, no messages can be placed. - Opening will remove any old messages still pending. - Close will notify any sleeping processes that their upcall cannot be completed. - Close will free all memory allocated by the message queues. ”h]”jä)�”}”(hhh]”(jé)�”}”(hŒ+Before opening, no messages can be placed. ”h]”hä)�”}”(hŒ*Before opening, no messages can be placed.”h]”hŒ*Before opening, no messages can be placed.”…”�”}”(hjÅ'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M_hjÁ'ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj¾'ubjé)�”}”(hŒ4Opening will remove any old messages still pending. ”h]”hä)�”}”(hŒ3Opening will remove any old messages still pending.”h]”hŒ3Opening will remove any old messages still pending.”…”�”}”(hjÝ'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MahjÙ'ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj¾'ubjé)�”}”(hŒPClose will notify any sleeping processes that their upcall cannot be completed. ”h]”hä)�”}”(hŒOClose will notify any sleeping processes that their upcall cannot be completed.”h]”hŒOClose will notify any sleeping processes that their upcall cannot be completed.”…”�”}”(hjõ'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mchjñ'ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj¾'ubjé)�”}”(hŒ=Close will free all memory allocated by the message queues. ”h]”hä)�”}”(hŒ;Close will free all memory allocated by the message queues.”h]”hŒ;Close will free all memory allocated by the message queues.”…”�”}”(hj (h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mfhj (ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj¾'ubeh}”(h]”h ]”h"]”h$]”h&]”j2Œ-”uh1jãh³hÇh´M_hjº'ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´M_hj‡'ubj{!)�”}”(hhh]”(jé)�”}”(hŒ;At open the namecache shall be initialized to empty state. ”h]”hä)�”}”(hŒ:At open the namecache shall be initialized to empty state.”h]”hŒ:At open the namecache shall be initialized to empty state.”…”�”}”(hj5(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mihj1(ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj.(ubjé)�”}”(hŒ³Before the message queues are open, all VFS operations will fail. Fortunately this can be achieved by making sure than mounting the Coda filesystem cannot succeed before opening. ”h]”hä)�”}”(hŒ²Before the message queues are open, all VFS operations will fail. Fortunately this can be achieved by making sure than mounting the Coda filesystem cannot succeed before opening.”h]”hŒ²Before the message queues are open, all VFS operations will fail. Fortunately this can be achieved by making sure than mounting the Coda filesystem cannot succeed before opening.”…”�”}”(hjM(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MkhjI(ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj.(ubjé)�”}”(hŒÐAfter closing of the queues, no VFS operations can succeed. Here one needs to be careful, since a few operations (lookup, read/write, readdir) can proceed without upcalls. These must be explicitly blocked. ”h]”hä)�”}”(hŒÏAfter closing of the queues, no VFS operations can succeed. Here one needs to be careful, since a few operations (lookup, read/write, readdir) can proceed without upcalls. These must be explicitly blocked.”h]”hŒÏAfter closing of the queues, no VFS operations can succeed. Here one needs to be careful, since a few operations (lookup, read/write, readdir) can proceed without upcalls. These must be explicitly blocked.”…”�”}”(hje(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mohja(ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj.(ubjé)�”}”(hŒ:Upon closing the namecache shall be flushed and disabled. ”h]”hä)�”}”(hŒ9Upon closing the namecache shall be flushed and disabled.”h]”hŒ9Upon closing the namecache shall be flushed and disabled.”…”�”}”(hj}(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mthjy(ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj.(ubjé)�”}”(hŒCAll memory held by cnodes can be freed without relying on upcalls. ”h]”hä)�”}”(hŒBAll memory held by cnodes can be freed without relying on upcalls.”h]”hŒBAll memory held by cnodes can be freed without relying on upcalls.”…”�”}”(hj•(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mvhj‘(ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj.(ubjé)�”}”(hŒCUnmounting the file system can be done without relying on upcalls. ”h]”hä)�”}”(hŒBUnmounting the file system can be done without relying on upcalls.”h]”hŒBUnmounting the file system can be done without relying on upcalls.”…”�”}”(hj­(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mxhj©(ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj.(ubjé)�”}”(hŒÒMounting the Coda filesystem should fail gracefully if Venus cannot get the rootfid or the attributes of the rootfid. The latter is best implemented by Venus fetching these objects before attempting to mount. ”h]”hä)�”}”(hŒÑMounting the Coda filesystem should fail gracefully if Venus cannot get the rootfid or the attributes of the rootfid. The latter is best implemented by Venus fetching these objects before attempting to mount.”h]”hŒÑMounting the Coda filesystem should fail gracefully if Venus cannot get the rootfid or the attributes of the rootfid. The latter is best implemented by Venus fetching these objects before attempting to mount.”…”�”}”(hjÅ(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MzhjÁ(ubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj.(ubeh}”(h]”h ]”h"]”h$]”h&]”jå!jæ!jç!hjè!jé!Œstart”Kuh1jz!hj‡'ubhÞ)�”}”(hŒˆNetBSD in particular but also Linux have not implemented the above requirements fully. For smooth operation this needs to be corrected.”h]”hä)�”}”(hŒˆNetBSD in particular but also Linux have not implemented the above requirements fully. For smooth operation this needs to be corrected.”h]”hŒˆNetBSD in particular but also Linux have not implemented the above requirements fully. For smooth operation this needs to be corrected.”…”�”}”(hjä(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M�hjà(ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhj‡'ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´MZhjv'h²hubeh}”(h]”Œ requirements”ah ]”h"]”Œ6.1. requirements”ah$]”h&]”uh1hÈhj�&h²hh³hÇh´MWubeh}”(h]”Œinitialization-and-cleanup”ah ]”h"]”Œ6. initialization and cleanup”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´M5ubeh}”(h]”Œcoda-kernel-venus-interface”ah ]”h"]”Œcoda kernel-venus interface”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)�”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j9)Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œ1”]”j\asŒrefids”}”Œnameids”}”(j)j)j/j,jqjnj±j®j©j¦j8!j5!jèjåj°jlj j�jfjcj}jzj” j‘ j° j­ j� jš jÕ jÒ j j j)j&j.j+j3j0j8j5jJjGjEjBjJjGjEjBj2j/j-j*j(j%j,j)j0j-j+j(j&j#jjjäjájòjïj0!j-!j~&j{&j:"j7"jó"jð"j}#jz#j$j$j©$j¦$j3%j0%j½%jº%jv&js&j )j)j)j)uŒ nametypes”}”(j)‰j/‰jq‰j±‰j©‰j8!‰jè‰j°ˆj ‰jf‰j}‰j” ‰j° ‰j� ‰jÕ ‰j ‰j)‰j.‰j3‰j8‰jJ‰jE‰jJ‰jE‰j2‰j-‰j(‰j,‰j0‰j+‰j&‰j‰jä‰jò‰j0!‰j~&‰j:"‰jó"‰j}#‰j$‰j©$‰j3%‰j½%‰jv&‰j )‰j)‰uh}”(j)hÊj,jÉjnj2j®jtj¦jmj5!j´jåj jfj\jljŠj�jëjcj£jzjij‘ j€j­ j— jš j³ jÒ j  j jØ j&jj+j,j0j1j5j6jGj;jBjMjGjHjBjMj/jHj*j5j%j0j)j+j-j/j(j3j#j.jj)jájjïjçj-!jõj{&j;!j7"j "jð"j="jz#jö"j$j€#j¦$j"$j0%j¬$jº%j6%js&jÀ%j)j�&j)jv'uŒ footnote_refs”}”jy)]”j\asŒ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”jŠaŒ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”jG)Ks…”R”Œparse_messages”]”hŒsystem_message”“”)�”}”(hhh]”hä)�”}”(hŒ:Enumerated list start value not ordinal-1: "2" (ordinal 2)”h]”hŒ>Enumerated list start value not ordinal-1: “2â€� (ordinal 2)”…”�”}”(hj£)h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãhj )ubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”hÇŒline”Kuh1jž)hj‡'ubaŒtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.