3 <li><a href="#PSetACL">PSetACL</a></li>
4 <li><a href="#PGetACL">PGetACL</a></li>
5 <li><a href="#PSetTokens">PSetTokens</a></li>
6 <li><a href="#PGetVolumeStatus">PGetVolumeStatus</a></li>
7 <li><a href="#PSetVolumeStatus">PSetVolumeStatus</a></li>
8 <li><a href="#PFlush">PFlush</a></li>
9 <li><a href="#PBogus PNoop">PBogus & PNoop</a></li>
10 <li><a href="#PGetTokens">PGetTokens</a></li>
11 <li><a href="#PUnlog">PUnlog</a></li>
12 <li><a href="#PCheckServers">PCheckServers</a></li>
13 <li><a href="#PCheckVolNames">PCheckVolNames</a></li>
14 <li><a href="#PCheckAuth">PCheckAuth</a></li>
15 <li><a href="#PFindVolume">PFindVolume</a></li>
16 <li><a href="#PViceAccess">PViceAccess</a></li>
17 <li><a href="#PGetFID">PGetFID</a></li>
18 <li><a href="#PSetCacheSize">PSetCacheSize</a></li>
19 <li><a href="#PRemoveCallback">PRemoveCallback</a></li>
20 <li><a href="#PNewCell">PNewCell</a></li>
21 <li><a href="#PListCells">PListCells</a></li>
22 <li><a href="#PRemoveMount">PRemoveMount</a></li>
23 <li><a href="#PNewStatMount">PNewStatMount</a></li>
24 <li><a href="#PGetFileCell">PGetFileCell</a></li>
25 <li><a href="#PGetWSCell">PGetWSCell</a></li>
26 <li><a href="#PMariner">PMariner</a></li>
27 <li><a href="#PGetUserCell">PGetUserCell</a></li>
28 <li><a href="#PVenusLogging">PVenusLogging</a></li>
29 <li><a href="#PGetCellStatus">PGetCellStatus</a></li>
30 <li><a href="#PSetCellStatus">PSetCellStatus</a></li>
31 <li><a href="#PFlushVolumeData">PFlushVolumeData</a></li>
32 <li><a href="#PSetSysName">PSetSysName</a></li>
33 <li><a href="#PExportAfs">PExportAfs</a></li>
34 <li><a href="#PGetCacheSize">PGetCacheSize</a></li>
35 <li><a href="#PGetVnodeXStatus">PGetVnodeXStatus</a></li>
36 <li><a href="#PSetSPrefs33">PSetSPrefs33</a></li>
37 <li><a href="#PGetSPrefs">PGetSPrefs</a></li>
38 <li><a href="#PGag">PGag</a></li>
39 <li><a href="#PTwiddleRx">PTwiddleRx</a></li>
40 <li><a href="#PSetSPrefs">PSetSPrefs</a></li>
41 <li><a href="#PStoreBehind">PStoreBehind</a></li>
42 <li><a href="#PGCPAGs">PGCPAGs</a></li>
43 <li><a href="#PGetInitParams">PGetInitParams</a></li>
44 <li><a href="#PGetCPrefs">PGetCPrefs</a></li>
45 <li><a href="#PSetCPrefs">PSetCPrefs</a></li>
46 <li><a href="#PFlushMount">PFlushMount</a></li>
47 <li><a href="#PRxStatProc">PRxStatProc</a></li>
48 <li><a href="#PRxStatPeer">PRxStatPeer</a></li>
49 <li><a href="#PGetRxkcrypt">PGetRxkcrypt</a></li>
50 <li><a href="#PSetRxkcrypt">PSetRxkcrypt</a></li>
51 <li><a href="#PSetClientContext">PSetClientContext</a></li>
52 <li><a href="http://escort-models.com/en-index.html">ukraine escort</a></li>
56 ## <a name="PSetACL"></a> [[PSetACL]]
59 <dt><strong>Group</strong></dt>
61 <dt><strong>Function</strong></dt>
62 <dd> VIOCSETAL (1) - Set access control list </dd>
63 <dt><strong>Arguments</strong></dt>
64 <dd> the ACL being set </dd>
65 <dt><strong>Outcome</strong></dt>
66 <dd> Changed ACL, via direct writing to the wire </dd>
71 - EINVAL - if some of the standard arguments aren't set
74 <dt><strong>Side Effects</strong></dt>
75 <dd> none listed </dd>
78 ## <a name="PGetACL"></a> [[PGetACL]]
81 <dt><strong>Group</strong></dt>
83 <dt><strong>Function</strong></dt>
84 <dd> VIOCGETAL (2) - Get access control list </dd>
85 <dt><strong>Arguments</strong></dt>
87 <dt><strong>Outcome</strong></dt>
88 <dd> Obtain the ACL, based on file ID </dd>
93 - EINVAL - if some of the standard arguments aren't set
94 - ERANGE - if the vnode of the file id is too large
95 - return -1 - if getting the ACL failed
98 <dt><strong>Side Effects</strong></dt>
99 <dd> none listed, although there is a hack to tell which type of ACL is being returned, checks the top 2-bytes to judge what type of ACL is it, only for dfs xlator ACLs </dd>
102 ## <a name="PSetTokens"></a> [[PSetTokens]]
105 <dt><strong>Group</strong></dt>
107 <dt><strong>Function</strong></dt>
108 <dd> VIOCSETTOK (3) - Set authentication tokens </dd>
109 <dt><strong>Arguments</strong></dt>
110 <dd> the krb tickets from which to set the afs tokens </dd>
111 <dt><strong>Outcome</strong></dt>
112 <dd> Set the Tokens for a specific cell name, unless there is none set, then default to primary </dd>
117 - EINVAL - if the ticket is either too long or too short
118 - EIO - if the AFS initState is below 101
119 - ESRCH - if the cell for which the Token is being set can't be found
122 <dt><strong>Side Effects</strong></dt>
123 <dd> none listed </dd>
126 ## <a name="PGetVolumeStatus"></a> [[PGetVolumeStatus]]
129 <dt><strong>Group</strong></dt>
131 <dt><strong>Function</strong></dt>
132 <dd> VIOCGETVOLSTAT (4) - Get volume status </dd>
133 <dt><strong>Arguments</strong></dt>
135 <dt><strong>Outcome</strong></dt>
136 <dd> The staus of a volume(based on the FID of the volume), or an offline message/motd </dd>
141 - EINVAL: if some of the default arguments don't exist
144 <dt><strong>Side Effects</strong></dt>
145 <dd> none listed </dd>
148 ## <a name="PSetVolumeStatus"></a> [[PSetVolumeStatus]]
151 <dt><strong>Group</strong></dt>
153 <dt><strong>Function</strong></dt>
154 <dd> VIOCSETVOLSTAT (5) - Set volume status </dd>
155 <dt><strong>Arguments</strong></dt>
156 <dd> values to set the status at, offline message, message of the day, volume name, minimum quota, maximum quota </dd>
157 <dt><strong>Outcome</strong></dt>
158 <dd> Set the status of a volume, including any offline messages, a minimum quota, and a maximum quota </dd>
163 - EINVAL - if some of the default arguments don't exist
164 - EROFS - if the volume is read only, or a backup volume
165 - ENODEV - if the volume can't be accessed
166 - [[E2BIG]] - if the volume name, offline message, and motd are too big
169 <dt><strong>Side Effects</strong></dt>
170 <dd> none listed </dd>
173 ## <a name="PFlush"></a> PFlush
176 <dt><strong>Group</strong></dt>
178 <dt><strong>Function</strong></dt>
179 <dd> VIOCFLUSH (6) - Invalidate cache entry </dd>
180 <dt><strong>Arguments</strong></dt>
182 <dt><strong>Outcome</strong></dt>
183 <dd> Flush any information the cache manager has on an entry </dd>
188 - EINVAL - if some of the initial arguments don't exist
191 <dt><strong>Side Effects</strong></dt>
192 <dd> none listed </dd>
195 ## <a name="PBogus PNoop"></a> PBogus & PNoop
198 <dt><strong>Group</strong></dt>
200 <dt><strong>Function</strong></dt>
201 <dd> VIOCSTAT (7) - Get file status </dd>
207 <dt><strong>Group</strong></dt>
209 <dt><strong>Function</strong></dt>
210 <dd> VIOCGETTIME (13) - Make gettime call (historic) </dd>
216 <dt><strong>Group</strong></dt>
218 <dt><strong>Function</strong></dt>
219 <dd> VIOCPREFETCH (15) - Pre-fetch a file </dd>
225 <dt><strong>Group</strong></dt>
227 <dt><strong>Function</strong></dt>
228 <dd> VIOCNOP (16) - No-op (historic) </dd>
234 <dt><strong>Group</strong></dt>
236 <dt><strong>Function</strong></dt>
237 <dd> VIOCENGROUP (17) - Enable group access (historic) </dd>
243 <dt><strong>Group</strong></dt>
245 <dt><strong>Function</strong></dt>
246 <dd> VIOCDISGROUP (18) - Disable group access (historic) </dd>
252 <dt><strong>Group</strong></dt>
254 <dt><strong>Function</strong></dt>
255 <dd> VIOCLISTGROUPS (19) - List enabled and disabled groups (historic) </dd>
261 <dt><strong>Group</strong></dt>
263 <dt><strong>Function</strong></dt>
264 <dd> VIOC_FPRIOSTATUS (57) - arla: set file 'prio' </dd>
270 <dt><strong>Group</strong></dt>
272 <dt><strong>Function</strong></dt>
273 <dd> VIOC_FHGET (58) - arla: fallback getfh </dd>
279 <dt><strong>Group</strong></dt>
281 <dt><strong>Function</strong></dt>
282 <dd> VIOC_FHOPEN (59) - arla: fallback fhopen </dd>
288 <dt><strong>Group</strong></dt>
290 <dt><strong>Function</strong></dt>
291 <dd> VIOC_XFSDEBUG (60) - arla: controls xfsdebug </dd>
297 <dt><strong>Group</strong></dt>
299 <dt><strong>Function</strong></dt>
300 <dd> VIOC_ARLADEBUG (61) - arla: controls arla debug </dd>
306 <dt><strong>Group</strong></dt>
308 <dt><strong>Function</strong></dt>
309 <dd> VIOC_AVIATOR (62) - arla: debug interfac </dd>
315 <dt><strong>Group</strong></dt>
317 <dt><strong>Function</strong></dt>
318 <dd> VIOC_XFSDEBUG_PRINT (63) - arla: print xfs status </dd>
324 <dt><strong>Group</strong></dt>
326 <dt><strong>Function</strong></dt>
327 <dd> VIOC_CALCULATE_CACHE (64) - arla: force cache check </dd>
333 <dt><strong>Group</strong></dt>
335 <dt><strong>Function</strong></dt>
336 <dd> VIOC_BREAKCELLBACK (65) - arla: break callback </dd>
342 <dt><strong>Group</strong></dt>
344 <dt><strong>Function</strong></dt>
345 <dd> VIOCWAITFOREVER (23) - Wait for dead servers forever (historic) </dd>
348 ## <a name="PGetTokens"></a> [[PGetTokens]]
351 <dt><strong>Group</strong></dt>
353 <dt><strong>Function</strong></dt>
354 <dd> VIOCGETTOK (8) - Get authentication tokens </dd>
355 <dt><strong>Arguments</strong></dt>
356 <dd> An integer that corresponds to a user id, which in turn corresponds to a token </dd>
357 <dt><strong>Outcome</strong></dt>
358 <dd> If the the input parameter exists, get the token that corresponds to the parameter value, if there is no token at this value, get the token for the first cell </dd>
363 - EIO - if the afs daemon hasn't started yet
364 - EDOM - if the input parameter is out of the bounds of the available tokens
365 - ENOTCONN - if there aren't tokens for this cell
368 <dt><strong>Side Effects</strong></dt>
369 <dd> none listed, although it's a weird interface (from comments in code) </dd>
372 ## <a name="PUnlog"></a> PUnlog
375 <dt><strong>Group</strong></dt>
377 <dt><strong>Function</strong></dt>
378 <dd> VIOCUNLOG (9) - Invalidate tokens </dd>
379 <dt><strong>Arguments</strong></dt>
381 <dt><strong>Outcome</strong></dt>
382 <dd> remove tokens from a user, specified by a user id </dd>
387 - EIO - if the afs daemon hasn't started yet
390 <dt> $ <strong>Side Effects</strong></dt>
391 <dd> set's the token's time to 0, which then causes it to be removed </dd>
394 //////////////////////////////////////////
397 <dt><strong>Group</strong></dt>
399 <dt><strong>Function</strong></dt>
400 <dd> VIOCUNPAG (21) - Invalidate PAG </dd>
403 ///////////////////////////////////////// Unlog is the same as un-pag in [[OpenAFS]]
405 ## <a name="PCheckServers"></a> [[PCheckServers]]
408 <dt><strong>Group</strong></dt>
410 <dt><strong>Function</strong></dt>
411 <dd> VIOCCKSERV (10) - Check that servers are up </dd>
412 <dt><strong>Arguments</strong></dt>
413 <dd> The name of the cell that the servers will be a part of. </dd>
414 <dt><strong>Outcome</strong></dt>
415 <dd> Either a fast check (where it doesn't contact servers) or a local check (checks local cell only) </dd>
420 - EIO - if the afs daemon hasn't started yet
421 - EACCES - if the user doesn't have super-user credentials
422 - ENOENT - if we are unable to obtain the cell
425 <dt><strong>Side Effects</strong></dt>
426 <dd> none listed </dd>
429 ## <a name="PCheckVolNames"></a> [[PCheckVolNames]]
432 <dt><strong>Group</strong></dt>
434 <dt><strong>Function</strong></dt>
435 <dd> VIOCCKBACK (11) - Check backup volume mappings </dd>
436 <dt><strong>Arguments</strong></dt>
438 <dt><strong>Outcome</strong></dt>
439 <dd> Check the root volume, and then check the names if the volume check variable is set to force, has expired, is busy, or if the mount points variable is set </dd>
444 - EIO - if the afs daemon hasn't started yet
447 <dt><strong>Side Effects</strong></dt>
448 <dd> none listed </dd>
451 ## <a name="PCheckAuth"></a> [[PCheckAuth]]
454 <dt><strong>Group</strong></dt>
456 <dt><strong>Function</strong></dt>
457 <dd> VIOCCKCONN (12) - Check connections for a user </dd>
458 <dt><strong>Arguments</strong></dt>
460 <dt><strong>Outcome</strong></dt>
461 <dd> check to see if a user has the correct authentication. If so, allow access </dd>
466 - EACCES - if no user is specified
467 - EACCES - if the user has no tokens set
468 - EACCES - if the users tokens are bad
471 <dt><strong>Side Effects</strong></dt>
472 <dd> check the connections to all the servers specified </dd>
475 ## <a name="PFindVolume"></a> [[PFindVolume]]
478 <dt><strong>Group</strong></dt>
480 <dt><strong>Function</strong></dt>
481 <dd> VIOCWHEREIS (14) - Find out where a volume is located </dd>
482 <dt><strong>Arguments</strong></dt>
484 <dt><strong>Outcome</strong></dt>
485 <dd> find a volume, based on a volume file id </dd>
490 - EINVAL - if some of the default arguments don't exist
491 - ENODEV - if there is no such volume
494 <dt><strong>Side Effects</strong></dt>
495 <dd> check each of the servers specified </dd>
498 ## <a name="PViceAccess"></a> [[PViceAccess]]
501 <dt><strong>Group</strong></dt>
503 <dt><strong>Function</strong></dt>
504 <dd> VIOCACCESS (20) - Access using PRS_FS bits </dd>
505 <dt><strong>Arguments</strong></dt>
507 <dt><strong>Outcome</strong></dt>
508 <dd> check to make sure access is allowed </dd>
513 - EINVAL - if some of the initial arguments aren't set
514 - EACCES - if access is denied
517 <dt><strong>Side Effects</strong></dt>
518 <dd> none listed </dd>
521 ## <a name="PGetFID"></a> [[PGetFID]]
524 <dt><strong>Group</strong></dt>
526 <dt><strong>Function</strong></dt>
527 <dd> VIOCETFID (22) - Get file ID quickly </dd>
528 <dt><strong>Arguments</strong></dt>
530 <dt><strong>Outcome</strong></dt>
531 <dd> get the file id of some file </dd>
536 - EINVAL - if some fo the initial arguments aren't set
539 <dt><strong>Side Effects</strong></dt>
540 <dd> none listed </dd>
543 ## <a name="PSetCacheSize"></a> [[PSetCacheSize]]
546 <dt><strong>Group</strong></dt>
548 <dt><strong>Function</strong></dt>
549 <dd> VIOCSETCACHESIZE (24) - Set venus cache size in 1000 units </dd>
550 <dt><strong>Arguments</strong></dt>
551 <dd> The size the venus cache should be set to </dd>
552 <dt><strong>Outcome</strong></dt>
553 <dd> Set the cache size based on user intput. If no size is given, set it to the default [[Main/OpenAFS]] cache size </dd>
558 - EACCES - if the user doen't have super-user credentials
559 - EROFS - if the cache is set to be in memory
562 <dt><strong>Side Effects</strong></dt>
563 <dd> recompute the general cache parameters for every single block allocated </dd>
566 ## <a name="PRemoveCallback"></a> [[PRemoveCallback]]
569 <dt><strong>Group</strong></dt>
571 <dt><strong>Function</strong></dt>
572 <dd> VIOCFLUSHCB (25) - Flush callback only </dd>
573 <dt><strong>Arguments</strong></dt>
575 <dt><strong>Outcome</strong></dt>
576 <dd> Flushes callbacks, by setting the length of callbacks to one, setting the next callback to be sent to the CB_DROPPED value, and then dequeue's everything else </dd>
581 - EINVAL - if some of the initial default arguments aren't set return's 0 - if the volume is set to read-only
584 <dt><strong>Side Effects</strong></dt>
585 <dd> none listed </dd>
588 ## <a name="PNewCell"></a> [[PNewCell]]
591 <dt><strong>Group</strong></dt>
593 <dt><strong>Function</strong></dt>
594 <dd> VIOCNEWCELL (26) - Configure new cell </dd>
595 <dt><strong>Arguments</strong></dt>
596 <dd> the name of the cell, the hosts that will be a part of the cell, whether or not it's linked with another cell, the other cel it's linked with, the file server port, and the volume server port </dd>
597 <dt><strong>Outcome</strong></dt>
598 <dd> creates a new cell </dd>
603 - EIO - if the afs daemon hasn't started yet
604 - EACCES - if the user doesn't have super-user credentials
605 - EINVAL - if some 'magic' var doesn't have a certain bit set
608 <dt><strong>Side Effects</strong></dt>
609 <dd> none listed </dd>
612 ## <a name="PListCells"></a> [[PListCells]]
615 <dt><strong>Group</strong></dt>
617 <dt><strong>Function</strong></dt>
618 <dd> VIOCGETCELL (27) - Get cell info </dd>
619 <dt><strong>Arguments</strong></dt>
620 <dd> The cell index of a specific cell </dd>
621 <dt><strong>Outcome</strong></dt>
622 <dd> Lists the cells server names and addresses </dd>
627 - EIO - if the afs daemon hasn't started yet
628 - EDOM - if there is no cell asked about
631 <dt><strong>Side Effects</strong></dt>
632 <dd> none listed </dd>
635 ## <a name="PRemoveMount"></a> [[PRemoveMount]]
638 <dt><strong>Group</strong></dt>
640 <dt><strong>Function</strong></dt>
641 <dd> VIOC_AFS_DELETE_MT_PT (28) - Delete mount point </dd>
642 <dt><strong>Arguments</strong></dt>
643 <dd> none // I DON'T THINK </dd>
644 <dt><strong>Outcome</strong></dt>
645 <dd> Ensure that everything is ok, before deleting the mountpoint. If not, don't delete. Delete a mount point based on a file id </dd>
650 - EINVAL - if some of default arguments don't exist
651 - ENOTDIR - if the argument to remove is not a directory
652 - ENOENT - if there is no cache to remove the mount point from
653 - ENOENT - if a vcache doesn't exist
656 <dt><strong>Side Effects</strong></dt>
657 <dd> none listed </dd>
660 ## <a name="PNewStatMount"></a> [[PNewStatMount]]
663 <dt><strong>Group</strong></dt>
665 <dt><strong>Function</strong></dt>
666 <dd> VIOC_AFS_STAT_MT_PT (29) - Stat mount point </dd>
667 <dt><strong>Arguments</strong></dt>
668 <dd> the last component in a path, related to mountpoint that we're looking for information about </dd>
669 <dt><strong>Outcome</strong></dt>
670 <dd> get the volume, and cell, as well as the link data for a mount point </dd>
675 - EINVAL - if some of the default initial arguments aren't set
676 - ENOTDIR - if the 'mount point' argument isn't a directory
677 - EIO - if the link data can't be accessed
680 <dt><strong>Side Effects</strong></dt>
681 <dd> none listed </dd>
684 ## <a name="PGetFileCell"></a> [[PGetFileCell]]
687 <dt><strong>Group</strong></dt>
689 <dt><strong>Function</strong></dt>
690 <dd> VIOC_FILE_CELL_NAME (30) - Get cell in which file lives </dd>
691 <dt><strong>Arguments</strong></dt>
693 <dt><strong>Outcome</strong></dt>
694 <dd> Get a cell based on a passed in on a passed in file id </dd>
699 - EINVAL - if someo f the default initial arguments aren't set
700 - ESRCH - if the file isn't part of a cell
703 <dt><strong>Side Effects</strong></dt>
704 <dd> none listed </dd>
707 ## <a name="PGetWSCell"></a> [[PGetWSCell]]
710 <dt><strong>Group</strong></dt>
712 <dt><strong>Function</strong></dt>
713 <dd> VIOC_GET_WS_CELL (31) - Get cell in which workstation lives </dd>
714 <dt><strong>Arguments</strong></dt>
716 <dt><strong>Outcome</strong></dt>
717 <dd> Get the primary cell that the machine is a part of </dd>
722 - EIO - if the afs daemon hasn't started yet
723 - ESRCH - if the machine isn't part of a cell, for whatever reason
726 <dt><strong>Side Effects</strong></dt>
727 <dd> none listed </dd>
730 ## <a name="PMariner"></a> PMariner
733 <dt><strong>Group</strong></dt>
735 <dt><strong>Function</strong></dt>
736 <dd> VIOC_AFS_MARINER_HOST (32) - Get/set mariner (cache manager monitor) host </dd>
737 <dt><strong>Arguments</strong></dt>
739 <dt><strong>Outcome</strong></dt>
740 <dd> depending on what whether or not a variable is set, either get the host for the cache manager monitor, or set the old address, and give it a new address </dd>
743 **Errors** turn off mariner
746 <dt><strong>Side Effects</strong></dt>
747 <dd> none listed </dd>
750 ## <a name="PGetUserCell"></a> [[PGetUserCell]]
753 <dt><strong>Group</strong></dt>
755 <dt><strong>Function</strong></dt>
756 <dd> VIOC_GET_PRIMARY_CELL (33) - Get primary cell for caller </dd>
757 <dt><strong>Arguments</strong></dt>
759 <dt><strong>Outcome</strong></dt>
760 <dd> get the primary cell for a certain user, based on the user's uid </dd>
765 - ESRCH - if the user corresponding to the uid doesn't have a primary cell specified
768 <dt><strong>Side Effects</strong></dt>
769 <dd> none listed </dd>
772 ## <a name="PVenusLogging"></a> [[PVenusLogging]]
775 <dt><strong>Group</strong></dt>
777 <dt><strong>Function</strong></dt>
778 <dd> VIOC_VENUSLOG (34) - Enable/Disable venus logging </dd>
779 <dt><strong>Arguments</strong></dt>
781 <dt><strong>Outcome</strong></dt>
782 <dd> obsoleted, perhaps should be PBogus </dd>
787 - EINVAL - this is all the function does, perhaps this pioctl should be PBogus
790 <dt><strong>Side Effects</strong></dt>
791 <dd> always throws an error </dd>
794 ## <a name="PGetCellStatus"></a> [[PGetCellStatus]]
797 <dt><strong>Group</strong></dt>
799 <dt><strong>Function</strong></dt>
800 <dd> VIOC_GETCELLSTATUS (35) - Get cell status info </dd>
801 <dt><strong>Arguments</strong></dt>
802 <dd> the cell you want status information on </dd>
803 <dt><strong>Outcome</strong></dt>
804 <dd> returns the state of the cell as defined in a struct cell </dd>
809 - EIO - the afs daemon hasn't started yet
810 - ENOENT - the cell doesn't exist
813 <dt><strong>Side Effects</strong></dt>
814 <dd> none listed </dd>
817 ## <a name="PSetCellStatus"></a> [[PSetCellStatus]]
820 <dt><strong>Group</strong></dt>
822 <dt><strong>Function</strong></dt>
823 <dd> VIOC_SETCELLSTATUS (36) - Set corresponding info </dd>
824 <dt><strong>Arguments</strong></dt>
825 <dd> The cell you want to set information about, and the values you want to set </dd>
826 <dt><strong>Outcome</strong></dt>
827 <dd> Set the state of the cell in a defined struct cell, based on whether or not [[Main/SetUID]] is allowed </dd>
832 - EIO - the afs daemon hasn't started yet
833 - EACCES - the user does not have super-user credentials
836 <dt><strong>Side Effects</strong></dt>
837 <dd> none listed </dd>
840 ## <a name="PFlushVolumeData"></a> [[PFlushVolumeData]]
843 <dt><strong>Group</strong></dt>
845 <dt><strong>Function</strong></dt>
846 <dd> VIOC_FLUSHVOLUME (37) - Flush whole volume's data </dd>
847 <dt><strong>Arguments</strong></dt>
848 <dd> none //ALTHOUGH MAYBE A VCACHE CONTAINING WHICH VOLUME </dd>
849 <dt><strong>Outcome</strong></dt>
850 <dd> Wipe everything on the volume. Dependent on which platform this is is for, as to how it's done </dd>
855 - EINVAL - some of the initial default arguments aren't set
856 - EIO - the afs daemon hasn't started yet
859 <dt><strong>Side Effects</strong></dt>
860 <dd> Does not flush a file that a user has open and is using, because it will be re-created on next write. Also purges the dnlc, because things are screwed up </dd>
863 ## <a name="PSetSysName"></a> [[PSetSysName]]
866 <dt><strong>Group</strong></dt>
868 <dt><strong>Function</strong></dt>
869 <dd> VIOC_AFS_SYSNAME (38) - Change @sys value </dd>
870 <dt><strong>Arguments</strong></dt>
871 <dd> a new value for @sys </dd>
872 <dt><strong>Outcome</strong></dt>
873 <dd> Set the value of @sys if these things work: if the input isn't too long or if input doesn't start with .0 or ..0 </dd>
878 - EINVAL - if afsd isn't runing
879 - EINVAL - if the new sysname is too large
880 - EINVAL - if the new sysname causes issues(starts with a .0 or a ..0
881 - EINVAL - if there is no PAG set in the credentials
882 - EINVAL - if the user of a PAG can't be found
883 - EINVAL - if (!(exporter = au->exporter)) // NOT SURE ON THIS
884 - ENODEV - if there isn't already a system named that //I THINK
885 - EACCES - if the user doesn't have super-user credentials
888 <dt><strong>Side Effects</strong></dt>
889 <dd> local user needs root, remote user does not (because remote user ids aren't trusted) </dd>
892 ## <a name="PExportAfs"></a> [[PExportAfs]]
895 <dt><strong>Group</strong></dt>
897 <dt><strong>Function</strong></dt>
898 <dd> VIOC_EXPORTAFS (39) - Export afs to nfs clients </dd>
899 <dt><strong>Arguments</strong></dt>
900 <dd> A struct Vic * EIOctl containing export values needed to change between nfs and afs </dd>
901 <dt><strong>Outcome</strong></dt>
902 <dd> //REALLY NOT SURE ON THIS... INPUT WOULD BE NICE </dd>
907 - ENODEV - if the exporter doesn't exist
908 - EACCES - if the user doesn't have super-user credentials $ **Side Effects**:none listed
910 ## <a name="PGetCacheSize"></a> [[PGetCacheSize]]
913 <dt><strong>Group</strong></dt>
915 <dt><strong>Function</strong></dt>
916 <dd> VIOCGETCACHEPARMS (40) - Get cache stats </dd>
917 <dt><strong>Arguments</strong></dt>
919 <dt><strong>Outcome</strong></dt>
920 <dd> Get the cache blocks, and how many of the cache blocks there are </dd>
928 <dt><strong>Side Effects</strong></dt>
929 <dd> none listed </dd>
932 ## <a name="PGetVnodeXStatus"></a> [[PGetVnodeXStatus]]
935 <dt><strong>Group</strong></dt>
937 <dt><strong>Function</strong></dt>
938 <dd> VIOCGETVCXSTATUS (41) - ??? </dd>
939 <dt><strong>Arguments</strong></dt>
941 <dt><strong>Outcome</strong></dt>
942 <dd> get's the fid, the data version, any lock, the parent vnode, the parent unique identifier, the truncation position, the callback, cbExpires(probably when the callback expires), if any access is being made, if any files are open, any users executing or writing, the 'flock' count, the states, and the move statistic </dd>
947 - EINVAL - if some of the initial default arguments aren't set
948 - EACCES - if access to check the mode bits is denied
951 <dt><strong>Side Effects</strong></dt>
952 <dd> none listed </dd>
955 ## <a name="PSetSPrefs33"></a> [[PSetSPrefs33]]
958 <dt><strong>Group</strong></dt>
960 <dt><strong>Function</strong></dt>
961 <dd> VIOC_SETPREFS33 (42) - Set server ranks (deprecated) </dd>
962 <dt><strong>Arguments</strong></dt>
963 <dd> the server preferences to be set </dd>
964 <dt><strong>Outcome</strong></dt>
965 <dd> set the server preferences, calling a function </dd>
973 <dt><strong>Side Effects</strong></dt>
974 <dd> none listed </dd>
977 ## <a name="PGetSPrefs"></a> [[PGetSPrefs]]
980 <dt><strong>Group</strong></dt>
982 <dt><strong>Function</strong></dt>
983 <dd> VIOC_GETSPREFS (43) - Get server ranks </dd>
984 <dt><strong>Arguments</strong></dt>
986 <dt><strong>Outcome</strong></dt>
987 <dd> Get the sprefs </dd>
992 - EIO - if the afs daemon hasn't started yet
993 - ENOENT - is the sprefrequest is too large
996 <dt><strong>Side Effects</strong></dt>
997 <dd> none listed </dd>
1000 ## <a name="PGag"></a> PGag
1003 <dt><strong>Group</strong></dt>
1005 <dt><strong>Function</strong></dt>
1006 <dd> VIOC_GAG (44) - Silence Cache Manager </dd>
1007 <dt><strong>Arguments</strong></dt>
1008 <dd> The flags to either gag or de-gag the cache manager </dd>
1009 <dt><strong>Outcome</strong></dt>
1010 <dd> set the gag flags, then show these flags </dd>
1015 - EACCES - if the user doesn't have super-user credentials
1018 <dt><strong>Side Effects</strong></dt>
1019 <dd> none listed </dd>
1022 ## <a name="PTwiddleRx"></a> [[PTwiddleRx]]
1025 <dt><strong>Group</strong></dt>
1027 <dt><strong>Function</strong></dt>
1028 <dd> VIOC_TWIDDLE (45) - Adjust RX knobs </dd>
1029 <dt><strong>Arguments</strong></dt>
1030 <dd> the previous settings of the 'knobs' </dd>
1031 <dt><strong>Outcome</strong></dt>
1032 <dd> build out the struct rxp, from a struct rx </dd>
1037 - EACCES - if the user doesn't have super-user credentials
1040 <dt><strong>Side Effects</strong></dt>
1041 <dd> none listed </dd>
1044 ## <a name="PSetSPrefs"></a> [[PSetSPrefs]]
1047 <dt><strong>Group</strong></dt>
1049 <dt><strong>Function</strong></dt>
1050 <dd> VIOC_SETPREFS (46) - Set server ranks </dd>
1051 <dt><strong>Arguments</strong></dt>
1052 <dd> the sprefs value to want the sprefs set to </dd>
1053 <dt><strong>Outcome</strong></dt>
1054 <dd> set the sprefs using the afs_setsprefs() function </dd>
1059 - EIO - if the afs daemon hasn't started yet
1060 - EACCES - if the user doesn't have super-user credentials
1061 - EINVAL - if the struct setsprefs is too large
1062 - EINVAL - if the struct setsprefs multiplied by the number of servers is too large
1065 <dt><strong>Side Effects</strong></dt>
1066 <dd> none listed </dd>
1069 ## <a name="PStoreBehind"></a> [[PStoreBehind]]
1072 <dt><strong>Group</strong></dt>
1074 <dt><strong>Function</strong></dt>
1075 <dd> VIOC_STORBEHIND (47) Adjust store asynchrony </dd>
1076 <dt><strong>Arguments</strong></dt>
1077 <dd> sets the sbstruct </dd>
1078 <dt><strong>Outcome</strong></dt>
1079 <dd> set asynchrony based on a file, from a struct sbstruct //I THINK </dd>
1084 - EPERM - if the user doesn't have super-user credentials
1085 - EACCES - if there isn't enough access to not check the mode bits
1088 <dt><strong>Side Effects</strong></dt>
1089 <dd> none listed </dd>
1092 ## <a name="PGCPAGs"></a> PGCPAGs
1095 <dt><strong>Group</strong></dt>
1097 <dt><strong>Function</strong></dt>
1098 <dd> VIOC_GCPAGS (48) - Disable automatic PAG gc'ing </dd>
1099 <dt><strong>Arguments</strong></dt>
1101 <dt><strong>Outcome</strong></dt>
1102 <dd> set the gcpags to GCPAGS_USERDISABLED </dd>
1107 - EACCES - if the user doesn't have super-user credentials
1110 <dt><strong>Side Effects</strong></dt>
1111 <dd> none listed </dd>
1114 ## <a name="PGetInitParams"></a> [[PGetInitParams]]
1117 <dt><strong>Group</strong></dt>
1119 <dt><strong>Function</strong></dt>
1120 <dd> VIOC_GETINITPARAMS (49) - Get initial cache manager parameters </dd>
1121 <dt><strong>Arguments</strong></dt>
1123 <dt><strong>Outcome</strong></dt>
1124 <dd> return the initial cache manager parameters </dd>
1129 - [[E2BIG]] - if the initial parameters are bigger than some PIGGYSIZE
1132 <dt><strong>Side Effects</strong></dt>
1133 <dd> none listed </dd>
1136 ## <a name="PGetCPrefs"></a> [[PGetCPrefs]]
1139 <dt><strong>Group</strong></dt>
1141 <dt><strong>Function</strong></dt>
1142 <dd> VIOC_GETCPREFS (50) - Get client interface </dd>
1143 <dt><strong>Arguments</strong></dt>
1145 <dt><strong>Outcome</strong></dt>
1146 <dd> get the information about the client interface </dd>
1151 - - EIO - the afs daemon hasn't started yet
1152 - EINVAL - if the request is too large for the struct that will be holding it
1155 <dt><strong>Side Effects</strong></dt>
1156 <dd> none listed </dd>
1159 ## <a name="PSetCPrefs"></a> [[PSetCPrefs]]
1162 <dt><strong>Group</strong></dt>
1164 <dt><strong>Function</strong></dt>
1165 <dd> VIOC_SETCPREFS (51) - Set client interface </dd>
1166 <dt><strong>Arguments</strong></dt>
1167 <dd> The interfaces you want set </dd>
1168 <dt><strong>Outcome</strong></dt>
1169 <dd> set the callback interfaces addresses to those of the hosts </dd>
1174 - EIO - the afs daemon hasn't started yet
1175 - EINVAL - the input is too large for the struct
1176 - ENOMEM - if there are too many servers
1179 <dt><strong>Side Effects</strong></dt>
1180 <dd> none listed </dd>
1183 ## <a name="PFlushMount"></a> [[PFlushMount]]
1186 <dt><strong>Group</strong></dt>
1188 <dt><strong>Function</strong></dt>
1189 <dd> VIOC_AFS_FLUSHMOUNT (52) - Flush mount symlink data </dd>
1190 <dt><strong>Arguments</strong></dt>
1191 <dd> The last part of a path to a mount point, which tells us what to flush </dd>
1192 <dt><strong>Outcome</strong></dt>
1193 <dd> remove all of the mount data from the dcache regarding a certain mount point </dd>
1198 - EINVAL - if some of the initial arguments aren't set
1199 - ENOTDIR - if the initial argument for the mount point isn't a directory
1200 - ENOENT - if the dcache entry isn't set
1202 ## <a name="PRxStatProc"></a> [[PRxStatProc]]
1205 <dt><strong>Group</strong></dt>
1207 <dt><strong>Function</strong></dt>
1208 <dd> VIOC_RXSTAT_PROC (53) - Control process RX statistics </dd>
1209 <dt><strong>Arguments</strong></dt>
1210 <dd> The flags that control which statistics to use </dd>
1211 <dt><strong>Outcome</strong></dt>
1212 <dd> either enable process RPCStats, disable process RPCStats, or clear the process RPCStats </dd>
1217 - EACCES - if the user doesn't have super-user credentials
1218 - EINVAL - if the flag input is too long
1221 <dt><strong>Side Effects</strong></dt>
1222 <dd> none listed </dd>
1225 ## <a name="PRxStatPeer"></a> [[PRxStatPeer]]
1228 <dt><strong>Group</strong></dt>
1230 <dt><strong>Function</strong></dt>
1231 <dd> VIOC_RXSTAT_PEER (54) - Control peer RX statistics </dd>
1232 <dt><strong>Arguments</strong></dt>
1233 <dd> The flags that control which statistics to use </dd>
1234 <dt><strong>Outcome</strong></dt>
1235 <dd> either enable peer RPCStats, disable peer RPCStats, or clear the peer RPCStats </dd>
1240 - EACCES - if the user doesn't have super-user credentials
1241 - EINVAL - if the flag input is too long
1244 <dt><strong>Side Effects</strong></dt>
1245 <dd> none listed </dd>
1248 ## <a name="PGetRxkcrypt"></a> [[PGetRxkcrypt]]
1251 <dt><strong>Group</strong></dt>
1253 <dt><strong>Function</strong></dt>
1254 <dd> VIOC_GETRXKCRYPT (55) - Get rxkad encryption flag </dd>
1255 <dt><strong>Arguments</strong></dt>
1257 <dt><strong>Outcome</strong></dt>
1258 <dd> get the value of cryptall(presumably whether or not things should be encrypted </dd>
1266 <dt><strong>Side Effects</strong></dt>
1267 <dd> none listed </dd>
1270 ## <a name="PSetRxkcrypt"></a> [[PSetRxkcrypt]]
1273 <dt><strong>Group</strong></dt>
1275 <dt><strong>Function</strong></dt>
1276 <dd> VIOC_SETRXKCRYPT (56) - Set rxkad encryption flag </dd>
1277 <dt><strong>Arguments</strong></dt>
1278 <dd> the argument whether or not things should be encrypted </dd>
1279 <dt><strong>Outcome</strong></dt>
1280 <dd> set whether or not things should be encrypted </dd>
1285 - EPERM - if the user doesn't have super-user credentials
1286 - EINVAL - if the input is too big, or if the input is outside the bounds of what it can be set to
1289 <dt><strong>Side Effects</strong></dt>
1290 <dd> none really, but may need to be modified at a later date to take into account other values for cryptall(beyond true and false) </dd>
1293 ## <a name="PSetClientContext"></a> [[PSetClientContext]]
1296 <dt><strong>Group</strong></dt>
1298 <dt><strong>Function</strong></dt>
1299 <dd>[[Main/PsetClientContext]] (99) - NFS-PAG pioctl (for knfs/rmtsysd) </dd>
1300 <dt><strong>Arguments</strong></dt>
1302 <dt><strong>Outcome</strong></dt>
1303 <dd> Setup caller's credentials, dependent on an AIX 64-bit kernel, HPUX, SUN57 64-bit kernel, SGI 64-mips, or a need for a 32-bit ioctl </dd>
1311 <dt><strong>Side Effects</strong></dt>
1312 <dd> none listed </dd>
1315 //WASN'T SURE WHAT TO DO ABOUT THESE, ALSO NOTE THAT THE ABOVE ARE JUST THE V GROUP PIOCTL()s, I CAN DOCUMENT THE C GROUP, MOST OF WHICH ARE PBogus
1318 <dt><strong>Group</strong></dt>
1320 <dt><strong>Function</strong></dt>
1321 <dd><strong>*reserved*</strong> (239) - Reserved for code expansion </dd>
1327 <dt><strong>Group</strong></dt>
1329 <dt><strong>Function</strong></dt>
1330 <dd> VIOC_SITE1 (240) - Reserved for site-specific extensions </dd>
1336 <dt><strong>Group</strong></dt>
1338 <dt><strong>Function</strong></dt>
1339 <dd> VIOC_STIE2 (241) - Reserved for site-specific extensions </dd>
1345 <dt><strong>Group</strong></dt>
1347 <dt><strong>Function</strong></dt>
1348 <dd> VIOC_SITE3 (242) - Reserved for site-specific extensions </dd>
1354 <dt><strong>Group</strong></dt>
1356 <dt><strong>Function</strong></dt>
1357 <dd> VIOC_SITE4 (243) - Reserved for site-specific extensions </dd>
1363 <dt><strong>Group</strong></dt>
1365 <dt><strong>Function</strong></dt>
1366 <dd> VIOC_SITE5 (244) - Reserved for site-specific extensions </dd>
1372 <dt><strong>Group</strong></dt>
1374 <dt><strong>Function</strong></dt>
1375 <dd> VIOC_SITE6 (245) - Reserved for site-specific extensions </dd>
1381 <dt><strong>Group</strong></dt>
1383 <dt><strong>Function</strong></dt>
1384 <dd> VIOC_SITE7 (246) - Reserved for site-specific extensions </dd>
1390 <dt><strong>Group</strong></dt>
1392 <dt><strong>Function</strong></dt>
1393 <dd> VIOC_SITE8 (247) - Reserved for site-specific extensions </dd>
1399 <dt><strong>Group</strong></dt>
1401 <dt><strong>Function</strong></dt>
1402 <dd> VIOC_PRIVATE1 (248) - Reserved for implementation use </dd>
1408 <dt><strong>Group</strong></dt>
1410 <dt><strong>Function</strong></dt>
1411 <dd> VIOC_PRIVATE2 (249) - Reserved for implementation use </dd>
1417 <dt><strong>Group</strong></dt>
1419 <dt><strong>Function</strong></dt>
1420 <dd> VIOC_PRIVATE3 (250) - Reserved for implementation use </dd>
1426 <dt><strong>Group</strong></dt>
1428 <dt><strong>Function</strong></dt>
1429 <dd> VIOC_PRIVATE4 (251) - Reserved for implementation use </dd>
1435 <dt><strong>Group</strong></dt>
1437 <dt><strong>Function</strong></dt>
1438 <dd> VIOC_PRIVATE5 (252) - Reserved for implementation use </dd>
1444 <dt><strong>Group</strong></dt>
1446 <dt><strong>Function</strong></dt>
1447 <dd> VIOC_PRIVATE6 (253) - Reserved for implementation use </dd>
1453 <dt><strong>Group</strong></dt>
1455 <dt><strong>Function</strong></dt>
1456 <dd> VIOC_PRIVATE7 (254) - Reserved for implementation use </dd>
1462 <dt><strong>Group</strong></dt>
1464 <dt><strong>Function</strong></dt>
1465 <dd> VIOC_PRIVATE8 (255) - Reserved for implementation use </dd>