home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume13 / rpc3.9 / part15 < prev    next >
SHell self-extracting ARchive  |  1988-02-27  |  41.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 31 33 69 30 39 |Subject:| v13i09|
|00000010| 32 3a 20 20 53 75 6e 20 | 52 50 43 2c 20 72 65 6c |2: Sun |RPC, rel|
|00000020| 65 61 73 65 20 33 2e 39 | 2c 20 50 61 72 74 31 35 |ease 3.9|, Part15|
|00000030| 2f 31 35 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |/15.News|groups: |
|00000040| 63 6f 6d 70 2e 73 6f 75 | 72 63 65 73 2e 75 6e 69 |comp.sou|rces.uni|
|00000050| 78 0a 53 65 6e 64 65 72 | 3a 20 73 6f 75 72 63 65 |x.Sender|: source|
|00000060| 73 0a 41 70 70 72 6f 76 | 65 64 3a 20 72 73 61 6c |s.Approv|ed: rsal|
|00000070| 7a 40 75 75 6e 65 74 2e | 55 55 2e 4e 45 54 0a 0a |z@uunet.|UU.NET..|
|00000080| 53 75 62 6d 69 74 74 65 | 64 2d 62 79 3a 20 53 74 |Submitte|d-by: St|
|00000090| 65 70 68 65 6e 20 58 2e | 20 4e 61 68 6d 20 3c 73 |ephen X.| Nahm <s|
|000000a0| 78 6e 40 53 75 6e 2e 43 | 4f 4d 3e 0a 50 6f 73 74 |xn@Sun.C|OM>.Post|
|000000b0| 69 6e 67 2d 6e 75 6d 62 | 65 72 3a 20 56 6f 6c 75 |ing-numb|er: Volu|
|000000c0| 6d 65 20 31 33 2c 20 49 | 73 73 75 65 20 39 32 0a |me 13, I|ssue 92.|
|000000d0| 41 72 63 68 69 76 65 2d | 6e 61 6d 65 3a 20 72 70 |Archive-|name: rp|
|000000e0| 63 33 2e 39 2f 70 61 72 | 74 31 35 0a 0a 23 21 20 |c3.9/par|t15..#! |
|000000f0| 2f 62 69 6e 2f 73 68 0a | 23 20 54 68 69 73 20 69 |/bin/sh.|# This i|
|00000100| 73 20 61 20 73 68 65 6c | 6c 20 61 72 63 68 69 76 |s a shel|l archiv|
|00000110| 65 2e 20 54 6f 20 65 78 | 74 72 61 63 74 2c 20 72 |e. To ex|tract, r|
|00000120| 65 6d 6f 76 65 20 74 68 | 65 20 68 65 61 64 65 72 |emove th|e header|
|00000130| 20 61 6e 64 20 74 79 70 | 65 20 22 73 68 20 66 69 | and typ|e "sh fi|
|00000140| 6c 65 6e 61 6d 65 22 0a | 23 0a 63 64 20 64 6f 63 |lename".|#.cd doc|
|00000150| 0a 65 63 68 6f 20 78 20 | 2d 20 6e 66 73 2e 72 66 |.echo x |- nfs.rf|
|00000160| 63 2e 6d 73 0a 73 65 64 | 20 2d 65 20 27 73 2f 5e |c.ms.sed| -e 's/^|
|00000170| 58 2f 2f 27 20 3e 20 6e | 66 73 2e 72 66 63 2e 6d |X//' > n|fs.rfc.m|
|00000180| 73 20 3c 3c 27 46 75 6e | 6b 79 5f 53 74 75 66 66 |s <<'Fun|ky_Stuff|
|00000190| 27 0a 58 2e 5c 22 20 40 | 28 23 29 6e 66 73 2e 72 |'.X.\" @|(#)nfs.r|
|000001a0| 66 63 2e 6d 73 09 31 2e | 32 20 38 37 2f 31 31 2f |fc.ms.1.|2 87/11/|
|000001b0| 30 39 20 33 2e 39 20 52 | 50 43 53 52 43 0a 58 2e |09 3.9 R|PCSRC.X.|
|000001c0| 64 65 20 42 54 0a 58 2e | 69 66 20 5c 5c 6e 25 3d |de BT.X.|if \\n%=|
|000001d0| 31 20 2e 74 6c 20 27 27 | 2d 20 25 20 2d 27 27 0a |1 .tl ''|- % -''.|
|000001e0| 58 2e 2e 0a 58 2e 4e 44 | 0a 58 2e 5c 22 20 70 72 |X...X.ND|.X.\" pr|
|000001f0| 65 76 65 6e 74 20 65 78 | 63 65 73 73 20 75 6e 64 |event ex|cess und|
|00000200| 65 72 6c 69 6e 69 6e 67 | 20 69 6e 20 6e 72 6f 66 |erlining| in nrof|
|00000210| 66 0a 58 2e 69 66 20 6e | 20 2e 66 70 20 32 20 52 |f.X.if n| .fp 2 R|
|00000220| 0a 58 2e 4f 48 20 27 4e | 65 74 77 6f 72 6b 20 46 |.X.OH 'N|etwork F|
|00000230| 69 6c 65 20 53 79 73 74 | 65 6d 3a 20 56 65 72 73 |ile Syst|em: Vers|
|00000240| 69 6f 6e 20 32 20 50 72 | 6f 74 6f 63 6f 6c 20 53 |ion 2 Pr|otocol S|
|00000250| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 27 27 50 61 |pecifica|tion''Pa|
|00000260| 67 65 20 25 27 0a 58 2e | 45 48 20 27 50 61 67 65 |ge %'.X.|EH 'Page|
|00000270| 20 25 27 27 4e 65 74 77 | 6f 72 6b 20 46 69 6c 65 | %''Netw|ork File|
|00000280| 20 53 79 73 74 65 6d 3a | 20 56 65 72 73 69 6f 6e | System:| Version|
|00000290| 20 32 20 50 72 6f 74 6f | 63 6f 6c 20 53 70 65 63 | 2 Proto|col Spec|
|000002a0| 69 66 69 63 61 74 69 6f | 6e 27 0a 58 2e 69 66 20 |ificatio|n'.X.if |
|000002b0| 5c 5c 6e 25 3d 31 20 2e | 62 70 0a 58 2e 53 48 0a |\\n%=1 .|bp.X.SH.|
|000002c0| 5c 26 4e 65 74 77 6f 72 | 6b 20 46 69 6c 65 20 53 |\&Networ|k File S|
|000002d0| 79 73 74 65 6d 3a 20 56 | 65 72 73 69 6f 6e 20 32 |ystem: V|ersion 2|
|000002e0| 20 50 72 6f 74 6f 63 6f | 6c 20 53 70 65 63 69 66 | Protoco|l Specif|
|000002f0| 69 63 61 74 69 6f 6e 0a | 58 2e 49 58 20 4e 46 53 |ication.|X.IX NFS|
|00000300| 20 22 22 20 22 22 20 22 | 22 20 50 41 47 45 20 4d | "" "" "|" PAGE M|
|00000310| 41 4a 4f 52 0a 58 2e 49 | 58 20 22 4e 65 74 77 6f |AJOR.X.I|X "Netwo|
|00000320| 72 6b 20 46 69 6c 65 20 | 53 79 73 74 65 6d 22 20 |rk File |System" |
|00000330| 22 22 20 22 22 20 22 22 | 20 50 41 47 45 20 4d 41 |"" "" ""| PAGE MA|
|00000340| 4a 4f 52 0a 58 2e 49 58 | 20 4e 46 53 20 22 76 65 |JOR.X.IX| NFS "ve|
|00000350| 72 73 69 6f 6e 2d 32 20 | 70 72 6f 74 6f 63 6f 6c |rsion-2 |protocol|
|00000360| 20 73 70 65 63 69 66 69 | 63 61 74 69 6f 6e 22 0a | specifi|cation".|
|00000370| 58 2e 49 58 20 22 4e 65 | 74 77 6f 72 6b 20 46 69 |X.IX "Ne|twork Fi|
|00000380| 6c 65 20 53 79 73 74 65 | 6d 22 20 22 76 65 72 73 |le Syste|m" "vers|
|00000390| 69 6f 6e 2d 32 20 70 72 | 6f 74 6f 63 6f 6c 20 73 |ion-2 pr|otocol s|
|000003a0| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 22 0a 58 2e |pecifica|tion".X.|
|000003b0| 4c 50 0a 58 2e 4e 48 20 | 30 0a 5c 26 53 74 61 74 |LP.X.NH |0.\&Stat|
|000003c0| 75 73 20 6f 66 20 74 68 | 69 73 20 53 74 61 6e 64 |us of th|is Stand|
|000003d0| 61 72 64 0a 58 2e 4c 50 | 0a 4e 6f 74 65 3a 20 54 |ard.X.LP|.Note: T|
|000003e0| 68 69 73 20 63 68 61 70 | 74 65 72 20 73 70 65 63 |his chap|ter spec|
|000003f0| 69 66 69 65 73 20 61 20 | 70 72 6f 74 6f 63 6f 6c |ifies a |protocol|
|00000400| 20 74 68 61 74 20 53 75 | 6e 20 4d 69 63 72 6f 73 | that Su|n Micros|
|00000410| 79 73 74 65 6d 73 2c 20 | 49 6e 63 2e 2c 0a 61 6e |ystems, |Inc.,.an|
|00000420| 64 20 6f 74 68 65 72 73 | 20 61 72 65 20 75 73 69 |d others| are usi|
|00000430| 6e 67 2e 20 20 49 74 20 | 73 70 65 63 69 66 69 65 |ng. It |specifie|
|00000440| 73 20 69 74 20 69 6e 20 | 73 74 61 6e 64 61 72 64 |s it in |standard|
|00000450| 20 41 52 50 41 20 52 46 | 43 20 66 6f 72 6d 2e 0a | ARPA RF|C form..|
|00000460| 58 2e 4e 48 20 31 0a 5c | 26 49 6e 74 72 6f 64 75 |X.NH 1.\|&Introdu|
|00000470| 63 74 69 6f 6e 0a 58 2e | 49 58 20 4e 46 53 20 69 |ction.X.|IX NFS i|
|00000480| 6e 74 72 6f 64 75 63 74 | 69 6f 6e 0a 58 2e 4c 50 |ntroduct|ion.X.LP|
|00000490| 0a 54 68 65 20 53 75 6e | 20 4e 65 74 77 6f 72 6b |.The Sun| Network|
|000004a0| 20 46 69 6c 65 73 79 73 | 74 65 6d 20 28 4e 46 53 | Filesys|tem (NFS|
|000004b0| 29 20 70 72 6f 74 6f 63 | 6f 6c 20 70 72 6f 76 69 |) protoc|ol provi|
|000004c0| 64 65 73 20 74 72 61 6e | 73 70 61 72 65 6e 74 20 |des tran|sparent |
|000004d0| 72 65 6d 6f 74 65 20 0a | 61 63 63 65 73 73 20 74 |remote .|access t|
|000004e0| 6f 20 73 68 61 72 65 64 | 20 66 69 6c 65 73 79 73 |o shared| filesys|
|000004f0| 74 65 6d 73 20 6f 76 65 | 72 20 6c 6f 63 61 6c 20 |tems ove|r local |
|00000500| 61 72 65 61 20 6e 65 74 | 77 6f 72 6b 73 2e 20 20 |area net|works. |
|00000510| 54 68 65 20 4e 46 53 20 | 0a 70 72 6f 74 6f 63 6f |The NFS |.protoco|
|00000520| 6c 20 69 73 20 64 65 73 | 69 67 6e 65 64 20 74 6f |l is des|igned to|
|00000530| 20 62 65 20 6d 61 63 68 | 69 6e 65 2c 20 6f 70 65 | be mach|ine, ope|
|00000540| 72 61 74 69 6e 67 20 73 | 79 73 74 65 6d 2c 20 6e |rating s|ystem, n|
|00000550| 65 74 77 6f 72 6b 20 61 | 72 63 68 69 74 65 63 74 |etwork a|rchitect|
|00000560| 75 72 65 2c 20 0a 61 6e | 64 20 74 72 61 6e 73 70 |ure, .an|d transp|
|00000570| 6f 72 74 20 70 72 6f 74 | 6f 63 6f 6c 20 69 6e 64 |ort prot|ocol ind|
|00000580| 65 70 65 6e 64 65 6e 74 | 2e 20 20 54 68 69 73 20 |ependent|. This |
|00000590| 69 6e 64 65 70 65 6e 64 | 65 6e 63 65 20 69 73 20 |independ|ence is |
|000005a0| 0a 61 63 68 69 65 76 65 | 64 20 74 68 72 6f 75 67 |.achieve|d throug|
|000005b0| 68 20 74 68 65 20 75 73 | 65 20 6f 66 20 52 65 6d |h the us|e of Rem|
|000005c0| 6f 74 65 20 50 72 6f 63 | 65 64 75 72 65 20 43 61 |ote Proc|edure Ca|
|000005d0| 6c 6c 20 28 52 50 43 29 | 20 70 72 69 6d 69 74 69 |ll (RPC)| primiti|
|000005e0| 76 65 73 20 0a 62 75 69 | 6c 74 20 6f 6e 20 74 6f |ves .bui|lt on to|
|000005f0| 70 20 6f 66 20 61 6e 20 | 65 58 74 65 72 6e 61 6c |p of an |eXternal|
|00000600| 20 44 61 74 61 20 52 65 | 70 72 65 73 65 6e 74 61 | Data Re|presenta|
|00000610| 74 69 6f 6e 20 28 58 44 | 52 29 2e 20 20 49 6d 70 |tion (XD|R). Imp|
|00000620| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 73 0a 65 78 69 |lementat|ions.exi|
|00000630| 73 74 20 66 6f 72 20 61 | 20 76 61 72 69 65 74 79 |st for a| variety|
|00000640| 20 6f 66 20 6d 61 63 68 | 69 6e 65 73 2c 20 66 72 | of mach|ines, fr|
|00000650| 6f 6d 20 70 65 72 73 6f | 6e 61 6c 20 63 6f 6d 70 |om perso|nal comp|
|00000660| 75 74 65 72 73 20 74 6f | 0a 73 75 70 65 72 63 6f |uters to|.superco|
|00000670| 6d 70 75 74 65 72 73 2e | 0a 58 2e 4c 50 0a 54 68 |mputers.|.X.LP.Th|
|00000680| 65 20 73 75 70 70 6f 72 | 74 69 6e 67 20 6d 6f 75 |e suppor|ting mou|
|00000690| 6e 74 20 70 72 6f 74 6f | 63 6f 6c 20 61 6c 6c 6f |nt proto|col allo|
|000006a0| 77 73 20 74 68 65 20 73 | 65 72 76 65 72 20 74 6f |ws the s|erver to|
|000006b0| 20 68 61 6e 64 20 6f 75 | 74 20 72 65 6d 6f 74 65 | hand ou|t remote|
|000006c0| 0a 61 63 63 65 73 73 20 | 70 72 69 76 69 6c 65 67 |.access |privileg|
|000006d0| 65 73 20 74 6f 20 61 20 | 72 65 73 74 72 69 63 74 |es to a |restrict|
|000006e0| 65 64 20 73 65 74 20 6f | 66 20 63 6c 69 65 6e 74 |ed set o|f client|
|000006f0| 73 2e 20 20 49 74 20 70 | 65 72 66 6f 72 6d 73 20 |s. It p|erforms |
|00000700| 74 68 65 0a 6f 70 65 72 | 61 74 69 6e 67 20 73 79 |the.oper|ating sy|
|00000710| 73 74 65 6d 2d 73 70 65 | 63 69 66 69 63 20 66 75 |stem-spe|cific fu|
|00000720| 6e 63 74 69 6f 6e 73 20 | 74 68 61 74 20 61 6c 6c |nctions |that all|
|00000730| 6f 77 2c 20 66 6f 72 20 | 65 78 61 6d 70 6c 65 2c |ow, for |example,|
|00000740| 20 74 6f 0a 61 74 74 61 | 63 68 20 72 65 6d 6f 74 | to.atta|ch remot|
|00000750| 65 20 64 69 72 65 63 74 | 6f 72 79 20 74 72 65 65 |e direct|ory tree|
|00000760| 73 20 74 6f 20 73 6f 6d | 65 20 6c 6f 63 61 6c 20 |s to som|e local |
|00000770| 66 69 6c 65 20 73 79 73 | 74 65 6d 2e 0a 58 2e 4e |file sys|tem..X.N|
|00000780| 48 20 32 0a 5c 26 52 65 | 6d 6f 74 65 20 50 72 6f |H 2.\&Re|mote Pro|
|00000790| 63 65 64 75 72 65 20 43 | 61 6c 6c 0a 58 2e 49 58 |cedure C|all.X.IX|
|000007a0| 20 22 52 65 6d 6f 74 65 | 20 50 72 6f 63 65 64 75 | "Remote| Procedu|
|000007b0| 72 65 20 43 61 6c 6c 22 | 0a 58 2e 4c 50 0a 53 75 |re Call"|.X.LP.Su|
|000007c0| 6e 27 73 20 72 65 6d 6f | 74 65 20 70 72 6f 63 65 |n's remo|te proce|
|000007d0| 64 75 72 65 20 63 61 6c | 6c 20 73 70 65 63 69 66 |dure cal|l specif|
|000007e0| 69 63 61 74 69 6f 6e 20 | 70 72 6f 76 69 64 65 73 |ication |provides|
|000007f0| 20 61 20 70 72 6f 63 65 | 64 75 72 65 2d 0a 6f 72 | a proce|dure-.or|
|00000800| 69 65 6e 74 65 64 20 69 | 6e 74 65 72 66 61 63 65 |iented i|nterface|
|00000810| 20 74 6f 20 72 65 6d 6f | 74 65 20 73 65 72 76 69 | to remo|te servi|
|00000820| 63 65 73 2e 20 20 45 61 | 63 68 20 73 65 72 76 65 |ces. Ea|ch serve|
|00000830| 72 20 73 75 70 70 6c 69 | 65 73 20 61 0a 70 72 6f |r suppli|es a.pro|
|00000840| 67 72 61 6d 20 74 68 61 | 74 20 69 73 20 61 20 73 |gram tha|t is a s|
|00000850| 65 74 20 6f 66 20 70 72 | 6f 63 65 64 75 72 65 73 |et of pr|ocedures|
|00000860| 2e 20 20 4e 46 53 20 69 | 73 20 6f 6e 65 20 73 75 |. NFS i|s one su|
|00000870| 63 68 20 22 70 72 6f 67 | 72 61 6d 22 2e 0a 54 68 |ch "prog|ram"..Th|
|00000880| 65 20 63 6f 6d 62 69 6e | 61 74 69 6f 6e 20 6f 66 |e combin|ation of|
|00000890| 20 68 6f 73 74 20 61 64 | 64 72 65 73 73 2c 20 70 | host ad|dress, p|
|000008a0| 72 6f 67 72 61 6d 20 6e | 75 6d 62 65 72 2c 20 61 |rogram n|umber, a|
|000008b0| 6e 64 20 70 72 6f 63 65 | 64 75 72 65 0a 6e 75 6d |nd proce|dure.num|
|000008c0| 62 65 72 20 73 70 65 63 | 69 66 69 65 73 20 6f 6e |ber spec|ifies on|
|000008d0| 65 20 72 65 6d 6f 74 65 | 20 73 65 72 76 69 63 65 |e remote| service|
|000008e0| 20 70 72 6f 63 65 64 75 | 72 65 2e 20 20 52 50 43 | procedu|re. RPC|
|000008f0| 20 64 6f 65 73 20 6e 6f | 74 20 64 65 70 65 6e 64 | does no|t depend|
|00000900| 0a 6f 6e 20 73 65 72 76 | 69 63 65 73 20 70 72 6f |.on serv|ices pro|
|00000910| 76 69 64 65 64 20 62 79 | 20 73 70 65 63 69 66 69 |vided by| specifi|
|00000920| 63 20 70 72 6f 74 6f 63 | 6f 6c 73 2c 20 73 6f 20 |c protoc|ols, so |
|00000930| 69 74 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 77 |it can b|e used w|
|00000940| 69 74 68 0a 61 6e 79 20 | 75 6e 64 65 72 6c 79 69 |ith.any |underlyi|
|00000950| 6e 67 20 74 72 61 6e 73 | 70 6f 72 74 20 70 72 6f |ng trans|port pro|
|00000960| 74 6f 63 6f 6c 2e 20 20 | 53 65 65 20 74 68 65 0a |tocol. |See the.|
|00000970| 5c 66 49 52 65 6d 6f 74 | 65 20 50 72 6f 63 65 64 |\fIRemot|e Proced|
|00000980| 75 72 65 20 43 61 6c 6c | 73 3a 20 50 72 6f 74 6f |ure Call|s: Proto|
|00000990| 63 6f 6c 20 53 70 65 63 | 69 66 69 63 61 74 69 6f |col Spec|ificatio|
|000009a0| 6e 5c 66 50 0a 63 68 61 | 70 74 65 72 20 6f 66 20 |n\fP.cha|pter of |
|000009b0| 74 68 69 73 20 6d 61 6e | 75 61 6c 2e 0a 58 2e 4e |this man|ual..X.N|
|000009c0| 48 20 32 0a 5c 26 45 78 | 74 65 72 6e 61 6c 20 44 |H 2.\&Ex|ternal D|
|000009d0| 61 74 61 20 52 65 70 72 | 65 73 65 6e 74 61 74 69 |ata Repr|esentati|
|000009e0| 6f 6e 0a 58 2e 49 58 20 | 22 65 58 74 65 72 6e 61 |on.X.IX |"eXterna|
|000009f0| 6c 20 44 61 74 61 20 52 | 65 70 72 65 73 65 6e 74 |l Data R|epresent|
|00000a00| 61 74 69 6f 6e 22 0a 58 | 2e 4c 50 0a 54 68 65 20 |ation".X|.LP.The |
|00000a10| 65 58 74 65 72 6e 61 6c | 20 44 61 74 61 20 52 65 |eXternal| Data Re|
|00000a20| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 20 28 58 44 |presenta|tion (XD|
|00000a30| 52 29 20 73 74 61 6e 64 | 61 72 64 20 70 72 6f 76 |R) stand|ard prov|
|00000a40| 69 64 65 73 20 61 20 63 | 6f 6d 6d 6f 6e 0a 77 61 |ides a c|ommon.wa|
|00000a50| 79 20 6f 66 20 72 65 70 | 72 65 73 65 6e 74 69 6e |y of rep|resentin|
|00000a60| 67 20 61 20 73 65 74 20 | 6f 66 20 64 61 74 61 20 |g a set |of data |
|00000a70| 74 79 70 65 73 20 6f 76 | 65 72 20 61 20 6e 65 74 |types ov|er a net|
|00000a80| 77 6f 72 6b 2e 20 20 54 | 68 65 20 4e 46 53 0a 50 |work. T|he NFS.P|
|00000a90| 72 6f 74 6f 63 6f 6c 20 | 53 70 65 63 69 66 69 63 |rotocol |Specific|
|00000aa0| 61 74 69 6f 6e 20 69 73 | 20 77 72 69 74 74 65 6e |ation is| written|
|00000ab0| 20 75 73 69 6e 67 20 74 | 68 65 20 52 50 43 20 64 | using t|he RPC d|
|00000ac0| 61 74 61 20 64 65 73 63 | 72 69 70 74 69 6f 6e 0a |ata desc|ription.|
|00000ad0| 6c 61 6e 67 75 61 67 65 | 2e 20 46 6f 72 20 6d 6f |language|. For mo|
|00000ae0| 72 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2c 20 |re infor|mation, |
|00000af0| 73 65 65 20 74 68 65 20 | 0a 5c 66 49 65 58 74 65 |see the |.\fIeXte|
|00000b00| 72 6e 61 6c 20 44 61 74 | 61 20 52 65 70 72 65 73 |rnal Dat|a Repres|
|00000b10| 65 6e 74 61 74 69 6f 6e | 20 53 74 61 6e 64 61 72 |entation| Standar|
|00000b20| 64 3a 20 50 72 6f 74 6f | 63 6f 6c 20 53 70 65 63 |d: Proto|col Spec|
|00000b30| 69 66 69 63 61 74 69 6f | 6e 5c 66 50 0a 63 68 61 |ificatio|n\fP.cha|
|00000b40| 70 74 65 72 20 6f 66 20 | 74 68 69 73 20 6d 61 6e |pter of |this man|
|00000b50| 75 61 6c 2e 20 20 53 75 | 6e 20 70 72 6f 76 69 64 |ual. Su|n provid|
|00000b60| 65 73 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |es imple|mentatio|
|00000b70| 6e 73 20 6f 66 20 58 44 | 52 20 61 6e 64 0a 52 50 |ns of XD|R and.RP|
|00000b80| 43 2c 20 20 62 75 74 20 | 4e 46 53 20 64 6f 65 73 |C, but |NFS does|
|00000b90| 20 6e 6f 74 20 72 65 71 | 75 69 72 65 20 74 68 65 | not req|uire the|
|00000ba0| 69 72 20 75 73 65 2e 20 | 20 41 6e 79 20 73 6f 66 |ir use. | Any sof|
|00000bb0| 74 77 61 72 65 20 74 68 | 61 74 0a 70 72 6f 76 69 |tware th|at.provi|
|00000bc0| 64 65 73 20 65 71 75 69 | 76 61 6c 65 6e 74 20 66 |des equi|valent f|
|00000bd0| 75 6e 63 74 69 6f 6e 61 | 6c 69 74 79 20 63 61 6e |unctiona|lity can|
|00000be0| 20 62 65 20 75 73 65 64 | 2c 20 61 6e 64 20 69 66 | be used|, and if|
|00000bf0| 20 74 68 65 20 65 6e 63 | 6f 64 69 6e 67 0a 69 73 | the enc|oding.is|
|00000c00| 20 65 78 61 63 74 6c 79 | 20 74 68 65 20 73 61 6d | exactly| the sam|
|00000c10| 65 20 69 74 20 63 61 6e | 20 69 6e 74 65 72 6f 70 |e it can| interop|
|00000c20| 65 72 61 74 65 20 77 69 | 74 68 20 6f 74 68 65 72 |erate wi|th other|
|00000c30| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 73 | impleme|ntations|
|00000c40| 0a 6f 66 20 4e 46 53 2e | 0a 58 2e 4e 48 20 32 0a |.of NFS.|.X.NH 2.|
|00000c50| 5c 26 53 74 61 74 65 6c | 65 73 73 20 53 65 72 76 |\&Statel|ess Serv|
|00000c60| 65 72 73 0a 58 2e 49 58 | 20 22 73 74 61 74 65 6c |ers.X.IX| "statel|
|00000c70| 65 73 73 20 73 65 72 76 | 65 72 73 22 0a 58 2e 49 |ess serv|ers".X.I|
|00000c80| 58 20 73 65 72 76 65 72 | 73 20 73 74 61 74 65 6c |X server|s statel|
|00000c90| 65 73 73 0a 58 2e 4c 50 | 0a 54 68 65 20 4e 46 53 |ess.X.LP|.The NFS|
|00000ca0| 20 70 72 6f 74 6f 63 6f | 6c 20 69 73 20 73 74 61 | protoco|l is sta|
|00000cb0| 74 65 6c 65 73 73 2e 20 | 20 54 68 61 74 20 69 73 |teless. | That is|
|00000cc0| 2c 20 61 20 73 65 72 76 | 65 72 20 64 6f 65 73 20 |, a serv|er does |
|00000cd0| 6e 6f 74 20 6e 65 65 64 | 20 74 6f 0a 6d 61 69 6e |not need| to.main|
|00000ce0| 74 61 69 6e 20 61 6e 79 | 20 65 78 74 72 61 20 73 |tain any| extra s|
|00000cf0| 74 61 74 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |tate inf|ormation|
|00000d00| 20 61 62 6f 75 74 20 61 | 6e 79 20 6f 66 20 69 74 | about a|ny of it|
|00000d10| 73 20 63 6c 69 65 6e 74 | 73 20 69 6e 0a 6f 72 64 |s client|s in.ord|
|00000d20| 65 72 20 74 6f 20 66 75 | 6e 63 74 69 6f 6e 20 63 |er to fu|nction c|
|00000d30| 6f 72 72 65 63 74 6c 79 | 2e 20 20 53 74 61 74 65 |orrectly|. State|
|00000d40| 6c 65 73 73 20 73 65 72 | 76 65 72 73 20 68 61 76 |less ser|vers hav|
|00000d50| 65 20 61 20 64 69 73 74 | 69 6e 63 74 0a 61 64 76 |e a dist|inct.adv|
|00000d60| 61 6e 74 61 67 65 20 6f | 76 65 72 20 73 74 61 74 |antage o|ver stat|
|00000d70| 65 66 75 6c 20 73 65 72 | 76 65 72 73 20 69 6e 20 |eful ser|vers in |
|00000d80| 74 68 65 20 65 76 65 6e | 74 20 6f 66 20 61 20 66 |the even|t of a f|
|00000d90| 61 69 6c 75 72 65 2e 20 | 20 57 69 74 68 0a 73 74 |ailure. | With.st|
|00000da0| 61 74 65 6c 65 73 73 20 | 73 65 72 76 65 72 73 2c |ateless |servers,|
|00000db0| 20 61 20 63 6c 69 65 6e | 74 20 6e 65 65 64 20 6f | a clien|t need o|
|00000dc0| 6e 6c 79 20 72 65 74 72 | 79 20 61 20 72 65 71 75 |nly retr|y a requ|
|00000dd0| 65 73 74 20 75 6e 74 69 | 6c 20 74 68 65 0a 73 65 |est unti|l the.se|
|00000de0| 72 76 65 72 20 72 65 73 | 70 6f 6e 64 73 3b 20 69 |rver res|ponds; i|
|00000df0| 74 20 64 6f 65 73 20 6e | 6f 74 20 65 76 65 6e 20 |t does n|ot even |
|00000e00| 6e 65 65 64 20 74 6f 20 | 6b 6e 6f 77 20 74 68 61 |need to |know tha|
|00000e10| 74 20 74 68 65 20 73 65 | 72 76 65 72 20 68 61 73 |t the se|rver has|
|00000e20| 0a 63 72 61 73 68 65 64 | 2c 20 6f 72 20 74 68 65 |.crashed|, or the|
|00000e30| 20 6e 65 74 77 6f 72 6b | 20 74 65 6d 70 6f 72 61 | network| tempora|
|00000e40| 72 69 6c 79 20 77 65 6e | 74 20 64 6f 77 6e 2e 20 |rily wen|t down. |
|00000e50| 20 54 68 65 20 63 6c 69 | 65 6e 74 20 6f 66 20 61 | The cli|ent of a|
|00000e60| 0a 73 74 61 74 65 66 75 | 6c 20 73 65 72 76 65 72 |.statefu|l server|
|00000e70| 2c 20 6f 6e 20 74 68 65 | 20 6f 74 68 65 72 20 68 |, on the| other h|
|00000e80| 61 6e 64 2c 20 6e 65 65 | 64 73 20 74 6f 20 65 69 |and, nee|ds to ei|
|00000e90| 74 68 65 72 20 64 65 74 | 65 63 74 20 61 20 73 65 |ther det|ect a se|
|00000ea0| 72 76 65 72 0a 63 72 61 | 73 68 20 61 6e 64 20 72 |rver.cra|sh and r|
|00000eb0| 65 62 75 69 6c 64 20 74 | 68 65 20 73 65 72 76 65 |ebuild t|he serve|
|00000ec0| 72 27 73 20 73 74 61 74 | 65 20 77 68 65 6e 20 69 |r's stat|e when i|
|00000ed0| 74 20 63 6f 6d 65 73 20 | 62 61 63 6b 20 75 70 2c |t comes |back up,|
|00000ee0| 20 6f 72 0a 63 61 75 73 | 65 20 63 6c 69 65 6e 74 | or.caus|e client|
|00000ef0| 20 6f 70 65 72 61 74 69 | 6f 6e 73 20 74 6f 20 66 | operati|ons to f|
|00000f00| 61 69 6c 2e 0a 58 2e 4c | 50 0a 54 68 69 73 20 6d |ail..X.L|P.This m|
|00000f10| 61 79 20 6e 6f 74 20 73 | 6f 75 6e 64 20 6c 69 6b |ay not s|ound lik|
|00000f20| 65 20 61 6e 20 69 6d 70 | 6f 72 74 61 6e 74 20 69 |e an imp|ortant i|
|00000f30| 73 73 75 65 2c 20 62 75 | 74 20 69 74 20 61 66 66 |ssue, bu|t it aff|
|00000f40| 65 63 74 73 20 74 68 65 | 0a 70 72 6f 74 6f 63 6f |ects the|.protoco|
|00000f50| 6c 20 69 6e 20 73 6f 6d | 65 20 75 6e 65 78 70 65 |l in som|e unexpe|
|00000f60| 63 74 65 64 20 77 61 79 | 73 2e 20 20 57 65 20 66 |cted way|s. We f|
|00000f70| 65 65 6c 20 74 68 61 74 | 20 69 74 20 69 73 20 77 |eel that| it is w|
|00000f80| 6f 72 74 68 20 61 20 62 | 69 74 0a 6f 66 20 65 78 |orth a b|it.of ex|
|00000f90| 74 72 61 20 63 6f 6d 70 | 6c 65 78 69 74 79 20 69 |tra comp|lexity i|
|00000fa0| 6e 20 74 68 65 20 70 72 | 6f 74 6f 63 6f 6c 20 74 |n the pr|otocol t|
|00000fb0| 6f 20 62 65 20 61 62 6c | 65 20 74 6f 20 77 72 69 |o be abl|e to wri|
|00000fc0| 74 65 20 76 65 72 79 20 | 73 69 6d 70 6c 65 0a 73 |te very |simple.s|
|00000fd0| 65 72 76 65 72 73 20 74 | 68 61 74 20 64 6f 20 6e |ervers t|hat do n|
|00000fe0| 6f 74 20 72 65 71 75 69 | 72 65 20 66 61 6e 63 79 |ot requi|re fancy|
|00000ff0| 20 63 72 61 73 68 20 72 | 65 63 6f 76 65 72 79 2e | crash r|ecovery.|
|00001000| 0a 58 2e 4c 50 0a 4f 6e | 20 74 68 65 20 6f 74 68 |.X.LP.On| the oth|
|00001010| 65 72 20 68 61 6e 64 2c | 20 4e 46 53 20 64 65 61 |er hand,| NFS dea|
|00001020| 6c 73 20 77 69 74 68 20 | 6f 62 6a 65 63 74 73 20 |ls with |objects |
|00001030| 73 75 63 68 20 61 73 20 | 66 69 6c 65 73 20 61 6e |such as |files an|
|00001040| 64 0a 64 69 72 65 63 74 | 6f 72 69 65 73 20 74 68 |d.direct|ories th|
|00001050| 61 74 20 69 6e 68 65 72 | 65 6e 74 6c 79 20 68 61 |at inher|ently ha|
|00001060| 76 65 20 73 74 61 74 65 | 20 2d 2d 20 77 68 61 74 |ve state| -- what|
|00001070| 20 67 6f 6f 64 20 77 6f | 75 6c 64 20 61 20 66 69 | good wo|uld a fi|
|00001080| 6c 65 20 62 65 0a 69 66 | 20 69 74 20 64 69 64 20 |le be.if| it did |
|00001090| 6e 6f 74 20 6b 65 65 70 | 20 69 74 73 20 63 6f 6e |not keep| its con|
|000010a0| 74 65 6e 74 73 20 69 6e | 74 61 63 74 3f 20 20 54 |tents in|tact? T|
|000010b0| 68 65 20 67 6f 61 6c 20 | 69 73 20 74 6f 20 6e 6f |he goal |is to no|
|000010c0| 74 0a 69 6e 74 72 6f 64 | 75 63 65 20 61 6e 79 20 |t.introd|uce any |
|000010d0| 65 78 74 72 61 20 73 74 | 61 74 65 20 69 6e 20 74 |extra st|ate in t|
|000010e0| 68 65 20 70 72 6f 74 6f | 63 6f 6c 20 69 74 73 65 |he proto|col itse|
|000010f0| 6c 66 2e 20 20 41 6e 6f | 74 68 65 72 20 77 61 79 |lf. Ano|ther way|
|00001100| 20 74 6f 0a 73 69 6d 70 | 6c 69 66 79 20 72 65 63 | to.simp|lify rec|
|00001110| 6f 76 65 72 79 20 69 73 | 20 62 79 20 6d 61 6b 69 |overy is| by maki|
|00001120| 6e 67 20 6f 70 65 72 61 | 74 69 6f 6e 73 20 22 69 |ng opera|tions "i|
|00001130| 64 65 6d 70 6f 74 65 6e | 74 22 20 77 68 65 6e 65 |dempoten|t" whene|
|00001140| 76 65 72 0a 70 6f 73 73 | 69 62 6c 65 20 28 73 6f |ver.poss|ible (so|
|00001150| 20 74 68 61 74 20 74 68 | 65 79 20 63 61 6e 20 70 | that th|ey can p|
|00001160| 6f 74 65 6e 74 69 61 6c | 6c 79 20 62 65 20 72 65 |otential|ly be re|
|00001170| 70 65 61 74 65 64 29 2e | 0a 58 2e 4e 48 20 31 0a |peated).|.X.NH 1.|
|00001180| 5c 26 4e 46 53 20 50 72 | 6f 74 6f 63 6f 6c 20 44 |\&NFS Pr|otocol D|
|00001190| 65 66 69 6e 69 74 69 6f | 6e 0a 58 2e 49 58 20 4e |efinitio|n.X.IX N|
|000011a0| 46 53 20 22 70 72 6f 74 | 6f 63 6f 6c 20 64 65 66 |FS "prot|ocol def|
|000011b0| 69 6e 69 74 69 6f 6e 22 | 0a 58 2e 49 58 20 4e 46 |inition"|.X.IX NF|
|000011c0| 53 20 70 72 6f 74 6f 63 | 6f 6c 0a 58 2e 4c 50 0a |S protoc|ol.X.LP.|
|000011d0| 53 65 72 76 65 72 73 20 | 68 61 76 65 20 62 65 65 |Servers |have bee|
|000011e0| 6e 20 6b 6e 6f 77 6e 20 | 74 6f 20 63 68 61 6e 67 |n known |to chang|
|000011f0| 65 20 6f 76 65 72 20 74 | 69 6d 65 2c 20 61 6e 64 |e over t|ime, and|
|00001200| 20 73 6f 20 63 61 6e 20 | 74 68 65 0a 70 72 6f 74 | so can |the.prot|
|00001210| 6f 63 6f 6c 20 74 68 61 | 74 20 74 68 65 79 20 75 |ocol tha|t they u|
|00001220| 73 65 2e 20 53 6f 20 52 | 50 43 20 70 72 6f 76 69 |se. So R|PC provi|
|00001230| 64 65 73 20 61 20 76 65 | 72 73 69 6f 6e 20 6e 75 |des a ve|rsion nu|
|00001240| 6d 62 65 72 20 77 69 74 | 68 20 65 61 63 68 0a 52 |mber wit|h each.R|
|00001250| 50 43 20 72 65 71 75 65 | 73 74 2e 20 54 68 69 73 |PC reque|st. This|
|00001260| 20 52 46 43 20 64 65 73 | 63 72 69 62 65 73 20 76 | RFC des|cribes v|
|00001270| 65 72 73 69 6f 6e 20 74 | 77 6f 20 6f 66 20 74 68 |ersion t|wo of th|
|00001280| 65 20 4e 46 53 20 70 72 | 6f 74 6f 63 6f 6c 2e 0a |e NFS pr|otocol..|
|00001290| 45 76 65 6e 20 69 6e 20 | 74 68 65 20 73 65 63 6f |Even in |the seco|
|000012a0| 6e 64 20 76 65 72 73 69 | 6f 6e 2c 20 74 68 65 72 |nd versi|on, ther|
|000012b0| 65 20 61 72 65 20 76 61 | 72 69 6f 75 73 20 6f 62 |e are va|rious ob|
|000012c0| 73 6f 6c 65 74 65 20 70 | 72 6f 63 65 64 75 72 65 |solete p|rocedure|
|000012d0| 73 0a 61 6e 64 20 70 61 | 72 61 6d 65 74 65 72 73 |s.and pa|rameters|
|000012e0| 2c 20 77 68 69 63 68 20 | 77 69 6c 6c 20 62 65 20 |, which |will be |
|000012f0| 72 65 6d 6f 76 65 64 20 | 69 6e 20 6c 61 74 65 72 |removed |in later|
|00001300| 20 76 65 72 73 69 6f 6e | 73 2e 20 41 6e 20 52 46 | version|s. An RF|
|00001310| 43 0a 66 6f 72 20 76 65 | 72 73 69 6f 6e 20 74 68 |C.for ve|rsion th|
|00001320| 72 65 65 20 6f 66 20 74 | 68 65 20 4e 46 53 20 70 |ree of t|he NFS p|
|00001330| 72 6f 74 6f 63 6f 6c 20 | 69 73 20 63 75 72 72 65 |rotocol |is curre|
|00001340| 6e 74 6c 79 20 75 6e 64 | 65 72 0a 70 72 65 70 61 |ntly und|er.prepa|
|00001350| 72 61 74 69 6f 6e 2e 0a | 58 2e 4e 48 20 32 0a 5c |ration..|X.NH 2.\|
|00001360| 26 46 69 6c 65 20 53 79 | 73 74 65 6d 20 4d 6f 64 |&File Sy|stem Mod|
|00001370| 65 6c 0a 58 2e 49 58 20 | 22 66 69 6c 65 20 73 79 |el.X.IX |"file sy|
|00001380| 73 74 65 6d 20 6d 6f 64 | 65 6c 22 0a 58 2e 4c 50 |stem mod|el".X.LP|
|00001390| 0a 4e 46 53 20 61 73 73 | 75 6d 65 73 20 61 20 66 |.NFS ass|umes a f|
|000013a0| 69 6c 65 20 73 79 73 74 | 65 6d 20 74 68 61 74 20 |ile syst|em that |
|000013b0| 69 73 20 68 69 65 72 61 | 72 63 68 69 63 61 6c 2c |is hiera|rchical,|
|000013c0| 20 77 69 74 68 20 64 69 | 72 65 63 74 6f 72 69 65 | with di|rectorie|
|000013d0| 73 20 61 73 0a 61 6c 6c | 20 62 75 74 20 74 68 65 |s as.all| but the|
|000013e0| 20 62 6f 74 74 6f 6d 2d | 6c 65 76 65 6c 20 66 69 | bottom-|level fi|
|000013f0| 6c 65 73 2e 20 20 45 61 | 63 68 20 65 6e 74 72 79 |les. Ea|ch entry|
|00001400| 20 69 6e 20 61 20 64 69 | 72 65 63 74 6f 72 79 20 | in a di|rectory |
|00001410| 28 66 69 6c 65 2c 0a 64 | 69 72 65 63 74 6f 72 79 |(file,.d|irectory|
|00001420| 2c 20 64 65 76 69 63 65 | 2c 20 65 74 63 2e 29 20 |, device|, etc.) |
|00001430| 20 68 61 73 20 61 20 73 | 74 72 69 6e 67 20 6e 61 | has a s|tring na|
|00001440| 6d 65 2e 20 20 44 69 66 | 66 65 72 65 6e 74 20 6f |me. Dif|ferent o|
|00001450| 70 65 72 61 74 69 6e 67 | 0a 73 79 73 74 65 6d 73 |perating|.systems|
|00001460| 20 6d 61 79 20 68 61 76 | 65 20 72 65 73 74 72 69 | may hav|e restri|
|00001470| 63 74 69 6f 6e 73 20 6f | 6e 20 74 68 65 20 64 65 |ctions o|n the de|
|00001480| 70 74 68 20 6f 66 20 74 | 68 65 20 74 72 65 65 20 |pth of t|he tree |
|00001490| 6f 72 20 74 68 65 20 6e | 61 6d 65 73 0a 75 73 65 |or the n|ames.use|
|000014a0| 64 2c 20 61 73 20 77 65 | 6c 6c 20 61 73 20 75 73 |d, as we|ll as us|
|000014b0| 69 6e 67 20 64 69 66 66 | 65 72 65 6e 74 20 73 79 |ing diff|erent sy|
|000014c0| 6e 74 61 78 20 74 6f 20 | 72 65 70 72 65 73 65 6e |ntax to |represen|
|000014d0| 74 20 74 68 65 20 22 70 | 61 74 68 6e 61 6d 65 22 |t the "p|athname"|
|000014e0| 2c 0a 77 68 69 63 68 20 | 69 73 20 74 68 65 20 63 |,.which |is the c|
|000014f0| 6f 6e 63 61 74 65 6e 61 | 74 69 6f 6e 20 6f 66 20 |oncatena|tion of |
|00001500| 61 6c 6c 20 74 68 65 20 | 22 63 6f 6d 70 6f 6e 65 |all the |"compone|
|00001510| 6e 74 73 22 20 28 64 69 | 72 65 63 74 6f 72 79 20 |nts" (di|rectory |
|00001520| 61 6e 64 0a 66 69 6c 65 | 20 6e 61 6d 65 73 29 20 |and.file| names) |
|00001530| 69 6e 20 74 68 65 20 6e | 61 6d 65 2e 20 20 41 20 |in the n|ame. A |
|00001540| 22 66 69 6c 65 20 73 79 | 73 74 65 6d 22 20 69 73 |"file sy|stem" is|
|00001550| 20 61 20 74 72 65 65 20 | 6f 6e 20 61 20 73 69 6e | a tree |on a sin|
|00001560| 67 6c 65 0a 73 65 72 76 | 65 72 20 28 75 73 75 61 |gle.serv|er (usua|
|00001570| 6c 6c 79 20 61 20 73 69 | 6e 67 6c 65 20 64 69 73 |lly a si|ngle dis|
|00001580| 6b 20 6f 72 20 70 68 79 | 73 69 63 61 6c 20 70 61 |k or phy|sical pa|
|00001590| 72 74 69 74 69 6f 6e 29 | 20 77 69 74 68 20 61 20 |rtition)| with a |
|000015a0| 73 70 65 63 69 66 69 65 | 64 0a 22 72 6f 6f 74 22 |specifie|d."root"|
|000015b0| 2e 20 20 53 6f 6d 65 20 | 6f 70 65 72 61 74 69 6e |. Some |operatin|
|000015c0| 67 20 73 79 73 74 65 6d | 73 20 70 72 6f 76 69 64 |g system|s provid|
|000015d0| 65 20 61 20 22 6d 6f 75 | 6e 74 22 20 6f 70 65 72 |e a "mou|nt" oper|
|000015e0| 61 74 69 6f 6e 20 74 6f | 20 6d 61 6b 65 0a 61 6c |ation to| make.al|
|000015f0| 6c 20 66 69 6c 65 20 73 | 79 73 74 65 6d 73 20 61 |l file s|ystems a|
|00001600| 70 70 65 61 72 20 61 73 | 20 61 20 73 69 6e 67 6c |ppear as| a singl|
|00001610| 65 20 74 72 65 65 2c 20 | 77 68 69 6c 65 20 6f 74 |e tree, |while ot|
|00001620| 68 65 72 73 20 6d 61 69 | 6e 74 61 69 6e 20 61 0a |hers mai|ntain a.|
|00001630| 22 66 6f 72 65 73 74 22 | 20 6f 66 20 66 69 6c 65 |"forest"| of file|
|00001640| 20 73 79 73 74 65 6d 73 | 2e 20 20 46 69 6c 65 73 | systems|. Files|
|00001650| 20 61 72 65 20 75 6e 73 | 74 72 75 63 74 75 72 65 | are uns|tructure|
|00001660| 64 20 73 74 72 65 61 6d | 73 20 6f 66 0a 75 6e 69 |d stream|s of.uni|
|00001670| 6e 74 65 72 70 72 65 74 | 65 64 20 62 79 74 65 73 |nterpret|ed bytes|
|00001680| 2e 20 20 56 65 72 73 69 | 6f 6e 20 33 20 6f 66 20 |. Versi|on 3 of |
|00001690| 4e 46 53 20 75 73 65 73 | 20 61 20 73 6c 69 67 68 |NFS uses| a sligh|
|000016a0| 74 6c 79 20 6d 6f 72 65 | 20 67 65 6e 65 72 61 6c |tly more| general|
|000016b0| 0a 66 69 6c 65 20 73 79 | 73 74 65 6d 20 6d 6f 64 |.file sy|stem mod|
|000016c0| 65 6c 2e 0a 58 2e 4c 50 | 0a 4e 46 53 20 6c 6f 6f |el..X.LP|.NFS loo|
|000016d0| 6b 73 20 75 70 20 6f 6e | 65 20 63 6f 6d 70 6f 6e |ks up on|e compon|
|000016e0| 65 6e 74 20 6f 66 20 61 | 20 70 61 74 68 6e 61 6d |ent of a| pathnam|
|000016f0| 65 20 61 74 20 61 20 74 | 69 6d 65 2e 20 20 49 74 |e at a t|ime. It|
|00001700| 20 6d 61 79 20 6e 6f 74 | 20 62 65 0a 6f 62 76 69 | may not| be.obvi|
|00001710| 6f 75 73 20 77 68 79 20 | 69 74 20 64 6f 65 73 20 |ous why |it does |
|00001720| 6e 6f 74 20 6a 75 73 74 | 20 74 61 6b 65 20 74 68 |not just| take th|
|00001730| 65 20 77 68 6f 6c 65 20 | 70 61 74 68 6e 61 6d 65 |e whole |pathname|
|00001740| 2c 20 74 72 61 69 70 73 | 65 20 64 6f 77 6e 0a 74 |, traips|e down.t|
|00001750| 68 65 20 64 69 72 65 63 | 74 6f 72 69 65 73 2c 20 |he direc|tories, |
|00001760| 61 6e 64 20 72 65 74 75 | 72 6e 20 61 20 66 69 6c |and retu|rn a fil|
|00001770| 65 20 68 61 6e 64 6c 65 | 20 77 68 65 6e 20 69 74 |e handle| when it|
|00001780| 20 69 73 20 64 6f 6e 65 | 2e 20 20 54 68 65 72 65 | is done|. There|
|00001790| 20 61 72 65 0a 73 65 76 | 65 72 61 6c 20 67 6f 6f | are.sev|eral goo|
|000017a0| 64 20 72 65 61 73 6f 6e | 73 20 6e 6f 74 20 74 6f |d reason|s not to|
|000017b0| 20 64 6f 20 74 68 69 73 | 2e 20 20 46 69 72 73 74 | do this|. First|
|000017c0| 2c 20 70 61 74 68 6e 61 | 6d 65 73 20 6e 65 65 64 |, pathna|mes need|
|000017d0| 0a 73 65 70 61 72 61 74 | 6f 72 73 20 62 65 74 77 |.separat|ors betw|
|000017e0| 65 65 6e 20 74 68 65 20 | 64 69 72 65 63 74 6f 72 |een the |director|
|000017f0| 79 20 63 6f 6d 70 6f 6e | 65 6e 74 73 2c 20 61 6e |y compon|ents, an|
|00001800| 64 20 64 69 66 66 65 72 | 65 6e 74 20 6f 70 65 72 |d differ|ent oper|
|00001810| 61 74 69 6e 67 0a 73 79 | 73 74 65 6d 73 20 75 73 |ating.sy|stems us|
|00001820| 65 20 64 69 66 66 65 72 | 65 6e 74 20 73 65 70 61 |e differ|ent sepa|
|00001830| 72 61 74 6f 72 73 2e 20 | 20 57 65 20 63 6f 75 6c |rators. | We coul|
|00001840| 64 20 64 65 66 69 6e 65 | 20 61 20 4e 65 74 77 6f |d define| a Netwo|
|00001850| 72 6b 20 53 74 61 6e 64 | 61 72 64 0a 50 61 74 68 |rk Stand|ard.Path|
|00001860| 6e 61 6d 65 20 52 65 70 | 72 65 73 65 6e 74 61 74 |name Rep|resentat|
|00001870| 69 6f 6e 2c 20 62 75 74 | 20 74 68 65 6e 20 65 76 |ion, but| then ev|
|00001880| 65 72 79 20 70 61 74 68 | 6e 61 6d 65 20 77 6f 75 |ery path|name wou|
|00001890| 6c 64 20 68 61 76 65 20 | 74 6f 20 62 65 0a 70 61 |ld have |to be.pa|
|000018a0| 72 73 65 64 20 61 6e 64 | 20 63 6f 6e 76 65 72 74 |rsed and| convert|
|000018b0| 65 64 20 61 74 20 65 61 | 63 68 20 65 6e 64 2e 20 |ed at ea|ch end. |
|000018c0| 20 4f 74 68 65 72 20 69 | 73 73 75 65 73 20 61 72 | Other i|ssues ar|
|000018d0| 65 20 64 69 73 63 75 73 | 73 65 64 20 69 6e 0a 5c |e discus|sed in.\|
|000018e0| 66 49 4e 46 53 20 49 6d | 70 6c 65 6d 65 6e 74 61 |fINFS Im|plementa|
|000018f0| 74 69 6f 6e 20 49 73 73 | 75 65 73 5c 66 50 20 62 |tion Iss|ues\fP b|
|00001900| 65 6c 6f 77 2e 0a 58 2e | 4c 50 0a 41 6c 74 68 6f |elow..X.|LP.Altho|
|00001910| 75 67 68 20 66 69 6c 65 | 73 20 61 6e 64 20 64 69 |ugh file|s and di|
|00001920| 72 65 63 74 6f 72 69 65 | 73 20 61 72 65 20 73 69 |rectorie|s are si|
|00001930| 6d 69 6c 61 72 20 6f 62 | 6a 65 63 74 73 20 69 6e |milar ob|jects in|
|00001940| 20 6d 61 6e 79 20 77 61 | 79 73 2c 0a 64 69 66 66 | many wa|ys,.diff|
|00001950| 65 72 65 6e 74 20 70 72 | 6f 63 65 64 75 72 65 73 |erent pr|ocedures|
|00001960| 20 61 72 65 20 75 73 65 | 64 20 74 6f 20 72 65 61 | are use|d to rea|
|00001970| 64 20 64 69 72 65 63 74 | 6f 72 69 65 73 20 61 6e |d direct|ories an|
|00001980| 64 20 66 69 6c 65 73 2e | 20 20 54 68 69 73 0a 70 |d files.| This.p|
|00001990| 72 6f 76 69 64 65 73 20 | 61 20 6e 65 74 77 6f 72 |rovides |a networ|
|000019a0| 6b 20 73 74 61 6e 64 61 | 72 64 20 66 6f 72 6d 61 |k standa|rd forma|
|000019b0| 74 20 66 6f 72 20 72 65 | 70 72 65 73 65 6e 74 69 |t for re|presenti|
|000019c0| 6e 67 20 64 69 72 65 63 | 74 6f 72 69 65 73 2e 20 |ng direc|tories. |
|000019d0| 20 54 68 65 0a 73 61 6d | 65 20 61 72 67 75 6d 65 | The.sam|e argume|
|000019e0| 6e 74 20 61 73 20 61 62 | 6f 76 65 20 63 6f 75 6c |nt as ab|ove coul|
|000019f0| 64 20 68 61 76 65 20 62 | 65 65 6e 20 75 73 65 64 |d have b|een used|
|00001a00| 20 74 6f 20 6a 75 73 74 | 69 66 79 20 61 20 70 72 | to just|ify a pr|
|00001a10| 6f 63 65 64 75 72 65 0a | 74 68 61 74 20 72 65 74 |ocedure.|that ret|
|00001a20| 75 72 6e 73 20 6f 6e 6c | 79 20 6f 6e 65 20 64 69 |urns onl|y one di|
|00001a30| 72 65 63 74 6f 72 79 20 | 65 6e 74 72 79 20 70 65 |rectory |entry pe|
|00001a40| 72 20 63 61 6c 6c 2e 20 | 20 54 68 65 20 70 72 6f |r call. | The pro|
|00001a50| 62 6c 65 6d 20 69 73 0a | 65 66 66 69 63 69 65 6e |blem is.|efficien|
|00001a60| 63 79 2e 20 20 44 69 72 | 65 63 74 6f 72 69 65 73 |cy. Dir|ectories|
|00001a70| 20 63 61 6e 20 63 6f 6e | 74 61 69 6e 20 6d 61 6e | can con|tain man|
|00001a80| 79 20 65 6e 74 72 69 65 | 73 2c 20 61 6e 64 20 61 |y entrie|s, and a|
|00001a90| 20 72 65 6d 6f 74 65 20 | 63 61 6c 6c 0a 74 6f 20 | remote |call.to |
|00001aa0| 72 65 74 75 72 6e 20 65 | 61 63 68 20 77 6f 75 6c |return e|ach woul|
|00001ab0| 64 20 62 65 20 6a 75 73 | 74 20 74 6f 6f 20 73 6c |d be jus|t too sl|
|00001ac0| 6f 77 2e 0a 58 2e 4e 48 | 20 32 0a 5c 26 52 50 43 |ow..X.NH| 2.\&RPC|
|00001ad0| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 0a 58 2e 49 | Informa|tion.X.I|
|00001ae0| 58 20 22 52 50 43 20 69 | 6e 66 6f 72 6d 61 74 69 |X "RPC i|nformati|
|00001af0| 6f 6e 22 0a 58 2e 49 50 | 20 5c 66 49 41 75 74 68 |on".X.IP| \fIAuth|
|00001b00| 65 6e 74 69 63 61 74 69 | 6f 6e 5c 66 50 0a 54 68 |enticati|on\fP.Th|
|00001b10| 65 20 20 20 4e 46 53 20 | 20 73 65 72 76 69 63 65 |e NFS | service|
|00001b20| 20 75 73 65 73 20 0a 58 | 2e 49 20 41 55 54 48 5f | uses .X|.I AUTH_|
|00001b30| 55 4e 49 58 20 2c 0a 58 | 2e 49 20 41 55 54 48 5f |UNIX ,.X|.I AUTH_|
|00001b40| 44 45 53 20 2c 0a 6f 72 | 20 0a 58 2e 49 20 41 55 |DES ,.or| .X.I AU|
|00001b50| 54 48 5f 53 48 4f 52 54 | 20 0a 73 74 79 6c 65 0a |TH_SHORT| .style.|
|00001b60| 61 75 74 68 65 6e 74 69 | 63 61 74 69 6f 6e 2c 20 |authenti|cation, |
|00001b70| 65 78 63 65 70 74 20 69 | 6e 20 20 74 68 65 20 20 |except i|n the |
|00001b80| 4e 55 4c 4c 20 70 72 6f | 63 65 64 75 72 65 20 77 |NULL pro|cedure w|
|00001b90| 68 65 72 65 20 20 20 0a | 58 2e 49 20 41 55 54 48 |here .|X.I AUTH|
|00001ba0| 5f 4e 4f 4e 45 20 0a 69 | 73 20 61 6c 73 6f 20 61 |_NONE .i|s also a|
|00001bb0| 6c 6c 6f 77 65 64 2e 0a | 58 2e 49 50 20 22 5c 66 |llowed..|X.IP "\f|
|00001bc0| 49 54 72 61 6e 73 70 6f | 72 74 20 50 72 6f 74 6f |ITranspo|rt Proto|
|00001bd0| 63 6f 6c 73 5c 66 50 22 | 0a 4e 46 53 20 63 75 72 |cols\fP"|.NFS cur|
|00001be0| 72 65 6e 74 6c 79 20 69 | 73 20 73 75 70 70 6f 72 |rently i|s suppor|
|00001bf0| 74 65 64 20 6f 6e 20 55 | 44 50 2f 49 50 20 6f 6e |ted on U|DP/IP on|
|00001c00| 6c 79 2e 20 20 0a 58 2e | 49 50 20 22 5c 66 49 50 |ly. .X.|IP "\fIP|
|00001c10| 6f 72 74 20 4e 75 6d 62 | 65 72 5c 66 50 22 0a 54 |ort Numb|er\fP".T|
|00001c20| 68 65 20 4e 46 53 20 70 | 72 6f 74 6f 63 6f 6c 20 |he NFS p|rotocol |
|00001c30| 63 75 72 72 65 6e 74 6c | 79 20 75 73 65 73 20 74 |currentl|y uses t|
|00001c40| 68 65 20 55 44 50 20 70 | 6f 72 74 20 6e 75 6d 62 |he UDP p|ort numb|
|00001c50| 65 72 20 32 30 34 39 2e | 20 20 54 68 69 73 20 69 |er 2049.| This i|
|00001c60| 73 0a 6e 6f 74 20 61 6e | 20 6f 66 66 69 63 69 61 |s.not an| officia|
|00001c70| 6c 6c 79 20 61 73 73 69 | 67 6e 65 64 20 70 6f 72 |lly assi|gned por|
|00001c80| 74 2c 20 73 6f 20 20 6c | 61 74 65 72 20 76 65 72 |t, so l|ater ver|
|00001c90| 73 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 70 72 6f |sions of| the pro|
|00001ca0| 74 6f 63 6f 6c 0a 75 73 | 65 20 74 68 65 20 60 60 |tocol.us|e the ``|
|00001cb0| 50 6f 72 74 6d 61 70 70 | 69 6e 67 27 27 20 66 61 |Portmapp|ing'' fa|
|00001cc0| 63 69 6c 69 74 79 20 6f | 66 20 52 50 43 2e 0a 58 |cility o|f RPC..X|
|00001cd0| 2e 4e 48 20 32 0a 5c 26 | 53 69 7a 65 73 20 6f 66 |.NH 2.\&|Sizes of|
|00001ce0| 20 58 44 52 20 53 74 72 | 75 63 74 75 72 65 73 0a | XDR Str|uctures.|
|00001cf0| 58 2e 49 58 20 22 58 44 | 52 20 73 74 72 75 63 74 |X.IX "XD|R struct|
|00001d00| 75 72 65 20 73 69 7a 65 | 73 22 0a 58 2e 4c 50 0a |ure size|s".X.LP.|
|00001d10| 54 68 65 73 65 20 61 72 | 65 20 74 68 65 20 73 69 |These ar|e the si|
|00001d20| 7a 65 73 2c 20 67 69 76 | 65 6e 20 69 6e 20 64 65 |zes, giv|en in de|
|00001d30| 63 69 6d 61 6c 20 62 79 | 74 65 73 2c 20 6f 66 20 |cimal by|tes, of |
|00001d40| 76 61 72 69 6f 75 73 20 | 58 44 52 0a 73 74 72 75 |various |XDR.stru|
|00001d50| 63 74 75 72 65 73 20 75 | 73 65 64 20 69 6e 20 74 |ctures u|sed in t|
|00001d60| 68 65 20 70 72 6f 74 6f | 63 6f 6c 3a 0a 58 2e 44 |he proto|col:.X.D|
|00001d70| 53 0a 2f 2a 20 5c 66 49 | 54 68 65 20 6d 61 78 69 |S./* \fI|The maxi|
|00001d80| 6d 75 6d 20 6e 75 6d 62 | 65 72 20 6f 66 20 62 79 |mum numb|er of by|
|00001d90| 74 65 73 20 6f 66 20 64 | 61 74 61 20 69 6e 20 61 |tes of d|ata in a|
|00001da0| 20 52 45 41 44 20 6f 72 | 20 57 52 49 54 45 20 72 | READ or| WRITE r|
|00001db0| 65 71 75 65 73 74 5c 66 | 50 20 20 2a 2f 0a 63 6f |equest\f|P */.co|
|00001dc0| 6e 73 74 20 4d 41 58 44 | 41 54 41 20 3d 20 38 31 |nst MAXD|ATA = 81|
|00001dd0| 39 32 3b 0a 0a 2f 2a 20 | 5c 66 49 54 68 65 20 6d |92;../* |\fIThe m|
|00001de0| 61 78 69 6d 75 6d 20 6e | 75 6d 62 65 72 20 6f 66 |aximum n|umber of|
|00001df0| 20 62 79 74 65 73 20 69 | 6e 20 61 20 70 61 74 68 | bytes i|n a path|
|00001e00| 6e 61 6d 65 20 61 72 67 | 75 6d 65 6e 74 5c 66 50 |name arg|ument\fP|
|00001e10| 20 2a 2f 0a 63 6f 6e 73 | 74 20 4d 41 58 50 41 54 | */.cons|t MAXPAT|
|00001e20| 48 4c 45 4e 20 3d 20 31 | 30 32 34 3b 0a 0a 2f 2a |HLEN = 1|024;../*|
|00001e30| 20 5c 66 49 54 68 65 20 | 6d 61 78 69 6d 75 6d 20 | \fIThe |maximum |
|00001e40| 6e 75 6d 62 65 72 20 6f | 66 20 62 79 74 65 73 20 |number o|f bytes |
|00001e50| 69 6e 20 61 20 66 69 6c | 65 20 6e 61 6d 65 20 61 |in a fil|e name a|
|00001e60| 72 67 75 6d 65 6e 74 5c | 66 50 20 2a 2f 0a 63 6f |rgument\|fP */.co|
|00001e70| 6e 73 74 20 4d 41 58 4e | 41 4d 4c 45 4e 20 3d 20 |nst MAXN|AMLEN = |
|00001e80| 32 35 35 3b 0a 0a 2f 2a | 20 5c 66 49 54 68 65 20 |255;../*| \fIThe |
|00001e90| 73 69 7a 65 20 69 6e 20 | 62 79 74 65 73 20 6f 66 |size in |bytes of|
|00001ea0| 20 74 68 65 20 6f 70 61 | 71 75 65 20 22 63 6f 6f | the opa|que "coo|
|00001eb0| 6b 69 65 22 20 70 61 73 | 73 65 64 20 62 79 20 52 |kie" pas|sed by R|
|00001ec0| 45 41 44 44 49 52 5c 66 | 50 20 2a 2f 0a 63 6f 6e |EADDIR\f|P */.con|
|00001ed0| 73 74 20 43 4f 4f 4b 49 | 45 53 49 5a 45 20 20 3d |st COOKI|ESIZE =|
|00001ee0| 20 34 3b 0a 0a 2f 2a 20 | 5c 66 49 54 68 65 20 73 | 4;../* |\fIThe s|
|00001ef0| 69 7a 65 20 69 6e 20 62 | 79 74 65 73 20 6f 66 20 |ize in b|ytes of |
|00001f00| 74 68 65 20 6f 70 61 71 | 75 65 20 66 69 6c 65 20 |the opaq|ue file |
|00001f10| 68 61 6e 64 6c 65 5c 66 | 50 20 2a 2f 0a 63 6f 6e |handle\f|P */.con|
|00001f20| 73 74 20 46 48 53 49 5a | 45 20 3d 20 33 32 3b 0a |st FHSIZ|E = 32;.|
|00001f30| 58 2e 44 45 0a 58 2e 4e | 48 20 32 0a 5c 26 42 61 |X.DE.X.N|H 2.\&Ba|
|00001f40| 73 69 63 20 44 61 74 61 | 20 54 79 70 65 73 0a 58 |sic Data| Types.X|
|00001f50| 2e 49 58 20 22 4e 46 53 | 20 64 61 74 61 20 74 79 |.IX "NFS| data ty|
|00001f60| 70 65 73 22 0a 58 2e 49 | 58 20 4e 46 53 20 22 62 |pes".X.I|X NFS "b|
|00001f70| 61 73 69 63 20 64 61 74 | 61 20 74 79 70 65 73 22 |asic dat|a types"|
|00001f80| 0a 58 2e 4c 50 0a 54 68 | 65 20 66 6f 6c 6c 6f 77 |.X.LP.Th|e follow|
|00001f90| 69 6e 67 20 58 44 52 20 | 20 64 65 66 69 6e 69 74 |ing XDR | definit|
|00001fa0| 69 6f 6e 73 20 61 72 65 | 20 62 61 73 69 63 20 20 |ions are| basic |
|00001fb0| 73 74 72 75 63 74 75 72 | 65 73 20 61 6e 64 20 74 |structur|es and t|
|00001fc0| 79 70 65 73 20 75 73 65 | 64 0a 69 6e 20 6f 74 68 |ypes use|d.in oth|
|00001fd0| 65 72 20 73 74 72 75 63 | 74 75 72 65 73 20 64 65 |er struc|tures de|
|00001fe0| 73 63 72 69 62 65 64 20 | 66 75 72 74 68 65 72 20 |scribed |further |
|00001ff0| 6f 6e 2e 0a 58 2e 4b 53 | 0a 58 2e 4e 48 20 33 0a |on..X.KS|.X.NH 3.|
|00002000| 5c 26 5c 66 49 73 74 61 | 74 5c 66 50 0a 58 2e 49 |\&\fIsta|t\fP.X.I|
|00002010| 58 20 22 4e 46 53 20 64 | 61 74 61 20 74 79 70 65 |X "NFS d|ata type|
|00002020| 73 22 20 73 74 61 74 20 | 22 22 20 5c 66 49 73 74 |s" stat |"" \fIst|
|00002030| 61 74 5c 66 50 0a 58 2e | 44 53 0a 65 6e 75 6d 20 |at\fP.X.|DS.enum |
|00002040| 73 74 61 74 20 7b 0a 09 | 4e 46 53 5f 4f 4b 20 3d |stat {..|NFS_OK =|
|00002050| 20 30 2c 0a 09 4e 46 53 | 45 52 52 5f 50 45 52 4d | 0,..NFS|ERR_PERM|
|00002060| 3d 31 2c 0a 09 4e 46 53 | 45 52 52 5f 4e 4f 45 4e |=1,..NFS|ERR_NOEN|
|00002070| 54 3d 32 2c 0a 09 4e 46 | 53 45 52 52 5f 49 4f 3d |T=2,..NF|SERR_IO=|
|00002080| 35 2c 0a 09 4e 46 53 45 | 52 52 5f 4e 58 49 4f 3d |5,..NFSE|RR_NXIO=|
|00002090| 36 2c 0a 09 4e 46 53 45 | 52 52 5f 41 43 43 45 53 |6,..NFSE|RR_ACCES|
|000020a0| 3d 31 33 2c 0a 09 4e 46 | 53 45 52 52 5f 45 58 49 |=13,..NF|SERR_EXI|
|000020b0| 53 54 3d 31 37 2c 0a 09 | 4e 46 53 45 52 52 5f 4e |ST=17,..|NFSERR_N|
|000020c0| 4f 44 45 56 3d 31 39 2c | 0a 09 4e 46 53 45 52 52 |ODEV=19,|..NFSERR|
|000020d0| 5f 4e 4f 54 44 49 52 3d | 32 30 2c 0a 09 4e 46 53 |_NOTDIR=|20,..NFS|
|000020e0| 45 52 52 5f 49 53 44 49 | 52 3d 32 31 2c 0a 09 4e |ERR_ISDI|R=21,..N|
|000020f0| 46 53 45 52 52 5f 46 42 | 49 47 3d 32 37 2c 0a 09 |FSERR_FB|IG=27,..|
|00002100| 4e 46 53 45 52 52 5f 4e | 4f 53 50 43 3d 32 38 2c |NFSERR_N|OSPC=28,|
|00002110| 0a 09 4e 46 53 45 52 52 | 5f 52 4f 46 53 3d 33 30 |..NFSERR|_ROFS=30|
|00002120| 2c 0a 09 4e 46 53 45 52 | 52 5f 4e 41 4d 45 54 4f |,..NFSER|R_NAMETO|
|00002130| 4f 4c 4f 4e 47 3d 36 33 | 2c 0a 09 4e 46 53 45 52 |OLONG=63|,..NFSER|
|00002140| 52 5f 4e 4f 54 45 4d 50 | 54 59 3d 36 36 2c 0a 09 |R_NOTEMP|TY=66,..|
|00002150| 4e 46 53 45 52 52 5f 44 | 51 55 4f 54 3d 36 39 2c |NFSERR_D|QUOT=69,|
|00002160| 0a 09 4e 46 53 45 52 52 | 5f 53 54 41 4c 45 3d 37 |..NFSERR|_STALE=7|
|00002170| 30 2c 0a 09 4e 46 53 45 | 52 52 5f 57 46 4c 55 53 |0,..NFSE|RR_WFLUS|
|00002180| 48 3d 39 39 0a 7d 3b 0a | 58 2e 44 45 0a 58 2e 4b |H=99.};.|X.DE.X.K|
|00002190| 45 0a 58 2e 4c 50 0a 54 | 68 65 20 0a 58 2e 49 20 |E.X.LP.T|he .X.I |
|000021a0| 73 74 61 74 20 0a 74 79 | 70 65 20 20 69 73 20 72 |stat .ty|pe is r|
|000021b0| 65 74 75 72 6e 65 64 20 | 77 69 74 68 20 65 76 65 |eturned |with eve|
|000021c0| 72 79 20 20 70 72 6f 63 | 65 64 75 72 65 27 73 20 |ry proc|edure's |
|000021d0| 20 72 65 73 75 6c 74 73 | 2e 20 20 20 41 0a 76 61 | results|. A.va|
|000021e0| 6c 75 65 20 6f 66 20 0a | 58 2e 49 20 4e 46 53 5f |lue of .|X.I NFS_|
|000021f0| 4f 4b 20 0a 69 6e 64 69 | 63 61 74 65 73 20 74 68 |OK .indi|cates th|
|00002200| 61 74 20 74 68 65 20 20 | 63 61 6c 6c 20 63 6f 6d |at the |call com|
|00002210| 70 6c 65 74 65 64 20 73 | 75 63 63 65 73 73 66 75 |pleted s|uccessfu|
|00002220| 6c 6c 79 20 61 6e 64 0a | 74 68 65 20 20 72 65 73 |lly and.|the res|
|00002230| 75 6c 74 73 20 61 72 65 | 20 20 76 61 6c 69 64 2e |ults are| valid.|
|00002240| 20 20 54 68 65 20 20 6f | 74 68 65 72 20 20 76 61 | The o|ther va|
|00002250| 6c 75 65 73 20 69 6e 64 | 69 63 61 74 65 20 20 73 |lues ind|icate s|
|00002260| 6f 6d 65 20 6b 69 6e 64 | 20 6f 66 0a 65 72 72 6f |ome kind| of.erro|
|00002270| 72 20 20 6f 63 63 75 72 | 72 65 64 20 6f 6e 20 74 |r occur|red on t|
|00002280| 68 65 20 20 73 65 72 76 | 65 72 20 20 73 69 64 65 |he serv|er side|
|00002290| 20 20 64 75 72 69 6e 67 | 20 74 68 65 20 73 65 72 | during| the ser|
|000022a0| 76 69 63 69 6e 67 20 20 | 20 6f 66 20 74 68 65 0a |vicing | of the.|
|000022b0| 70 72 6f 63 65 64 75 72 | 65 2e 20 20 54 68 65 20 |procedur|e. The |
|000022c0| 65 72 72 6f 72 20 76 61 | 6c 75 65 73 20 61 72 65 |error va|lues are|
|000022d0| 20 64 65 72 69 76 65 64 | 20 66 72 6f 6d 20 55 4e | derived| from UN|
|000022e0| 49 58 20 65 72 72 6f 72 | 20 6e 75 6d 62 65 72 73 |IX error| numbers|
|000022f0| 2e 0a 58 2e 49 50 20 5c | 66 42 4e 46 53 45 52 52 |..X.IP \|fBNFSERR|
|00002300| 5f 50 45 52 4d 5c 66 50 | 3a 0a 4e 6f 74 20 6f 77 |_PERM\fP|:.Not ow|
|00002310| 6e 65 72 2e 20 20 54 68 | 65 20 63 61 6c 6c 65 72 |ner. Th|e caller|
|00002320| 20 64 6f 65 73 20 6e 6f | 74 20 68 61 76 65 20 63 | does no|t have c|
|00002330| 6f 72 72 65 63 74 20 6f | 77 6e 65 72 73 68 69 70 |orrect o|wnership|
|00002340| 0a 74 6f 20 70 65 72 66 | 6f 72 6d 20 74 68 65 20 |.to perf|orm the |
|00002350| 72 65 71 75 65 73 74 65 | 64 20 6f 70 65 72 61 74 |requeste|d operat|
|00002360| 69 6f 6e 2e 0a 58 2e 49 | 50 20 5c 66 42 4e 46 53 |ion..X.I|P \fBNFS|
|00002370| 45 52 52 5f 4e 4f 45 4e | 54 5c 66 50 3a 0a 4e 6f |ERR_NOEN|T\fP:.No|
|00002380| 20 73 75 63 68 20 66 69 | 6c 65 20 6f 72 20 64 69 | such fi|le or di|
|00002390| 72 65 63 74 6f 72 79 2e | 20 20 20 20 54 68 65 20 |rectory.| The |
|000023a0| 66 69 6c 65 20 6f 72 20 | 64 69 72 65 63 74 6f 72 |file or |director|
|000023b0| 79 0a 73 70 65 63 69 66 | 69 65 64 20 64 6f 65 73 |y.specif|ied does|
|000023c0| 20 6e 6f 74 20 65 78 69 | 73 74 2e 0a 58 2e 49 50 | not exi|st..X.IP|
|000023d0| 20 5c 66 42 4e 46 53 45 | 52 52 5f 49 4f 5c 66 50 | \fBNFSE|RR_IO\fP|
|000023e0| 3a 0a 53 6f 6d 65 20 73 | 6f 72 74 20 6f 66 20 68 |:.Some s|ort of h|
|000023f0| 61 72 64 20 20 65 72 72 | 6f 72 20 6f 63 63 75 72 |ard err|or occur|
|00002400| 72 65 64 20 77 68 65 6e | 20 74 68 65 20 6f 70 65 |red when| the ope|
|00002410| 72 61 74 69 6f 6e 20 77 | 61 73 0a 69 6e 20 70 72 |ration w|as.in pr|
|00002420| 6f 67 72 65 73 73 2e 20 | 20 54 68 69 73 20 63 6f |ogress. | This co|
|00002430| 75 6c 64 20 62 65 20 61 | 20 64 69 73 6b 20 65 72 |uld be a| disk er|
|00002440| 72 6f 72 2c 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 |ror, for| example|
|00002450| 2e 0a 58 2e 49 50 20 5c | 66 42 4e 46 53 45 52 52 |..X.IP \|fBNFSERR|
|00002460| 5f 4e 58 49 4f 5c 66 50 | 3a 0a 4e 6f 20 73 75 63 |_NXIO\fP|:.No suc|
|00002470| 68 20 64 65 76 69 63 65 | 20 6f 72 20 61 64 64 72 |h device| or addr|
|00002480| 65 73 73 2e 0a 58 2e 49 | 50 20 5c 66 42 4e 46 53 |ess..X.I|P \fBNFS|
|00002490| 45 52 52 5f 41 43 43 45 | 53 5c 66 50 3a 0a 50 65 |ERR_ACCE|S\fP:.Pe|
|000024a0| 72 6d 69 73 73 69 6f 6e | 20 20 64 65 6e 69 65 64 |rmission| denied|
|000024b0| 2e 20 20 54 68 65 20 20 | 63 61 6c 6c 65 72 20 64 |. The |caller d|
|000024c0| 6f 65 73 20 20 6e 6f 74 | 20 20 68 61 76 65 20 74 |oes not| have t|
|000024d0| 68 65 0a 63 6f 72 72 65 | 63 74 20 70 65 72 6d 69 |he.corre|ct permi|
|000024e0| 73 73 69 6f 6e 20 74 6f | 20 70 65 72 66 6f 72 6d |ssion to| perform|
|000024f0| 20 74 68 65 20 72 65 71 | 75 65 73 74 65 64 20 6f | the req|uested o|
|00002500| 70 65 72 61 74 69 6f 6e | 2e 0a 58 2e 49 50 20 5c |peration|..X.IP \|
|00002510| 66 42 4e 46 53 45 52 52 | 5f 45 58 49 53 54 5c 66 |fBNFSERR|_EXIST\f|
|00002520| 50 3a 0a 46 69 6c 65 20 | 65 78 69 73 74 73 2e 20 |P:.File |exists. |
|00002530| 20 54 68 65 20 66 69 6c | 65 20 73 70 65 63 69 66 | The fil|e specif|
|00002540| 69 65 64 20 61 6c 72 65 | 61 64 79 20 65 78 69 73 |ied alre|ady exis|
|00002550| 74 73 2e 0a 58 2e 49 50 | 20 5c 66 42 4e 46 53 45 |ts..X.IP| \fBNFSE|
|00002560| 52 52 5f 4e 4f 44 45 56 | 5c 66 50 3a 0a 4e 6f 20 |RR_NODEV|\fP:.No |
|00002570| 73 75 63 68 20 64 65 76 | 69 63 65 2e 0a 58 2e 49 |such dev|ice..X.I|
|00002580| 50 20 5c 66 42 4e 46 53 | 45 52 52 5f 4e 4f 54 44 |P \fBNFS|ERR_NOTD|
|00002590| 49 52 5c 66 50 3a 0a 4e | 6f 74 20 20 20 61 20 20 |IR\fP:.N|ot a |
|000025a0| 64 69 72 65 63 74 6f 72 | 79 2e 20 20 20 20 54 68 |director|y. Th|
|000025b0| 65 20 20 63 61 6c 6c 65 | 72 20 20 73 70 65 63 69 |e calle|r speci|
|000025c0| 66 69 65 64 20 20 20 61 | 0a 6e 6f 6e 2d 64 69 72 |fied a|.non-dir|
|000025d0| 65 63 74 6f 72 79 20 69 | 6e 20 61 20 64 69 72 65 |ectory i|n a dire|
|000025e0| 63 74 6f 72 79 20 6f 70 | 65 72 61 74 69 6f 6e 2e |ctory op|eration.|
|000025f0| 0a 58 2e 49 50 20 5c 66 | 42 4e 46 53 45 52 52 5f |.X.IP \f|BNFSERR_|
|00002600| 49 53 44 49 52 5c 66 50 | 3a 0a 49 73 20 61 20 64 |ISDIR\fP|:.Is a d|
|00002610| 69 72 65 63 74 6f 72 79 | 2e 20 20 54 68 65 20 63 |irectory|. The c|
|00002620| 61 6c 6c 65 72 20 73 70 | 65 63 69 66 69 65 64 20 |aller sp|ecified |
|00002630| 20 61 20 64 69 72 65 63 | 74 6f 72 79 20 69 6e 0a | a direc|tory in.|
|00002640| 61 20 6e 6f 6e 2d 20 64 | 69 72 65 63 74 6f 72 79 |a non- d|irectory|
|00002650| 20 6f 70 65 72 61 74 69 | 6f 6e 2e 0a 58 2e 49 50 | operati|on..X.IP|
|00002660| 20 5c 66 42 4e 46 53 45 | 52 52 5f 46 42 49 47 5c | \fBNFSE|RR_FBIG\|
|00002670| 66 50 3a 0a 46 69 6c 65 | 20 74 6f 6f 20 6c 61 72 |fP:.File| too lar|
|00002680| 67 65 2e 20 20 20 54 68 | 65 20 20 6f 70 65 72 61 |ge. Th|e opera|
|00002690| 74 69 6f 6e 20 63 61 75 | 73 65 64 20 61 20 66 69 |tion cau|sed a fi|
|000026a0| 6c 65 20 74 6f 20 67 72 | 6f 77 0a 62 65 79 6f 6e |le to gr|ow.beyon|
|000026b0| 64 20 74 68 65 20 73 65 | 72 76 65 72 27 73 20 6c |d the se|rver's l|
|000026c0| 69 6d 69 74 2e 0a 58 2e | 49 50 20 5c 66 42 4e 46 |imit..X.|IP \fBNF|
|000026d0| 53 45 52 52 5f 4e 4f 53 | 50 43 5c 66 50 3a 0a 4e |SERR_NOS|PC\fP:.N|
|000026e0| 6f 20 73 70 61 63 65 20 | 6c 65 66 74 20 6f 6e 20 |o space |left on |
|000026f0| 20 64 65 76 69 63 65 2e | 20 20 20 54 68 65 20 6f | device.| The o|
|00002700| 70 65 72 61 74 69 6f 6e | 20 63 61 75 73 65 64 20 |peration| caused |
|00002710| 74 68 65 0a 73 65 72 76 | 65 72 27 73 20 66 69 6c |the.serv|er's fil|
|00002720| 65 73 79 73 74 65 6d 20 | 74 6f 20 72 65 61 63 68 |esystem |to reach|
|00002730| 20 69 74 73 20 6c 69 6d | 69 74 2e 0a 58 2e 49 50 | its lim|it..X.IP|
|00002740| 20 5c 66 42 4e 46 53 45 | 52 52 5f 52 4f 46 53 5c | \fBNFSE|RR_ROFS\|
|00002750| 66 50 3a 0a 52 65 61 64 | 2d 6f 6e 6c 79 20 66 69 |fP:.Read|-only fi|
|00002760| 6c 65 73 79 73 74 65 6d | 2e 20 20 57 72 69 74 65 |lesystem|. Write|
|00002770| 20 61 74 74 65 6d 70 74 | 65 64 20 6f 6e 20 61 20 | attempt|ed on a |
|00002780| 72 65 61 64 2d 6f 6e 6c | 79 20 66 69 6c 65 73 79 |read-onl|y filesy|
|00002790| 73 74 65 6d 2e 0a 58 2e | 49 50 20 5c 66 42 4e 46 |stem..X.|IP \fBNF|
|000027a0| 53 45 52 52 5f 4e 41 4d | 45 54 4f 4f 4c 4f 4e 47 |SERR_NAM|ETOOLONG|
|000027b0| 5c 66 50 3a 0a 46 69 6c | 65 20 6e 61 6d 65 20 20 |\fP:.Fil|e name |
|000027c0| 20 74 6f 6f 20 20 20 6c | 6f 6e 67 2e 20 20 54 68 | too l|ong. Th|
|000027d0| 65 20 66 69 6c 65 20 20 | 6e 61 6d 65 20 20 69 6e |e file |name in|
|000027e0| 20 20 61 6e 20 6f 70 65 | 72 61 74 69 6f 6e 20 77 | an ope|ration w|
|000027f0| 61 73 20 74 6f 6f 20 6c | 6f 6e 67 2e 0a 58 2e 49 |as too l|ong..X.I|
|00002800| 50 20 5c 66 42 4e 46 53 | 45 52 52 5f 4e 4f 54 45 |P \fBNFS|ERR_NOTE|
|00002810| 4d 50 54 59 5c 66 50 3a | 0a 44 69 72 65 63 74 6f |MPTY\fP:|.Directo|
|00002820| 72 79 20 20 20 6e 6f 74 | 20 65 6d 70 74 79 2e 20 |ry not| empty. |
|00002830| 20 41 74 74 65 6d 70 74 | 65 64 20 20 74 6f 20 20 | Attempt|ed to |
|00002840| 20 72 65 6d 6f 76 65 20 | 20 61 0a 64 69 72 65 63 | remove | a.direc|
|00002850| 74 6f 72 79 20 74 68 61 | 74 20 77 61 73 20 6e 6f |tory tha|t was no|
|00002860| 74 20 65 6d 70 74 79 2e | 0a 58 2e 49 50 20 5c 66 |t empty.|.X.IP \f|
|00002870| 42 4e 46 53 45 52 52 5f | 44 51 55 4f 54 5c 66 50 |BNFSERR_|DQUOT\fP|
|00002880| 3a 0a 44 69 73 6b 20 71 | 75 6f 74 61 20 65 78 63 |:.Disk q|uota exc|
|00002890| 65 65 64 65 64 2e 20 20 | 54 68 65 20 63 6c 69 65 |eeded. |The clie|
|000028a0| 6e 74 27 73 20 64 69 73 | 6b 20 20 71 75 6f 74 61 |nt's dis|k quota|
|000028b0| 20 6f 6e 20 74 68 65 0a | 73 65 72 76 65 72 20 68 | on the.|server h|
|000028c0| 61 73 20 62 65 65 6e 20 | 65 78 63 65 65 64 65 64 |as been |exceeded|
|000028d0| 2e 0a 58 2e 49 50 20 5c | 66 42 4e 46 53 45 52 52 |..X.IP \|fBNFSERR|
|000028e0| 5f 53 54 41 4c 45 5c 66 | 50 3a 0a 54 68 65 20 20 |_STALE\f|P:.The |
|000028f0| 22 66 68 61 6e 64 6c 65 | 22 20 67 69 76 65 6e 20 |"fhandle|" given |
|00002900| 69 6e 20 20 20 74 68 65 | 20 61 72 67 75 6d 65 6e |in the| argumen|
|00002910| 74 73 20 77 61 73 20 69 | 6e 76 61 6c 69 64 2e 0a |ts was i|nvalid..|
|00002920| 54 68 61 74 20 69 73 2c | 20 74 68 65 20 66 69 6c |That is,| the fil|
|00002930| 65 20 72 65 66 65 72 72 | 65 64 20 74 6f 20 62 79 |e referr|ed to by|
|00002940| 20 74 68 61 74 20 66 69 | 6c 65 20 68 61 6e 64 6c | that fi|le handl|
|00002950| 65 20 6e 6f 20 6c 6f 6e | 67 65 72 20 65 78 69 73 |e no lon|ger exis|
|00002960| 74 73 2c 0a 6f 72 20 61 | 63 63 65 73 73 20 74 6f |ts,.or a|ccess to|
|00002970| 20 69 74 20 68 61 73 20 | 62 65 65 6e 20 72 65 76 | it has |been rev|
|00002980| 6f 6b 65 64 2e 0a 58 2e | 49 50 20 5c 66 42 4e 46 |oked..X.|IP \fBNF|
|00002990| 53 45 52 52 5f 57 46 4c | 55 53 48 5c 66 50 3a 0a |SERR_WFL|USH\fP:.|
|000029a0| 54 68 65 20 73 65 72 76 | 65 72 27 73 20 20 77 72 |The serv|er's wr|
|000029b0| 69 74 65 20 63 61 63 68 | 65 20 20 75 73 65 64 20 |ite cach|e used |
|000029c0| 20 69 6e 20 74 68 65 0a | 58 2e 49 20 57 52 49 54 | in the.|X.I WRIT|
|000029d0| 45 43 41 43 48 45 20 0a | 63 61 6c 6c 20 67 6f 74 |ECACHE .|call got|
|000029e0| 20 66 6c 75 73 68 65 64 | 20 74 6f 20 64 69 73 6b | flushed| to disk|
|000029f0| 2e 0a 58 2e 4c 50 0a 58 | 2e 4b 53 0a 58 2e 4e 48 |..X.LP.X|.KS.X.NH|
|00002a00| 20 33 0a 5c 26 5c 66 49 | 66 74 79 70 65 5c 66 50 | 3.\&\fI|ftype\fP|
|00002a10| 0a 58 2e 49 58 20 22 4e | 46 53 20 64 61 74 61 20 |.X.IX "N|FS data |
|00002a20| 74 79 70 65 73 22 20 66 | 74 79 70 65 20 22 22 20 |types" f|type "" |
|00002a30| 5c 66 49 66 74 79 70 65 | 5c 66 50 0a 58 2e 44 53 |\fIftype|\fP.X.DS|
|00002a40| 0a 65 6e 75 6d 20 66 74 | 79 70 65 20 7b 0a 09 4e |.enum ft|ype {..N|
|00002a50| 46 4e 4f 4e 20 3d 20 30 | 2c 0a 09 4e 46 52 45 47 |FNON = 0|,..NFREG|
|00002a60| 20 3d 20 31 2c 0a 09 4e | 46 44 49 52 20 3d 20 32 | = 1,..N|FDIR = 2|
|00002a70| 2c 0a 09 4e 46 42 4c 4b | 20 3d 20 33 2c 0a 09 4e |,..NFBLK| = 3,..N|
|00002a80| 46 43 48 52 20 3d 20 34 | 2c 0a 09 4e 46 4c 4e 4b |FCHR = 4|,..NFLNK|
|00002a90| 20 3d 20 35 0a 7d 3b 0a | 58 2e 44 45 0a 58 2e 4b | = 5.};.|X.DE.X.K|
|00002aa0| 45 0a 54 68 65 20 65 6e | 75 6d 65 72 61 74 69 6f |E.The en|umeratio|
|00002ab0| 6e 0a 58 2e 49 20 66 74 | 79 70 65 20 0a 67 69 76 |n.X.I ft|ype .giv|
|00002ac0| 65 73 20 74 68 65 20 74 | 79 70 65 20 6f 66 20 61 |es the t|ype of a|
|00002ad0| 20 66 69 6c 65 2e 20 20 | 54 68 65 20 74 79 70 65 | file. |The type|
|00002ae0| 20 0a 58 2e 49 20 4e 46 | 4e 4f 4e 20 0a 69 6e 64 | .X.I NF|NON .ind|
|00002af0| 69 63 61 74 65 73 20 61 | 20 6e 6f 6e 2d 66 69 6c |icates a| non-fil|
|00002b00| 65 2c 0a 58 2e 49 20 4e | 46 52 45 47 20 0a 69 73 |e,.X.I N|FREG .is|
|00002b10| 20 61 20 72 65 67 75 6c | 61 72 20 66 69 6c 65 2c | a regul|ar file,|
|00002b20| 20 0a 58 2e 49 20 4e 46 | 44 49 52 20 0a 69 73 20 | .X.I NF|DIR .is |
|00002b30| 61 20 64 69 72 65 63 74 | 6f 72 79 2c 0a 58 2e 49 |a direct|ory,.X.I|
|00002b40| 20 4e 46 42 4c 4b 20 0a | 69 73 20 61 20 62 6c 6f | NFBLK .|is a blo|
|00002b50| 63 6b 2d 73 70 65 63 69 | 61 6c 20 64 65 76 69 63 |ck-speci|al devic|
|00002b60| 65 2c 20 0a 58 2e 49 20 | 4e 46 43 48 52 20 0a 69 |e, .X.I |NFCHR .i|
|00002b70| 73 20 61 20 63 68 61 72 | 61 63 74 65 72 2d 73 70 |s a char|acter-sp|
|00002b80| 65 63 69 61 6c 20 64 65 | 76 69 63 65 2c 20 61 6e |ecial de|vice, an|
|00002b90| 64 0a 58 2e 49 20 4e 46 | 4c 4e 4b 20 0a 69 73 20 |d.X.I NF|LNK .is |
|00002ba0| 61 20 73 79 6d 62 6f 6c | 69 63 20 6c 69 6e 6b 2e |a symbol|ic link.|
|00002bb0| 0a 58 2e 4b 53 0a 58 2e | 4e 48 20 33 0a 5c 26 5c |.X.KS.X.|NH 3.\&\|
|00002bc0| 66 49 66 68 61 6e 64 6c | 65 5c 66 50 0a 58 2e 49 |fIfhandl|e\fP.X.I|
|00002bd0| 58 20 22 4e 46 53 20 64 | 61 74 61 20 74 79 70 65 |X "NFS d|ata type|
|00002be0| 73 22 20 66 68 61 6e 64 | 6c 65 20 22 22 20 5c 66 |s" fhand|le "" \f|
|00002bf0| 49 66 68 61 6e 64 6c 65 | 5c 66 50 0a 58 2e 44 53 |Ifhandle|\fP.X.DS|
|00002c00| 0a 74 79 70 65 64 65 66 | 20 6f 70 61 71 75 65 20 |.typedef| opaque |
|00002c10| 66 68 61 6e 64 6c 65 5b | 46 48 53 49 5a 45 5d 3b |fhandle[|FHSIZE];|
|00002c20| 0a 58 2e 44 45 0a 58 2e | 4b 45 0a 54 68 65 0a 58 |.X.DE.X.|KE.The.X|
|00002c30| 2e 49 20 66 68 61 6e 64 | 6c 65 20 0a 69 73 20 74 |.I fhand|le .is t|
|00002c40| 68 65 20 66 69 6c 65 20 | 68 61 6e 64 6c 65 20 70 |he file |handle p|
|00002c50| 61 73 73 65 64 20 62 65 | 74 77 65 65 6e 20 74 68 |assed be|tween th|
|00002c60| 65 20 73 65 72 76 65 72 | 20 61 6e 64 20 74 68 65 |e server| and the|
|00002c70| 20 63 6c 69 65 6e 74 2e | 20 20 0a 41 6c 6c 20 66 | client.| .All f|
|00002c80| 69 6c 65 20 6f 70 65 72 | 61 74 69 6f 6e 73 20 61 |ile oper|ations a|
|00002c90| 72 65 20 64 6f 6e 65 20 | 75 73 69 6e 67 20 66 69 |re done |using fi|
|00002ca0| 6c 65 20 68 61 6e 64 6c | 65 73 20 74 6f 20 72 65 |le handl|es to re|
|00002cb0| 66 65 72 20 74 6f 20 61 | 20 66 69 6c 65 20 6f 72 |fer to a| file or|
|00002cc0| 20 0a 64 69 72 65 63 74 | 6f 72 79 2e 20 20 54 68 | .direct|ory. Th|
|00002cd0| 65 20 66 69 6c 65 20 68 | 61 6e 64 6c 65 20 63 61 |e file h|andle ca|
|00002ce0| 6e 20 63 6f 6e 74 61 69 | 6e 20 77 68 61 74 65 76 |n contai|n whatev|
|00002cf0| 65 72 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 74 |er infor|mation t|
|00002d00| 68 65 20 73 65 72 76 65 | 72 0a 6e 65 65 64 73 20 |he serve|r.needs |
|00002d10| 74 6f 20 64 69 73 74 69 | 6e 67 75 69 73 68 20 61 |to disti|nguish a|
|00002d20| 6e 20 69 6e 64 69 76 69 | 64 75 61 6c 20 66 69 6c |n indivi|dual fil|
|00002d30| 65 2e 0a 58 2e 4b 53 0a | 58 2e 4e 48 20 33 0a 5c |e..X.KS.|X.NH 3.\|
|00002d40| 26 5c 66 49 74 69 6d 65 | 76 61 6c 5c 66 50 0a 58 |&\fItime|val\fP.X|
|00002d50| 2e 49 58 20 22 4e 46 53 | 20 64 61 74 61 20 74 79 |.IX "NFS| data ty|
|00002d60| 70 65 73 22 20 74 69 6d | 65 76 61 6c 20 22 22 20 |pes" tim|eval "" |
|00002d70| 5c 66 49 74 69 6d 65 76 | 61 6c 5c 66 50 0a 58 2e |\fItimev|al\fP.X.|
|00002d80| 44 53 0a 73 74 72 75 63 | 74 20 74 69 6d 65 76 61 |DS.struc|t timeva|
|00002d90| 6c 20 7b 0a 09 75 6e 73 | 69 67 6e 65 64 20 69 6e |l {..uns|igned in|
|00002da0| 74 20 73 65 63 6f 6e 64 | 73 3b 0a 09 75 6e 73 69 |t second|s;..unsi|
|00002db0| 67 6e 65 64 20 69 6e 74 | 20 75 73 65 63 6f 6e 64 |gned int| usecond|
|00002dc0| 73 3b 0a 7d 3b 0a 58 2e | 44 45 0a 58 2e 4b 45 0a |s;.};.X.|DE.X.KE.|
|00002dd0| 54 68 65 20 0a 58 2e 49 | 20 74 69 6d 65 76 61 6c |The .X.I| timeval|
|00002de0| 0a 73 74 72 75 63 74 75 | 72 65 20 69 73 20 74 68 |.structu|re is th|
|00002df0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 73 65 63 6f |e number| of seco|
|00002e00| 6e 64 73 20 61 6e 64 20 | 6d 69 63 72 6f 73 65 63 |nds and |microsec|
|00002e10| 6f 6e 64 73 20 0a 73 69 | 6e 63 65 20 6d 69 64 6e |onds .si|nce midn|
|00002e20| 69 67 68 74 20 4a 61 6e | 75 61 72 79 20 31 2c 20 |ight Jan|uary 1, |
|00002e30| 31 39 37 30 2c 20 47 72 | 65 65 6e 77 69 63 68 20 |1970, Gr|eenwich |
|00002e40| 4d 65 61 6e 20 54 69 6d | 65 2e 20 20 49 74 20 69 |Mean Tim|e. It i|
|00002e50| 73 20 75 73 65 64 20 74 | 6f 20 0a 70 61 73 73 20 |s used t|o .pass |
|00002e60| 74 69 6d 65 20 61 6e 64 | 20 64 61 74 65 20 69 6e |time and| date in|
|00002e70| 66 6f 72 6d 61 74 69 6f | 6e 2e 0a 58 2e 4b 53 0a |formatio|n..X.KS.|
|00002e80| 58 2e 4e 48 20 33 0a 5c | 26 5c 66 49 66 61 74 74 |X.NH 3.\|&\fIfatt|
|00002e90| 72 5c 66 50 0a 58 2e 49 | 58 20 22 4e 46 53 20 64 |r\fP.X.I|X "NFS d|
|00002ea0| 61 74 61 20 74 79 70 65 | 73 22 20 66 61 74 74 72 |ata type|s" fattr|
|00002eb0| 20 22 22 20 5c 66 49 66 | 61 74 74 72 5c 66 50 0a | "" \fIf|attr\fP.|
|00002ec0| 58 2e 44 53 0a 73 74 72 | 75 63 74 20 66 61 74 74 |X.DS.str|uct fatt|
|00002ed0| 72 20 7b 0a 09 66 74 79 | 70 65 20 20 20 20 20 20 |r {..fty|pe |
|00002ee0| 20 20 74 79 70 65 3b 0a | 09 75 6e 73 69 67 6e 65 | type;.|.unsigne|
|00002ef0| 64 20 69 6e 74 20 6d 6f | 64 65 3b 0a 09 75 6e 73 |d int mo|de;..uns|
|00002f00| 69 67 6e 65 64 20 69 6e | 74 20 6e 6c 69 6e 6b 3b |igned in|t nlink;|
|00002f10| 0a 09 75 6e 73 69 67 6e | 65 64 20 69 6e 74 20 75 |..unsign|ed int u|
|00002f20| 69 64 3b 0a 09 75 6e 73 | 69 67 6e 65 64 20 69 6e |id;..uns|igned in|
|00002f30| 74 20 67 69 64 3b 0a 09 | 75 6e 73 69 67 6e 65 64 |t gid;..|unsigned|
|00002f40| 20 69 6e 74 20 73 69 7a | 65 3b 0a 09 75 6e 73 69 | int siz|e;..unsi|
|00002f50| 67 6e 65 64 20 69 6e 74 | 20 62 6c 6f 63 6b 73 69 |gned int| blocksi|
|00002f60| 7a 65 3b 0a 09 75 6e 73 | 69 67 6e 65 64 20 69 6e |ze;..uns|igned in|
|00002f70| 74 20 72 64 65 76 3b 0a | 09 75 6e 73 69 67 6e 65 |t rdev;.|.unsigne|
|00002f80| 64 20 69 6e 74 20 62 6c | 6f 63 6b 73 3b 0a 09 75 |d int bl|ocks;..u|
|00002f90| 6e 73 69 67 6e 65 64 20 | 69 6e 74 20 66 73 69 64 |nsigned |int fsid|
|00002fa0| 3b 0a 09 75 6e 73 69 67 | 6e 65 64 20 69 6e 74 20 |;..unsig|ned int |
|00002fb0| 66 69 6c 65 69 64 3b 0a | 09 74 69 6d 65 76 61 6c |fileid;.|.timeval|
|00002fc0| 20 20 20 20 20 20 61 74 | 69 6d 65 3b 0a 09 74 69 | at|ime;..ti|
|00002fd0| 6d 65 76 61 6c 20 20 20 | 20 20 20 6d 74 69 6d 65 |meval | mtime|
|00002fe0| 3b 0a 09 74 69 6d 65 76 | 61 6c 20 20 20 20 20 20 |;..timev|al |
|00002ff0| 63 74 69 6d 65 3b 0a 7d | 3b 0a 58 2e 44 45 0a 58 |ctime;.}|;.X.DE.X|
|00003000| 2e 4b 45 0a 54 68 65 0a | 58 2e 49 20 66 61 74 74 |.KE.The.|X.I fatt|
|00003010| 72 20 0a 73 74 72 75 63 | 74 75 72 65 20 63 6f 6e |r .struc|ture con|
|00003020| 74 61 69 6e 73 20 74 68 | 65 20 61 74 74 72 69 62 |tains th|e attrib|
|00003030| 75 74 65 73 20 6f 66 20 | 61 20 66 69 6c 65 3b 20 |utes of |a file; |
|00003040| 22 74 79 70 65 22 20 69 | 73 20 74 68 65 20 74 79 |"type" i|s the ty|
|00003050| 70 65 20 6f 66 0a 74 68 | 65 20 66 69 6c 65 3b 20 |pe of.th|e file; |
|00003060| 22 6e 6c 69 6e 6b 22 20 | 69 73 20 74 68 65 20 6e |"nlink" |is the n|
|00003070| 75 6d 62 65 72 20 6f 66 | 20 68 61 72 64 20 6c 69 |umber of| hard li|
|00003080| 6e 6b 73 20 74 6f 20 74 | 68 65 20 66 69 6c 65 20 |nks to t|he file |
|00003090| 28 74 68 65 20 6e 75 6d | 62 65 72 0a 6f 66 20 64 |(the num|ber.of d|
|000030a0| 69 66 66 65 72 65 6e 74 | 20 6e 61 6d 65 73 20 66 |ifferent| names f|
|000030b0| 6f 72 20 74 68 65 20 73 | 61 6d 65 20 66 69 6c 65 |or the s|ame file|
|000030c0| 29 3b 20 22 75 69 64 22 | 20 69 73 20 74 68 65 20 |); "uid"| is the |
|000030d0| 75 73 65 72 0a 69 64 65 | 6e 74 69 66 69 63 61 74 |user.ide|ntificat|
|000030e0| 69 6f 6e 20 6e 75 6d 62 | 65 72 20 6f 66 20 74 68 |ion numb|er of th|
|000030f0| 65 20 6f 77 6e 65 72 20 | 6f 66 20 74 68 65 20 66 |e owner |of the f|
|00003100| 69 6c 65 3b 20 22 67 69 | 64 22 20 69 73 20 74 68 |ile; "gi|d" is th|
|00003110| 65 20 67 72 6f 75 70 0a | 69 64 65 6e 74 69 66 69 |e group.|identifi|
|00003120| 63 61 74 69 6f 6e 20 6e | 75 6d 62 65 72 20 6f 66 |cation n|umber of|
|00003130| 20 74 68 65 20 67 72 6f | 75 70 20 6f 66 20 74 68 | the gro|up of th|
|00003140| 65 20 66 69 6c 65 3b 20 | 22 73 69 7a 65 22 20 69 |e file; |"size" i|
|00003150| 73 20 74 68 65 20 73 69 | 7a 65 20 69 6e 0a 62 79 |s the si|ze in.by|
|00003160| 74 65 73 20 6f 66 20 74 | 68 65 20 66 69 6c 65 3b |tes of t|he file;|
|00003170| 20 22 62 6c 6f 63 6b 73 | 69 7a 65 22 20 69 73 20 | "blocks|ize" is |
|00003180| 74 68 65 20 73 69 7a 65 | 20 69 6e 20 62 79 74 65 |the size| in byte|
|00003190| 73 20 6f 66 20 61 20 62 | 6c 6f 63 6b 20 6f 66 20 |s of a b|lock of |
|000031a0| 74 68 65 0a 66 69 6c 65 | 3b 20 22 72 64 65 76 22 |the.file|; "rdev"|
|000031b0| 20 69 73 20 74 68 65 20 | 64 65 76 69 63 65 20 6e | is the |device n|
|000031c0| 75 6d 62 65 72 20 6f 66 | 20 74 68 65 20 66 69 6c |umber of| the fil|
|000031d0| 65 20 69 66 20 69 74 20 | 69 73 20 74 79 70 65 0a |e if it |is type.|
|000031e0| 58 2e 49 20 4e 46 43 48 | 52 20 0a 6f 72 0a 58 2e |X.I NFCH|R .or.X.|
|000031f0| 49 20 4e 46 42 4c 4b 20 | 3b 0a 22 62 6c 6f 63 6b |I NFBLK |;."block|
|00003200| 73 22 20 69 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |s" is th|e number|
|00003210| 20 6f 66 20 62 6c 6f 63 | 6b 73 20 74 68 65 20 66 | of bloc|ks the f|
|00003220| 69 6c 65 20 74 61 6b 65 | 73 20 75 70 20 6f 6e 20 |ile take|s up on |
|00003230| 64 69 73 6b 3b 20 22 66 | 73 69 64 22 20 69 73 0a |disk; "f|sid" is.|
|00003240| 74 68 65 20 66 69 6c 65 | 20 73 79 73 74 65 6d 20 |the file| system |
|00003250| 69 64 65 6e 74 69 66 69 | 65 72 20 66 6f 72 20 74 |identifi|er for t|
|00003260| 68 65 20 66 69 6c 65 73 | 79 73 74 65 6d 20 63 6f |he files|ystem co|
|00003270| 6e 74 61 69 6e 69 6e 67 | 20 74 68 65 20 66 69 6c |ntaining| the fil|
|00003280| 65 3b 0a 22 66 69 6c 65 | 69 64 22 20 69 73 20 61 |e;."file|id" is a|
|00003290| 20 6e 75 6d 62 65 72 20 | 74 68 61 74 20 75 6e 69 | number |that uni|
|000032a0| 71 75 65 6c 79 20 69 64 | 65 6e 74 69 66 69 65 73 |quely id|entifies|
|000032b0| 20 74 68 65 20 66 69 6c | 65 20 77 69 74 68 69 6e | the fil|e within|
|000032c0| 20 69 74 73 0a 66 69 6c | 65 73 79 73 74 65 6d 3b | its.fil|esystem;|
|000032d0| 20 22 61 74 69 6d 65 22 | 20 69 73 20 74 68 65 20 | "atime"| is the |
|000032e0| 74 69 6d 65 20 77 68 65 | 6e 20 74 68 65 20 66 69 |time whe|n the fi|
|000032f0| 6c 65 20 77 61 73 20 6c | 61 73 74 20 61 63 63 65 |le was l|ast acce|
|00003300| 73 73 65 64 20 66 6f 72 | 0a 65 69 74 68 65 72 20 |ssed for|.either |
|00003310| 72 65 61 64 20 6f 72 20 | 77 72 69 74 65 3b 20 22 |read or |write; "|
|00003320| 6d 74 69 6d 65 22 20 69 | 73 20 74 68 65 20 74 69 |mtime" i|s the ti|
|00003330| 6d 65 20 77 68 65 6e 20 | 74 68 65 20 66 69 6c 65 |me when |the file|
|00003340| 20 64 61 74 61 20 77 61 | 73 20 6c 61 73 74 0a 6d | data wa|s last.m|
|00003350| 6f 64 69 66 69 65 64 20 | 28 77 72 69 74 74 65 6e |odified |(written|
|00003360| 29 3b 20 61 6e 64 20 22 | 63 74 69 6d 65 22 20 69 |); and "|ctime" i|
|00003370| 73 20 74 68 65 20 74 69 | 6d 65 20 77 68 65 6e 20 |s the ti|me when |
|00003380| 74 68 65 20 73 74 61 74 | 75 73 20 6f 66 20 74 68 |the stat|us of th|
|00003390| 65 0a 66 69 6c 65 20 77 | 61 73 20 6c 61 73 74 20 |e.file w|as last |
|000033a0| 63 68 61 6e 67 65 64 2e | 20 20 57 72 69 74 69 6e |changed.| Writin|
|000033b0| 67 20 74 6f 20 74 68 65 | 20 66 69 6c 65 20 61 6c |g to the| file al|
|000033c0| 73 6f 20 63 68 61 6e 67 | 65 73 20 22 63 74 69 6d |so chang|es "ctim|
|000033d0| 65 22 20 69 66 0a 74 68 | 65 20 73 69 7a 65 20 6f |e" if.th|e size o|
|000033e0| 66 20 74 68 65 20 66 69 | 6c 65 20 63 68 61 6e 67 |f the fi|le chang|
|000033f0| 65 73 2e 0a 58 2e 4c 50 | 0a 22 6d 6f 64 65 22 20 |es..X.LP|."mode" |
|00003400| 69 73 20 74 68 65 20 61 | 63 63 65 73 73 20 6d 6f |is the a|ccess mo|
|00003410| 64 65 20 65 6e 63 6f 64 | 65 64 20 61 73 20 61 20 |de encod|ed as a |
|00003420| 73 65 74 20 6f 66 20 62 | 69 74 73 2e 20 20 4e 6f |set of b|its. No|
|00003430| 74 69 63 65 20 74 68 61 | 74 20 74 68 65 0a 66 69 |tice tha|t the.fi|
|00003440| 6c 65 20 74 79 70 65 20 | 69 73 20 73 70 65 63 69 |le type |is speci|
|00003450| 66 69 65 64 20 62 6f 74 | 68 20 69 6e 20 74 68 65 |fied bot|h in the|
|00003460| 20 6d 6f 64 65 20 62 69 | 74 73 20 61 6e 64 20 69 | mode bi|ts and i|
|00003470| 6e 20 74 68 65 20 66 69 | 6c 65 20 74 79 70 65 2e |n the fi|le type.|
|00003480| 0a 54 68 69 73 20 69 73 | 20 72 65 61 6c 6c 79 20 |.This is| really |
|00003490| 61 20 62 75 67 20 69 6e | 20 74 68 65 20 70 72 6f |a bug in| the pro|
|000034a0| 74 6f 63 6f 6c 20 61 6e | 64 20 77 69 6c 6c 20 62 |tocol an|d will b|
|000034b0| 65 20 66 69 78 65 64 20 | 69 6e 20 66 75 74 75 72 |e fixed |in futur|
|000034c0| 65 0a 76 65 72 73 69 6f | 6e 73 2e 20 20 54 68 65 |e.versio|ns. The|
|000034d0| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 73 20 67 69 | descrip|tions gi|
|000034e0| 76 65 6e 20 62 65 6c 6f | 77 20 73 70 65 63 69 66 |ven belo|w specif|
|000034f0| 79 20 74 68 65 20 62 69 | 74 20 70 6f 73 69 74 69 |y the bi|t positi|
|00003500| 6f 6e 73 0a 75 73 69 6e | 67 20 6f 63 74 61 6c 20 |ons.usin|g octal |
|00003510| 6e 75 6d 62 65 72 73 2e | 0a 58 2e 54 53 0a 62 6f |numbers.|.X.TS.bo|
|00003520| 78 20 74 61 62 20 28 26 | 29 20 3b 0a 63 66 49 20 |x tab (&|) ;.cfI |
|00003530| 63 66 49 0a 6c 66 4c 20 | 6c 20 2e 0a 42 69 74 26 |cfI.lfL |l ..Bit&|
|00003540| 44 65 73 63 72 69 70 74 | 69 6f 6e 0a 5f 0a 30 30 |Descript|ion._.00|
|00003550| 34 30 30 30 30 26 54 68 | 69 73 20 69 73 20 61 20 |40000&Th|is is a |
|00003560| 64 69 72 65 63 74 6f 72 | 79 3b 20 22 74 79 70 65 |director|y; "type|
|00003570| 22 20 66 69 65 6c 64 20 | 73 68 6f 75 6c 64 20 62 |" field |should b|
|00003580| 65 20 4e 46 44 49 52 2e | 0a 30 30 32 30 30 30 30 |e NFDIR.|.0020000|
|00003590| 26 54 68 69 73 20 69 73 | 20 61 20 63 68 61 72 61 |&This is| a chara|
|000035a0| 63 74 65 72 20 73 70 65 | 63 69 61 6c 20 66 69 6c |cter spe|cial fil|
|000035b0| 65 3b 20 22 74 79 70 65 | 22 20 66 69 65 6c 64 20 |e; "type|" field |
|000035c0| 73 68 6f 75 6c 64 20 62 | 65 20 4e 46 43 48 52 2e |should b|e NFCHR.|
|000035d0| 20 0a 30 30 36 30 30 30 | 30 26 54 68 69 73 20 69 | .006000|0&This i|
|000035e0| 73 20 61 20 62 6c 6f 63 | 6b 20 73 70 65 63 69 61 |s a bloc|k specia|
|000035f0| 6c 20 66 69 6c 65 3b 20 | 22 74 79 70 65 22 20 66 |l file; |"type" f|
|00003600| 69 65 6c 64 20 73 68 6f | 75 6c 64 20 62 65 20 4e |ield sho|uld be N|
|00003610| 46 42 4c 4b 2e 20 0a 30 | 31 30 30 30 30 30 26 54 |FBLK. .0|100000&T|
|00003620| 68 69 73 20 69 73 20 61 | 20 72 65 67 75 6c 61 72 |his is a| regular|
|00003630| 20 66 69 6c 65 3b 20 22 | 74 79 70 65 22 20 66 69 | file; "|type" fi|
|00003640| 65 6c 64 20 73 68 6f 75 | 6c 64 20 62 65 20 4e 46 |eld shou|ld be NF|
|00003650| 52 45 47 2e 0a 30 31 32 | 30 30 30 30 26 54 68 69 |REG..012|0000&Thi|
|00003660| 73 20 69 73 20 61 20 73 | 79 6d 62 6f 6c 69 63 20 |s is a s|ymbolic |
|00003670| 6c 69 6e 6b 20 66 69 6c | 65 3b 20 20 22 74 79 70 |link fil|e; "typ|
|00003680| 65 22 20 66 69 65 6c 64 | 20 73 68 6f 75 6c 64 20 |e" field| should |
|00003690| 62 65 20 4e 46 4c 4e 4b | 2e 20 0a 30 31 34 30 30 |be NFLNK|. .01400|
|000036a0| 30 30 26 54 68 69 73 20 | 69 73 20 61 20 6e 61 6d |00&This |is a nam|
|000036b0| 65 64 20 73 6f 63 6b 65 | 74 3b 20 22 74 79 70 65 |ed socke|t; "type|
|000036c0| 22 20 66 69 65 6c 64 20 | 73 68 6f 75 6c 64 20 62 |" field |should b|
|000036d0| 65 20 4e 46 4e 4f 4e 2e | 0a 30 30 30 34 30 30 30 |e NFNON.|.0004000|
|000036e0| 26 53 65 74 20 75 73 65 | 72 20 69 64 20 6f 6e 20 |&Set use|r id on |
|000036f0| 65 78 65 63 75 74 69 6f | 6e 2e 0a 30 30 30 32 30 |executio|n..00020|
|00003700| 30 30 26 53 65 74 20 67 | 72 6f 75 70 20 69 64 20 |00&Set g|roup id |
|00003710| 6f 6e 20 65 78 65 63 75 | 74 69 6f 6e 2e 0a 30 30 |on execu|tion..00|
|00003720| 30 31 30 30 30 26 53 61 | 76 65 20 73 77 61 70 70 |01000&Sa|ve swapp|
|00003730| 65 64 20 74 65 78 74 20 | 65 76 65 6e 20 61 66 74 |ed text |even aft|
|00003740| 65 72 20 75 73 65 2e 0a | 30 30 30 30 34 30 30 26 |er use..|0000400&|
|00003750| 52 65 61 64 20 70 65 72 | 6d 69 73 73 69 6f 6e 20 |Read per|mission |
|00003760| 66 6f 72 20 6f 77 6e 65 | 72 2e 0a 30 30 30 30 32 |for owne|r..00002|
|00003770| 30 30 26 57 72 69 74 65 | 20 70 65 72 6d 69 73 73 |00&Write| permiss|
|00003780| 69 6f 6e 20 66 6f 72 20 | 6f 77 6e 65 72 2e 0a 30 |ion for |owner..0|
|00003790| 30 30 30 31 30 30 26 45 | 78 65 63 75 74 65 20 61 |000100&E|xecute a|
|000037a0| 6e 64 20 73 65 61 72 63 | 68 20 70 65 72 6d 69 73 |nd searc|h permis|
|000037b0| 73 69 6f 6e 20 66 6f 72 | 20 6f 77 6e 65 72 2e 0a |sion for| owner..|
|000037c0| 30 30 30 30 30 34 30 26 | 52 65 61 64 20 70 65 72 |0000040&|Read per|
|000037d0| 6d 69 73 73 69 6f 6e 20 | 66 6f 72 20 67 72 6f 75 |mission |for grou|
|000037e0| 70 2e 0a 30 30 30 30 30 | 32 30 26 57 72 69 74 65 |p..00000|20&Write|
|000037f0| 20 70 65 72 6d 69 73 73 | 69 6f 6e 20 66 6f 72 20 | permiss|ion for |
|00003800| 67 72 6f 75 70 2e 0a 30 | 30 30 30 30 31 30 26 45 |group..0|000010&E|
|00003810| 78 65 63 75 74 65 20 61 | 6e 64 20 73 65 61 72 63 |xecute a|nd searc|
|00003820| 68 20 70 65 72 6d 69 73 | 73 69 6f 6e 20 66 6f 72 |h permis|sion for|
|00003830| 20 67 72 6f 75 70 2e 0a | 30 30 30 30 30 30 34 26 | group..|0000004&|
|00003840| 52 65 61 64 20 70 65 72 | 6d 69 73 73 69 6f 6e 20 |Read per|mission |
|00003850| 66 6f 72 20 6f 74 68 65 | 72 73 2e 0a 30 30 30 30 |for othe|rs..0000|
|00003860| 30 30 32 26 57 72 69 74 | 65 20 70 65 72 6d 69 73 |002&Writ|e permis|
|00003870| 73 69 6f 6e 20 66 6f 72 | 20 6f 74 68 65 72 73 2e |sion for| others.|
|00003880| 0a 30 30 30 30 30 30 31 | 26 45 78 65 63 75 74 65 |.0000001|&Execute|
|00003890| 20 61 6e 64 20 73 65 61 | 72 63 68 20 70 65 72 6d | and sea|rch perm|
|000038a0| 69 73 73 69 6f 6e 20 66 | 6f 72 20 6f 74 68 65 72 |ission f|or other|
|000038b0| 73 2e 0a 58 2e 54 45 0a | 58 2e 4b 53 0a 4e 6f 74 |s..X.TE.|X.KS.Not|
|000038c0| 65 73 3a 0a 58 2e 49 50 | 20 0a 54 68 65 20 62 69 |es:.X.IP| .The bi|
|000038d0| 74 73 20 61 72 65 20 20 | 74 68 65 20 73 61 6d 65 |ts are |the same|
|000038e0| 20 61 73 20 74 68 65 20 | 6d 6f 64 65 20 20 20 62 | as the |mode b|
|000038f0| 69 74 73 20 72 65 74 75 | 72 6e 65 64 20 20 62 79 |its retu|rned by|
|00003900| 20 20 74 68 65 0a 58 2e | 49 20 73 74 61 74 20 28 | the.X.|I stat (|
|00003910| 32 29 0a 73 79 73 74 65 | 6d 20 63 61 6c 6c 20 69 |2).syste|m call i|
|00003920| 6e 20 74 68 65 20 55 4e | 49 58 20 73 79 73 74 65 |n the UN|IX syste|
|00003930| 6d 2e 20 20 54 68 65 20 | 66 69 6c 65 20 20 74 79 |m. The |file ty|
|00003940| 70 65 20 69 73 20 20 73 | 70 65 63 69 66 69 65 64 |pe is s|pecified|
|00003950| 20 20 62 6f 74 68 20 69 | 6e 0a 74 68 65 20 6d 6f | both i|n.the mo|
|00003960| 64 65 20 20 62 69 74 73 | 20 20 61 6e 64 20 69 6e |de bits| and in|
|00003970| 20 20 74 68 65 20 66 69 | 6c 65 20 74 79 70 65 2e | the fi|le type.|
|00003980| 20 20 20 54 68 69 73 20 | 20 20 69 73 20 66 69 78 | This | is fix|
|00003990| 65 64 20 20 69 6e 20 66 | 75 74 75 72 65 0a 76 65 |ed in f|uture.ve|
|000039a0| 72 73 69 6f 6e 73 2e 0a | 58 2e 49 50 0a 54 68 65 |rsions..|X.IP.The|
|000039b0| 20 22 72 64 65 76 22 20 | 66 69 65 6c 64 20 69 6e | "rdev" |field in|
|000039c0| 20 74 68 65 20 61 74 74 | 72 69 62 75 74 65 73 20 | the att|ributes |
|000039d0| 73 74 72 75 63 74 75 72 | 65 20 69 73 20 61 6e 20 |structur|e is an |
|000039e0| 6f 70 65 72 61 74 69 6e | 67 20 73 79 73 74 65 6d |operatin|g system|
|000039f0| 0a 73 70 65 63 69 66 69 | 63 20 64 65 76 69 63 65 |.specifi|c device|
|00003a00| 20 73 70 65 63 69 66 69 | 65 72 2e 20 20 49 74 20 | specifi|er. It |
|00003a10| 20 77 69 6c 6c 20 62 65 | 20 20 72 65 6d 6f 76 65 | will be| remove|
|00003a20| 64 20 61 6e 64 20 67 65 | 6e 65 72 61 6c 69 7a 65 |d and ge|neralize|
|00003a30| 64 20 69 6e 0a 74 68 65 | 20 6e 65 78 74 20 72 65 |d in.the| next re|
|00003a40| 76 69 73 69 6f 6e 20 6f | 66 20 74 68 65 20 70 72 |vision o|f the pr|
|00003a50| 6f 74 6f 63 6f 6c 2e 0a | 58 2e 4b 45 0a 58 2e 4c |otocol..|X.KE.X.L|
|00003a60| 50 0a 58 2e 4b 53 0a 58 | 2e 4e 48 20 33 0a 5c 26 |P.X.KS.X|.NH 3.\&|
|00003a70| 5c 66 49 73 61 74 74 72 | 5c 66 50 0a 58 2e 49 58 |\fIsattr|\fP.X.IX|
|00003a80| 20 22 4e 46 53 20 64 61 | 74 61 20 74 79 70 65 73 | "NFS da|ta types|
|00003a90| 22 20 73 61 74 74 72 20 | 22 22 20 5c 66 49 73 61 |" sattr |"" \fIsa|
|00003aa0| 74 74 72 5c 66 50 0a 58 | 2e 44 53 0a 73 74 72 75 |ttr\fP.X|.DS.stru|
|00003ab0| 63 74 20 73 61 74 74 72 | 20 7b 0a 09 75 6e 73 69 |ct sattr| {..unsi|
|00003ac0| 67 6e 65 64 20 69 6e 74 | 20 6d 6f 64 65 3b 0a 09 |gned int| mode;..|
|00003ad0| 75 6e 73 69 67 6e 65 64 | 20 69 6e 74 20 75 69 64 |unsigned| int uid|
|00003ae0| 3b 0a 09 75 6e 73 69 67 | 6e 65 64 20 69 6e 74 20 |;..unsig|ned int |
|00003af0| 67 69 64 3b 0a 09 75 6e | 73 69 67 6e 65 64 20 69 |gid;..un|signed i|
|00003b00| 6e 74 20 73 69 7a 65 3b | 0a 09 74 69 6d 65 76 61 |nt size;|..timeva|
|00003b10| 6c 20 20 20 20 20 20 61 | 74 69 6d 65 3b 0a 09 74 |l a|time;..t|
|00003b20| 69 6d 65 76 61 6c 20 20 | 20 20 20 20 6d 74 69 6d |imeval | mtim|
|00003b30| 65 3b 0a 7d 3b 0a 58 2e | 44 45 0a 58 2e 4b 45 0a |e;.};.X.|DE.X.KE.|
|00003b40| 54 68 65 20 0a 58 2e 49 | 20 73 61 74 74 72 0a 73 |The .X.I| sattr.s|
|00003b50| 74 72 75 63 74 75 72 65 | 20 63 6f 6e 74 61 69 6e |tructure| contain|
|00003b60| 73 20 74 68 65 20 66 69 | 6c 65 20 61 74 74 72 69 |s the fi|le attri|
|00003b70| 62 75 74 65 73 20 77 68 | 69 63 68 20 63 61 6e 20 |butes wh|ich can |
|00003b80| 62 65 20 73 65 74 0a 66 | 72 6f 6d 20 74 68 65 20 |be set.f|rom the |
|00003b90| 63 6c 69 65 6e 74 2e 20 | 20 54 68 65 20 66 69 65 |client. | The fie|
|00003ba0| 6c 64 73 20 61 72 65 20 | 74 68 65 20 73 61 6d 65 |lds are |the same|
|00003bb0| 20 61 73 20 66 6f 72 20 | 20 0a 58 2e 49 20 66 61 | as for | .X.I fa|
|00003bc0| 74 74 72 20 0a 61 62 6f | 76 65 2e 20 20 41 20 22 |ttr .abo|ve. A "|
|00003bd0| 73 69 7a 65 22 20 6f 66 | 20 7a 65 72 6f 20 20 6d |size" of| zero m|
|00003be0| 65 61 6e 73 20 74 68 65 | 20 66 69 6c 65 20 73 68 |eans the| file sh|
|00003bf0| 6f 75 6c 64 20 62 65 20 | 20 74 72 75 6e 63 61 74 |ould be | truncat|
|00003c00| 65 64 2e 0a 41 20 76 61 | 6c 75 65 20 6f 66 20 2d |ed..A va|lue of -|
|00003c10| 31 20 69 6e 64 69 63 61 | 74 65 73 20 61 20 66 69 |1 indica|tes a fi|
|00003c20| 65 6c 64 20 74 68 61 74 | 20 73 68 6f 75 6c 64 20 |eld that| should |
|00003c30| 62 65 20 69 67 6e 6f 72 | 65 64 2e 0a 58 2e 4c 50 |be ignor|ed..X.LP|
|00003c40| 0a 58 2e 4b 53 0a 58 2e | 4e 48 20 33 0a 5c 26 5c |.X.KS.X.|NH 3.\&\|
|00003c50| 66 49 66 69 6c 65 6e 61 | 6d 65 5c 66 50 0a 58 2e |fIfilena|me\fP.X.|
|00003c60| 49 58 20 22 4e 46 53 20 | 64 61 74 61 20 74 79 70 |IX "NFS |data typ|
|00003c70| 65 73 22 20 66 69 6c 65 | 6e 61 6d 65 20 22 22 20 |es" file|name "" |
|00003c80| 5c 66 49 66 69 6c 65 6e | 61 6d 65 5c 66 50 0a 58 |\fIfilen|ame\fP.X|
|00003c90| 2e 44 53 0a 74 79 70 65 | 64 65 66 20 73 74 72 69 |.DS.type|def stri|
|00003ca0| 6e 67 20 66 69 6c 65 6e | 61 6d 65 3c 4d 41 58 4e |ng filen|ame<MAXN|
|00003cb0| 41 4d 4c 45 4e 3e 3b 0a | 58 2e 44 45 0a 58 2e 4b |AMLEN>;.|X.DE.X.K|
|00003cc0| 45 0a 54 68 65 20 74 79 | 70 65 0a 58 2e 49 20 66 |E.The ty|pe.X.I f|
|00003cd0| 69 6c 65 6e 61 6d 65 20 | 0a 69 73 20 75 73 65 64 |ilename |.is used|
|00003ce0| 20 66 6f 72 20 20 70 61 | 73 73 69 6e 67 20 66 69 | for pa|ssing fi|
|00003cf0| 6c 65 20 6e 61 6d 65 73 | 20 20 6f 72 20 20 70 61 |le names| or pa|
|00003d00| 74 68 6e 61 6d 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |thname c|omponent|
|00003d10| 73 2e 0a 58 2e 4c 50 0a | 58 2e 4b 53 0a 58 2e 4e |s..X.LP.|X.KS.X.N|
|00003d20| 48 20 33 0a 5c 26 5c 66 | 49 70 61 74 68 5c 66 50 |H 3.\&\f|Ipath\fP|
|00003d30| 0a 58 2e 49 58 20 22 4e | 46 53 20 64 61 74 61 20 |.X.IX "N|FS data |
|00003d40| 74 79 70 65 73 22 20 70 | 61 74 68 20 22 22 20 5c |types" p|ath "" \|
|00003d50| 66 49 70 61 74 68 5c 66 | 50 0a 58 2e 44 53 0a 74 |fIpath\f|P.X.DS.t|
|00003d60| 79 70 65 64 65 66 20 73 | 74 72 69 6e 67 20 70 61 |ypedef s|tring pa|
|00003d70| 74 68 3c 4d 41 58 50 41 | 54 48 4c 45 4e 3e 3b 0a |th<MAXPA|THLEN>;.|
|00003d80| 58 2e 44 45 0a 58 2e 4b | 45 0a 54 68 65 20 74 79 |X.DE.X.K|E.The ty|
|00003d90| 70 65 0a 58 2e 49 20 70 | 61 74 68 20 0a 69 73 20 |pe.X.I p|ath .is |
|00003da0| 61 20 70 61 74 68 6e 61 | 6d 65 2e 20 20 54 68 65 |a pathna|me. The|
|00003db0| 20 73 65 72 76 65 72 20 | 63 6f 6e 73 69 64 65 72 | server |consider|
|00003dc0| 73 20 69 74 20 61 73 20 | 61 20 73 74 72 69 6e 67 |s it as |a string|
|00003dd0| 0a 77 69 74 68 20 6e 6f | 20 69 6e 74 65 72 6e 61 |.with no| interna|
|00003de0| 6c 20 73 74 72 75 63 74 | 75 72 65 2c 20 20 62 75 |l struct|ure, bu|
|00003df0| 74 20 74 6f 20 74 68 65 | 20 63 6c 69 65 6e 74 20 |t to the| client |
|00003e00| 20 69 74 20 69 73 20 74 | 68 65 20 6e 61 6d 65 20 | it is t|he name |
|00003e10| 6f 66 20 61 0a 6e 6f 64 | 65 20 69 6e 20 61 20 66 |of a.nod|e in a f|
|00003e20| 69 6c 65 73 79 73 74 65 | 6d 20 74 72 65 65 2e 0a |ilesyste|m tree..|
|00003e30| 58 2e 4c 50 0a 58 2e 4b | 53 0a 58 2e 4e 48 20 33 |X.LP.X.K|S.X.NH 3|
|00003e40| 0a 5c 26 5c 66 49 61 74 | 74 72 73 74 61 74 5c 66 |.\&\fIat|trstat\f|
|00003e50| 50 0a 58 2e 49 58 20 22 | 4e 46 53 20 64 61 74 61 |P.X.IX "|NFS data|
|00003e60| 20 74 79 70 65 73 22 20 | 61 74 74 72 73 74 61 74 | types" |attrstat|
|00003e70| 20 22 22 20 5c 66 49 61 | 74 74 72 73 74 61 74 5c | "" \fIa|ttrstat\|
|00003e80| 66 50 0a 58 2e 44 53 0a | 75 6e 69 6f 6e 20 61 74 |fP.X.DS.|union at|
|00003e90| 74 72 73 74 61 74 20 73 | 77 69 74 63 68 20 28 73 |trstat s|witch (s|
|00003ea0| 74 61 74 20 73 74 61 74 | 75 73 29 20 7b 0a 09 63 |tat stat|us) {..c|
|00003eb0| 61 73 65 20 4e 46 53 5f | 4f 4b 3a 0a 09 09 66 61 |ase NFS_|OK:...fa|
|00003ec0| 74 74 72 20 61 74 74 72 | 69 62 75 74 65 73 3b 0a |ttr attr|ibutes;.|
|00003ed0| 09 64 65 66 61 75 6c 74 | 3a 0a 09 09 76 6f 69 64 |.default|:...void|
|00003ee0| 3b 0a 7d 3b 0a 58 2e 44 | 45 0a 58 2e 4b 45 0a 54 |;.};.X.D|E.X.KE.T|
|00003ef0| 68 65 20 0a 58 2e 49 20 | 61 74 74 72 73 74 61 74 |he .X.I |attrstat|
|00003f00| 20 0a 73 74 72 75 63 74 | 75 72 65 20 69 73 20 61 | .struct|ure is a|
|00003f10| 20 63 6f 6d 6d 6f 6e 20 | 70 72 6f 63 65 64 75 72 | common |procedur|
|00003f20| 65 20 72 65 73 75 6c 74 | 2e 20 20 49 74 20 63 6f |e result|. It co|
|00003f30| 6e 74 61 69 6e 73 0a 61 | 20 20 22 73 74 61 74 75 |ntains.a| "statu|
|00003f40| 73 22 20 61 6e 64 2c 20 | 20 69 66 20 20 74 68 65 |s" and, | if the|
|00003f50| 20 63 61 6c 6c 20 20 20 | 73 75 63 63 65 65 64 65 | call |succeede|
|00003f60| 64 2c 20 20 20 69 74 20 | 61 6c 73 6f 20 63 6f 6e |d, it |also con|
|00003f70| 74 61 69 6e 73 20 20 74 | 68 65 0a 61 74 74 72 69 |tains t|he.attri|
|00003f80| 62 75 74 65 73 20 6f 66 | 20 74 68 65 20 66 69 6c |butes of| the fil|
|00003f90| 65 20 6f 6e 20 77 68 69 | 63 68 20 74 68 65 20 6f |e on whi|ch the o|
|00003fa0| 70 65 72 61 74 69 6f 6e | 20 77 61 73 20 64 6f 6e |peration| was don|
|00003fb0| 65 2e 0a 58 2e 4c 50 0a | 58 2e 4b 53 0a 58 2e 4e |e..X.LP.|X.KS.X.N|
|00003fc0| 48 20 33 0a 5c 26 5c 66 | 49 64 69 72 6f 70 61 72 |H 3.\&\f|Idiropar|
|00003fd0| 67 73 5c 66 50 0a 58 2e | 49 58 20 22 4e 46 53 20 |gs\fP.X.|IX "NFS |
|00003fe0| 64 61 74 61 20 74 79 70 | 65 73 22 20 64 69 72 6f |data typ|es" diro|
|00003ff0| 70 61 72 67 73 20 22 22 | 20 5c 66 49 64 69 72 6f |pargs ""| \fIdiro|
|00004000| 70 61 72 67 73 5c 66 50 | 0a 58 2e 44 53 0a 73 74 |pargs\fP|.X.DS.st|
|00004010| 72 75 63 74 20 64 69 72 | 6f 70 61 72 67 73 20 7b |ruct dir|opargs {|
|00004020| 0a 09 66 68 61 6e 64 6c | 65 20 20 64 69 72 3b 0a |..fhandl|e dir;.|
|00004030| 09 66 69 6c 65 6e 61 6d | 65 20 6e 61 6d 65 3b 0a |.filenam|e name;.|
|00004040| 7d 3b 0a 58 2e 44 45 0a | 58 2e 4b 45 0a 54 68 65 |};.X.DE.|X.KE.The|
|00004050| 20 20 0a 58 2e 49 20 64 | 69 72 6f 70 61 72 67 73 | .X.I d|iropargs|
|00004060| 20 0a 73 74 72 75 63 74 | 75 72 65 20 69 73 20 75 | .struct|ure is u|
|00004070| 73 65 64 20 20 69 6e 20 | 20 64 69 72 65 63 74 6f |sed in | directo|
|00004080| 72 79 20 20 6f 70 65 72 | 61 74 69 6f 6e 73 2e 20 |ry oper|ations. |
|00004090| 20 54 68 65 0a 22 66 68 | 61 6e 64 6c 65 22 20 22 | The."fh|andle" "|
|000040a0| 64 69 72 22 20 69 73 20 | 74 68 65 20 64 69 72 65 |dir" is |the dire|
|000040b0| 63 74 6f 72 79 20 69 6e | 20 20 77 68 69 63 68 20 |ctory in| which |
|000040c0| 74 6f 20 66 69 6e 64 20 | 74 68 65 20 66 69 6c 65 |to find |the file|
|000040d0| 20 22 6e 61 6d 65 22 2e | 0a 41 20 64 69 72 65 63 | "name".|.A direc|
|000040e0| 74 6f 72 79 20 6f 70 65 | 72 61 74 69 6f 6e 20 69 |tory ope|ration i|
|000040f0| 73 20 6f 6e 65 20 69 6e | 20 77 68 69 63 68 20 74 |s one in| which t|
|00004100| 68 65 20 64 69 72 65 63 | 74 6f 72 79 20 69 73 20 |he direc|tory is |
|00004110| 61 66 66 65 63 74 65 64 | 2e 0a 58 2e 4c 50 0a 58 |affected|..X.LP.X|
|00004120| 2e 4b 53 0a 58 2e 4e 48 | 20 33 0a 5c 26 5c 66 49 |.KS.X.NH| 3.\&\fI|
|00004130| 64 69 72 6f 70 72 65 73 | 5c 66 50 0a 58 2e 49 58 |diropres|\fP.X.IX|
|00004140| 20 22 4e 46 53 20 64 61 | 74 61 20 74 79 70 65 73 | "NFS da|ta types|
|00004150| 22 20 64 69 72 6f 70 72 | 65 73 20 22 22 20 5c 66 |" diropr|es "" \f|
|00004160| 49 64 69 72 6f 70 72 65 | 73 5c 66 50 0a 58 2e 44 |Idiropre|s\fP.X.D|
|00004170| 53 0a 75 6e 69 6f 6e 20 | 64 69 72 6f 70 72 65 73 |S.union |diropres|
|00004180| 20 73 77 69 74 63 68 20 | 28 73 74 61 74 20 73 74 | switch |(stat st|
|00004190| 61 74 75 73 29 20 7b 0a | 09 63 61 73 65 20 4e 46 |atus) {.|.case NF|
|000041a0| 53 5f 4f 4b 3a 0a 09 09 | 73 74 72 75 63 74 20 7b |S_OK:...|struct {|
|000041b0| 0a 09 09 09 66 68 61 6e | 64 6c 65 20 66 69 6c 65 |....fhan|dle file|
|000041c0| 3b 0a 09 09 09 66 61 74 | 74 72 20 20 20 61 74 74 |;....fat|tr att|
|000041d0| 72 69 62 75 74 65 73 3b | 0a 09 09 7d 20 64 69 72 |ributes;|...} dir|
|000041e0| 6f 70 6f 6b 3b 0a 09 64 | 65 66 61 75 6c 74 3a 0a |opok;..d|efault:.|
|000041f0| 09 09 76 6f 69 64 3b 0a | 7d 3b 0a 58 2e 44 45 0a |..void;.|};.X.DE.|
|00004200| 58 2e 4b 45 0a 54 68 65 | 20 72 65 73 75 6c 74 73 |X.KE.The| results|
|00004210| 20 6f 66 20 61 20 64 69 | 72 65 63 74 6f 72 79 20 | of a di|rectory |
|00004220| 6f 70 65 72 61 74 69 6f | 6e 20 20 61 72 65 20 72 |operatio|n are r|
|00004230| 65 74 75 72 6e 65 64 20 | 20 69 6e 20 61 20 0a 58 |eturned | in a .X|
|00004240| 2e 49 20 64 69 72 6f 70 | 72 65 73 20 0a 73 74 72 |.I dirop|res .str|
|00004250| 75 63 74 75 72 65 2e 20 | 20 49 66 20 74 68 65 20 |ucture. | If the |
|00004260| 63 61 6c 6c 20 73 75 63 | 63 65 65 64 65 64 2c 20 |call suc|ceeded, |
|00004270| 61 20 6e 65 77 20 66 69 | 6c 65 20 68 61 6e 64 6c |a new fi|le handl|
|00004280| 65 20 22 66 69 6c 65 22 | 20 61 6e 64 20 74 68 65 |e "file"| and the|
|00004290| 0a 22 61 74 74 72 69 62 | 75 74 65 73 22 20 61 73 |."attrib|utes" as|
|000042a0| 73 6f 63 69 61 74 65 64 | 20 77 69 74 68 20 74 68 |sociated| with th|
|000042b0| 61 74 20 66 69 6c 65 20 | 61 72 65 20 20 72 65 74 |at file |are ret|
|000042c0| 75 72 6e 65 64 20 61 6c | 6f 6e 67 20 77 69 74 68 |urned al|ong with|
|000042d0| 20 74 68 65 0a 22 73 74 | 61 74 75 73 22 2e 0a 58 | the."st|atus"..X|
|000042e0| 2e 4e 48 20 32 0a 5c 26 | 53 65 72 76 65 72 20 50 |.NH 2.\&|Server P|
|000042f0| 72 6f 63 65 64 75 72 65 | 73 0a 58 2e 49 58 20 22 |rocedure|s.X.IX "|
|00004300| 4e 46 53 20 73 65 72 76 | 65 72 20 70 72 6f 63 65 |NFS serv|er proce|
|00004310| 64 75 72 65 73 22 20 22 | 22 20 22 22 20 22 22 20 |dures" "|" "" "" |
|00004320| 50 41 47 45 20 4d 41 4a | 4f 52 0a 58 2e 4c 50 0a |PAGE MAJ|OR.X.LP.|
|00004330| 54 68 65 20 20 70 72 6f | 74 6f 63 6f 6c 20 64 65 |The pro|tocol de|
|00004340| 66 69 6e 69 74 69 6f 6e | 20 20 69 73 20 67 69 76 |finition| is giv|
|00004350| 65 6e 20 61 73 20 20 20 | 61 20 20 73 65 74 20 20 |en as |a set |
|00004360| 6f 66 20 20 70 72 6f 63 | 65 64 75 72 65 73 20 77 |of proc|edures w|
|00004370| 69 74 68 0a 61 72 67 75 | 6d 65 6e 74 73 20 20 61 |ith.argu|ments a|
|00004380| 6e 64 20 72 65 73 75 6c | 74 73 20 64 65 66 69 6e |nd resul|ts defin|
|00004390| 65 64 20 75 73 69 6e 67 | 20 74 68 65 20 20 20 52 |ed using| the R|
|000043a0| 50 43 20 20 6c 61 6e 67 | 75 61 67 65 2e 20 20 20 |PC lang|uage. |
|000043b0| 41 20 62 72 69 65 66 0a | 64 65 73 63 72 69 70 74 |A brief.|descript|
|000043c0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 66 75 6e 63 74 |ion of t|he funct|
|000043d0| 69 6f 6e 20 6f 66 20 65 | 61 63 68 20 70 72 6f 63 |ion of e|ach proc|
|000043e0| 65 64 75 72 65 20 73 68 | 6f 75 6c 64 20 70 72 6f |edure sh|ould pro|
|000043f0| 76 69 64 65 20 65 6e 6f | 75 67 68 0a 69 6e 66 6f |vide eno|ugh.info|
|00004400| 72 6d 61 74 69 6f 6e 20 | 74 6f 20 61 6c 6c 6f 77 |rmation |to allow|
|00004410| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 2e | impleme|ntation.|
|00004420| 0a 58 2e 4c 50 0a 41 6c | 6c 20 6f 66 20 20 74 68 |.X.LP.Al|l of th|
|00004430| 65 20 70 72 6f 63 65 64 | 75 72 65 73 20 20 69 6e |e proced|ures in|
|00004440| 20 20 20 74 68 65 20 4e | 46 53 20 20 70 72 6f 74 | the N|FS prot|
|00004450| 6f 63 6f 6c 20 20 61 72 | 65 20 61 73 73 75 6d 65 |ocol ar|e assume|
|00004460| 64 20 20 74 6f 20 20 62 | 65 0a 73 79 6e 63 68 72 |d to b|e.synchr|
|00004470| 6f 6e 6f 75 73 2e 20 20 | 20 57 68 65 6e 20 61 20 |onous. | When a |
|00004480| 70 72 6f 63 65 64 75 72 | 65 20 20 72 65 74 75 72 |procedur|e retur|
|00004490| 6e 73 20 74 6f 20 74 68 | 65 20 20 63 6c 69 65 6e |ns to th|e clien|
|000044a0| 74 2c 20 74 68 65 20 63 | 6c 69 65 6e 74 0a 63 61 |t, the c|lient.ca|
|000044b0| 6e 20 61 73 73 75 6d 65 | 20 74 68 61 74 20 74 68 |n assume| that th|
|000044c0| 65 20 6f 70 65 72 61 74 | 69 6f 6e 20 68 61 73 20 |e operat|ion has |
|000044d0| 63 6f 6d 70 6c 65 74 65 | 64 20 61 6e 64 20 61 6e |complete|d and an|
|000044e0| 79 20 64 61 74 61 20 61 | 73 73 6f 63 69 61 74 65 |y data a|ssociate|
|000044f0| 64 0a 77 69 74 68 20 74 | 68 65 20 72 65 71 75 65 |d.with t|he reque|
|00004500| 73 74 20 69 73 20 20 6e | 6f 77 20 6f 6e 20 73 74 |st is n|ow on st|
|00004510| 61 62 6c 65 20 73 74 6f | 72 61 67 65 2e 20 20 46 |able sto|rage. F|
|00004520| 6f 72 20 20 65 78 61 6d | 70 6c 65 2c 20 61 20 63 |or exam|ple, a c|
|00004530| 6c 69 65 6e 74 0a 58 2e | 49 20 57 52 49 54 45 20 |lient.X.|I WRITE |
|00004540| 0a 72 65 71 75 65 73 74 | 20 20 20 6d 61 79 20 20 |.request| may |
|00004550| 63 61 75 73 65 20 20 74 | 68 65 20 20 20 73 65 72 |cause t|he ser|
|00004560| 76 65 72 20 20 74 6f 20 | 20 75 70 64 61 74 65 20 |ver to | update |
|00004570| 20 64 61 74 61 20 20 62 | 6c 6f 63 6b 73 2c 0a 66 | data b|locks,.f|
|00004580| 69 6c 65 73 79 73 74 65 | 6d 20 69 6e 66 6f 72 6d |ilesyste|m inform|
|00004590| 61 74 69 6f 6e 20 62 6c | 6f 63 6b 73 20 28 73 75 |ation bl|ocks (su|
|000045a0| 63 68 20 61 73 20 69 6e | 64 69 72 65 63 74 20 20 |ch as in|direct |
|000045b0| 62 6c 6f 63 6b 73 29 2c | 20 20 61 6e 64 20 66 69 |blocks),| and fi|
|000045c0| 6c 65 0a 61 74 74 72 69 | 62 75 74 65 20 20 69 6e |le.attri|bute in|
|000045d0| 66 6f 72 6d 61 74 69 6f | 6e 20 28 73 69 7a 65 20 |formatio|n (size |
|000045e0| 20 61 6e 64 20 20 6d 6f | 64 69 66 79 20 20 74 69 | and mo|dify ti|
|000045f0| 6d 65 73 29 2e 20 20 57 | 68 65 6e 20 20 74 68 65 |mes). W|hen the|
|00004600| 20 0a 58 2e 49 20 57 52 | 49 54 45 20 0a 72 65 74 | .X.I WR|ITE .ret|
|00004610| 75 72 6e 73 20 74 6f 20 | 74 68 65 20 63 6c 69 65 |urns to |the clie|
|00004620| 6e 74 2c 20 69 74 20 63 | 61 6e 20 61 73 73 75 6d |nt, it c|an assum|
|00004630| 65 20 20 74 68 61 74 20 | 74 68 65 20 77 72 69 74 |e that |the writ|
|00004640| 65 20 20 69 73 20 73 61 | 66 65 2c 20 65 76 65 6e |e is sa|fe, even|
|00004650| 0a 69 6e 20 63 61 73 65 | 20 6f 66 20 20 61 20 73 |.in case| of a s|
|00004660| 65 72 76 65 72 20 20 63 | 72 61 73 68 2c 20 61 6e |erver c|rash, an|
|00004670| 64 20 20 69 74 20 63 61 | 6e 20 64 69 73 63 61 72 |d it ca|n discar|
|00004680| 64 20 74 68 65 20 20 64 | 61 74 61 20 77 72 69 74 |d the d|ata writ|
|00004690| 74 65 6e 2e 0a 54 68 69 | 73 20 69 73 20 61 20 76 |ten..Thi|s is a v|
|000046a0| 65 72 79 20 69 6d 70 6f | 72 74 61 6e 74 20 70 61 |ery impo|rtant pa|
|000046b0| 72 74 20 20 6f 66 20 74 | 68 65 20 73 74 61 74 65 |rt of t|he state|
|000046c0| 6c 65 73 73 6e 65 73 73 | 20 20 6f 66 20 74 68 65 |lessness| of the|
|000046d0| 20 73 65 72 76 65 72 2e | 0a 49 66 20 74 68 65 20 | server.|.If the |
|000046e0| 73 65 72 76 65 72 20 77 | 61 69 74 65 64 20 74 6f |server w|aited to|
|000046f0| 20 66 6c 75 73 68 20 64 | 61 74 61 20 66 72 6f 6d | flush d|ata from|
|00004700| 20 72 65 6d 6f 74 65 20 | 72 65 71 75 65 73 74 73 | remote |requests|
|00004710| 2c 20 74 68 65 20 63 6c | 69 65 6e 74 0a 77 6f 75 |, the cl|ient.wou|
|00004720| 6c 64 20 68 61 76 65 20 | 74 6f 20 20 73 61 76 65 |ld have |to save|
|00004730| 20 74 68 6f 73 65 20 72 | 65 71 75 65 73 74 73 20 | those r|equests |
|00004740| 73 6f 20 74 68 61 74 20 | 20 69 74 20 63 6f 75 6c |so that | it coul|
|00004750| 64 20 72 65 73 65 6e 64 | 20 74 68 65 6d 20 69 6e |d resend| them in|
|00004760| 0a 63 61 73 65 20 6f 66 | 20 61 20 73 65 72 76 65 |.case of| a serve|
|00004770| 72 20 63 72 61 73 68 2e | 0a 58 2e 69 65 20 74 20 |r crash.|.X.ie t |
|00004780| 2e 44 53 0a 58 2e 65 6c | 20 2e 44 53 20 4c 0a 0a |.DS.X.el| .DS L..|
|00004790| 58 2e 66 74 20 49 0a 2f | 2a 0a 2a 20 52 65 6d 6f |X.ft I./|*.* Remo|
|000047a0| 74 65 20 66 69 6c 65 20 | 73 65 72 76 69 63 65 20 |te file |service |
|000047b0| 72 6f 75 74 69 6e 65 73 | 0a 2a 2f 0a 58 2e 66 74 |routines|.*/.X.ft|
|000047c0| 20 43 57 0a 70 72 6f 67 | 72 61 6d 20 4e 46 53 5f | CW.prog|ram NFS_|
|000047d0| 50 52 4f 47 52 41 4d 20 | 7b 0a 09 76 65 72 73 69 |PROGRAM |{..versi|
|000047e0| 6f 6e 20 4e 46 53 5f 56 | 45 52 53 49 4f 4e 20 7b |on NFS_V|ERSION {|
|000047f0| 0a 09 09 76 6f 69 64 20 | 20 20 20 20 20 20 20 4e |...void | N|
|00004800| 46 53 50 52 4f 43 5f 4e | 55 4c 4c 28 76 6f 69 64 |FSPROC_N|ULL(void|
|00004810| 29 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3d |) | =|
|00004820| 20 30 3b 0a 09 09 61 74 | 74 72 73 74 61 74 20 20 | 0;...at|trstat |
|00004830| 20 20 4e 46 53 50 52 4f | 43 5f 47 45 54 41 54 54 | NFSPRO|C_GETATT|
|00004840| 52 28 66 68 61 6e 64 6c | 65 29 20 20 20 20 20 20 |R(fhandl|e) |
|00004850| 20 20 3d 20 31 3b 0a 09 | 09 61 74 74 72 73 74 61 | = 1;..|.attrsta|
|00004860| 74 20 20 20 20 4e 46 53 | 50 52 4f 43 5f 53 45 54 |t NFS|PROC_SET|
|00004870| 41 54 54 52 28 73 61 74 | 74 72 61 72 67 73 29 20 |ATTR(sat|trargs) |
|00004880| 20 20 20 20 20 3d 20 32 | 3b 0a 09 09 76 6f 69 64 | = 2|;...void|
|00004890| 20 20 20 20 20 20 20 20 | 4e 46 53 50 52 4f 43 5f | |NFSPROC_|
|000048a0| 52 4f 4f 54 28 76 6f 69 | 64 29 20 20 20 20 20 20 |ROOT(voi|d) |
|000048b0| 20 20 20 20 20 20 20 20 | 3d 20 33 3b 0a 09 09 64 | |= 3;...d|
|000048c0| 69 72 6f 70 72 65 73 20 | 20 20 20 4e 46 53 50 52 |iropres | NFSPR|
|000048d0| 4f 43 5f 4c 4f 4f 4b 55 | 50 28 64 69 72 6f 70 61 |OC_LOOKU|P(diropa|
|000048e0| 72 67 73 29 09 20 20 20 | 20 3d 20 34 3b 0a 09 09 |rgs). | = 4;...|
|000048f0| 72 65 61 64 6c 69 6e 6b | 72 65 73 20 4e 46 53 50 |readlink|res NFSP|
|00004900| 52 4f 43 5f 52 45 41 44 | 4c 49 4e 4b 28 66 68 61 |ROC_READ|LINK(fha|
|00004910| 6e 64 6c 65 29 20 20 20 | 20 20 20 20 3d 20 35 3b |ndle) | = 5;|
|00004920| 0a 09 09 72 65 61 64 72 | 65 73 20 20 20 20 20 4e |...readr|es N|
|00004930| 46 53 50 52 4f 43 5f 52 | 45 41 44 28 72 65 61 64 |FSPROC_R|EAD(read|
|00004940| 61 72 67 73 29 20 20 20 | 20 20 20 20 20 20 20 3d |args) | =|
|00004950| 20 36 3b 0a 09 09 76 6f | 69 64 20 20 20 20 20 20 | 6;...vo|id |
|00004960| 20 20 4e 46 53 50 52 4f | 43 5f 57 52 49 54 45 43 | NFSPRO|C_WRITEC|
|00004970| 41 43 48 45 28 76 6f 69 | 64 29 20 20 20 20 20 20 |ACHE(voi|d) |
|00004980| 20 20 3d 20 37 3b 0a 09 | 09 61 74 74 72 73 74 61 | = 7;..|.attrsta|
|00004990| 74 20 20 20 20 4e 46 53 | 50 52 4f 43 5f 57 52 49 |t NFS|PROC_WRI|
|000049a0| 54 45 28 77 72 69 74 65 | 61 72 67 73 29 20 20 20 |TE(write|args) |
|000049b0| 20 20 20 20 20 3d 20 38 | 3b 0a 09 09 64 69 72 6f | = 8|;...diro|
|000049c0| 70 72 65 73 20 20 20 20 | 4e 46 53 50 52 4f 43 5f |pres |NFSPROC_|
|000049d0| 43 52 45 41 54 45 28 63 | 72 65 61 74 65 61 72 67 |CREATE(c|reatearg|
|000049e0| 73 29 20 20 20 20 20 20 | 3d 20 39 3b 0a 09 09 73 |s) |= 9;...s|
|000049f0| 74 61 74 20 20 20 20 20 | 20 20 20 4e 46 53 50 52 |tat | NFSPR|
|00004a00| 4f 43 5f 52 45 4d 4f 56 | 45 28 64 69 72 6f 70 61 |OC_REMOV|E(diropa|
|00004a10| 72 67 73 29 20 20 20 20 | 20 20 20 3d 20 31 30 3b |rgs) | = 10;|
|00004a20| 0a 09 09 73 74 61 74 20 | 20 20 20 20 20 20 20 4e |...stat | N|
|00004a30| 46 53 50 52 4f 43 5f 52 | 45 4e 41 4d 45 28 72 65 |FSPROC_R|ENAME(re|
|00004a40| 6e 61 6d 65 61 72 67 73 | 29 20 20 20 20 20 20 3d |nameargs|) =|
|00004a50| 20 31 31 3b 0a 09 09 73 | 74 61 74 20 20 20 20 20 | 11;...s|tat |
|00004a60| 20 20 20 4e 46 53 50 52 | 4f 43 5f 4c 49 4e 4b 28 | NFSPR|OC_LINK(|
|00004a70| 6c 69 6e 6b 61 72 67 73 | 29 20 20 20 20 20 20 20 |linkargs|) |
|00004a80| 20 20 20 3d 20 31 32 3b | 0a 09 09 73 74 61 74 20 | = 12;|...stat |
|00004a90| 20 20 20 20 20 20 20 4e | 46 53 50 52 4f 43 5f 53 | N|FSPROC_S|
|00004aa0| 59 4d 4c 49 4e 4b 28 73 | 79 6d 6c 69 6e 6b 61 72 |YMLINK(s|ymlinkar|
|00004ab0| 67 73 29 20 20 20 20 3d | 20 31 33 3b 0a 09 09 64 |gs) =| 13;...d|
|00004ac0| 69 72 6f 70 72 65 73 20 | 20 20 20 4e 46 53 50 52 |iropres | NFSPR|
|00004ad0| 4f 43 5f 4d 4b 44 49 52 | 28 63 72 65 61 74 65 61 |OC_MKDIR|(createa|
|00004ae0| 72 67 73 29 09 20 20 20 | 20 3d 20 31 34 3b 0a 09 |rgs). | = 14;..|
|00004af0| 09 73 74 61 74 20 20 20 | 20 20 20 20 20 4e 46 53 |.stat | NFS|
|00004b00| 50 52 4f 43 5f 52 4d 44 | 49 52 28 64 69 72 6f 70 |PROC_RMD|IR(dirop|
|00004b10| 61 72 67 73 29 09 20 20 | 20 20 3d 20 31 35 3b 0a |args). | = 15;.|
|00004b20| 09 09 72 65 61 64 64 69 | 72 72 65 73 20 20 4e 46 |..readdi|rres NF|
|00004b30| 53 50 52 4f 43 5f 52 45 | 41 44 44 49 52 28 72 65 |SPROC_RE|ADDIR(re|
|00004b40| 61 64 64 69 72 61 72 67 | 73 29 09 3d 20 31 36 3b |addirarg|s).= 16;|
|00004b50| 0a 09 09 73 74 61 74 66 | 73 72 65 73 20 20 20 4e |...statf|sres N|
|00004b60| 46 53 50 52 4f 43 5f 53 | 54 41 54 46 53 28 66 68 |FSPROC_S|TATFS(fh|
|00004b70| 61 6e 64 6c 65 29 20 20 | 20 20 20 20 20 20 20 3d |andle) | =|
|00004b80| 20 31 37 3b 0a 09 7d 20 | 3d 20 32 3b 0a 7d 20 3d | 17;..} |= 2;.} =|
|00004b90| 20 31 30 30 30 30 33 3b | 0a 58 2e 44 45 0a 58 2e | 100003;|.X.DE.X.|
|00004ba0| 4b 53 0a 58 2e 4e 48 20 | 33 0a 5c 26 44 6f 20 4e |KS.X.NH |3.\&Do N|
|00004bb0| 6f 74 68 69 6e 67 0a 58 | 2e 49 58 20 22 4e 46 53 |othing.X|.IX "NFS|
|00004bc0| 20 73 65 72 76 65 72 20 | 70 72 6f 63 65 64 75 72 | server |procedur|
|00004bd0| 65 73 22 20 4e 46 53 50 | 52 4f 43 5f 4e 55 4c 4c |es" NFSP|ROC_NULL|
|00004be0| 20 22 22 20 5c 66 49 4e | 46 53 50 52 4f 43 5f 4e | "" \fIN|FSPROC_N|
|00004bf0| 55 4c 4c 5c 66 50 0a 58 | 2e 44 53 0a 76 6f 69 64 |ULL\fP.X|.DS.void|
|00004c00| 20 0a 4e 46 53 50 52 4f | 43 5f 4e 55 4c 4c 28 76 | .NFSPRO|C_NULL(v|
|00004c10| 6f 69 64 29 20 3d 20 30 | 3b 0a 58 2e 44 45 0a 58 |oid) = 0|;.X.DE.X|
|00004c20| 2e 4b 45 0a 54 68 69 73 | 20 70 72 6f 63 65 64 75 |.KE.This| procedu|
|00004c30| 72 65 20 64 6f 65 73 20 | 6e 6f 20 77 6f 72 6b 2e |re does |no work.|
|00004c40| 20 20 20 49 74 20 69 73 | 20 6d 61 64 65 20 61 76 | It is| made av|
|00004c50| 61 69 6c 61 62 6c 65 20 | 20 69 6e 20 20 61 6c 6c |ailable | in all|
|00004c60| 20 52 50 43 0a 73 65 72 | 76 69 63 65 73 20 74 6f | RPC.ser|vices to|
|00004c70| 20 61 6c 6c 6f 77 20 73 | 65 72 76 65 72 20 72 65 | allow s|erver re|
|00004c80| 73 70 6f 6e 73 65 20 74 | 65 73 74 69 6e 67 20 61 |sponse t|esting a|
|00004c90| 6e 64 20 74 69 6d 69 6e | 67 2e 0a 58 2e 4b 53 0a |nd timin|g..X.KS.|
|00004ca0| 58 2e 4e 48 20 33 0a 5c | 26 47 65 74 20 46 69 6c |X.NH 3.\|&Get Fil|
|00004cb0| 65 20 41 74 74 72 69 62 | 75 74 65 73 0a 58 2e 49 |e Attrib|utes.X.I|
|00004cc0| 58 20 22 4e 46 53 20 73 | 65 72 76 65 72 20 70 72 |X "NFS s|erver pr|
|00004cd0| 6f 63 65 64 75 72 65 73 | 22 20 4e 46 53 50 52 4f |ocedures|" NFSPRO|
|00004ce0| 43 5f 47 45 54 41 54 54 | 52 20 22 22 20 5c 66 49 |C_GETATT|R "" \fI|
|00004cf0| 4e 46 53 50 52 4f 43 5f | 47 45 54 41 54 54 52 5c |NFSPROC_|GETATTR\|
|00004d00| 66 50 0a 58 2e 44 53 0a | 61 74 74 72 73 74 61 74 |fP.X.DS.|attrstat|
|00004d10| 20 0a 4e 46 53 50 52 4f | 43 5f 47 45 54 41 54 54 | .NFSPRO|C_GETATT|
|00004d20| 52 20 28 66 68 61 6e 64 | 6c 65 29 20 3d 20 31 3b |R (fhand|le) = 1;|
|00004d30| 0a 58 2e 44 45 0a 58 2e | 4b 45 0a 49 66 20 74 68 |.X.DE.X.|KE.If th|
|00004d40| 65 20 72 65 70 6c 79 20 | 20 73 74 61 74 75 73 20 |e reply | status |
|00004d50| 69 73 20 0a 58 2e 49 20 | 4e 46 53 5f 4f 4b 20 2c |is .X.I |NFS_OK ,|
|00004d60| 0a 74 68 65 6e 20 20 74 | 68 65 20 72 65 70 6c 79 |.then t|he reply|
|00004d70| 20 61 74 74 72 69 62 75 | 74 65 73 20 63 6f 6e 74 | attribu|tes cont|
|00004d80| 61 69 6e 73 0a 74 68 65 | 20 61 74 74 72 69 62 75 |ains.the| attribu|
|00004d90| 74 65 73 20 66 6f 72 20 | 74 68 65 20 66 69 6c 65 |tes for |the file|
|00004da0| 20 67 69 76 65 6e 20 62 | 79 20 74 68 65 20 69 6e | given b|y the in|
|00004db0| 70 75 74 20 66 68 61 6e | 64 6c 65 2e 0a 58 2e 4b |put fhan|dle..X.K|
|00004dc0| 53 0a 58 2e 4e 48 20 33 | 0a 5c 26 53 65 74 20 46 |S.X.NH 3|.\&Set F|
|00004dd0| 69 6c 65 20 41 74 74 72 | 69 62 75 74 65 73 0a 58 |ile Attr|ibutes.X|
|00004de0| 2e 49 58 20 22 4e 46 53 | 20 73 65 72 76 65 72 20 |.IX "NFS| server |
|00004df0| 70 72 6f 63 65 64 75 72 | 65 73 22 20 4e 46 53 50 |procedur|es" NFSP|
|00004e00| 52 4f 43 5f 53 45 54 41 | 54 54 52 20 22 22 20 5c |ROC_SETA|TTR "" \|
|00004e10| 66 49 4e 46 53 50 52 4f | 43 5f 53 45 54 41 54 54 |fINFSPRO|C_SETATT|
|00004e20| 52 5c 66 50 0a 58 2e 44 | 53 0a 73 74 72 75 63 74 |R\fP.X.D|S.struct|
|00004e30| 20 73 61 74 74 72 61 72 | 67 73 20 7b 0a 09 66 68 | sattrar|gs {..fh|
|00004e40| 61 6e 64 6c 65 20 66 69 | 6c 65 3b 0a 09 73 61 74 |andle fi|le;..sat|
|00004e50| 74 72 20 61 74 74 72 69 | 62 75 74 65 73 3b 0a 09 |tr attri|butes;..|
|00004e60| 7d 3b 0a 0a 61 74 74 72 | 73 74 61 74 0a 4e 46 53 |};..attr|stat.NFS|
|00004e70| 50 52 4f 43 5f 53 45 54 | 41 54 54 52 20 28 73 61 |PROC_SET|ATTR (sa|
|00004e80| 74 74 72 61 72 67 73 29 | 20 3d 20 32 3b 0a 58 2e |ttrargs)| = 2;.X.|
|00004e90| 44 45 0a 58 2e 4b 45 0a | 54 68 65 20 20 22 61 74 |DE.X.KE.|The "at|
|00004ea0| 74 72 69 62 75 74 65 73 | 22 20 61 72 67 75 6d 65 |tributes|" argume|
|00004eb0| 6e 74 20 20 63 6f 6e 74 | 61 69 6e 73 20 66 69 65 |nt cont|ains fie|
|00004ec0| 6c 64 73 20 77 68 69 63 | 68 20 61 72 65 20 65 69 |lds whic|h are ei|
|00004ed0| 74 68 65 72 20 20 2d 31 | 20 6f 72 0a 61 72 65 20 |ther -1| or.are |
|00004ee0| 20 74 68 65 20 20 6e 65 | 77 20 76 61 6c 75 65 20 | the ne|w value |
|00004ef0| 66 6f 72 20 20 74 68 65 | 20 20 61 74 74 72 69 62 |for the| attrib|
|00004f00| 75 74 65 73 20 6f 66 20 | 20 22 66 69 6c 65 22 2e |utes of | "file".|
|00004f10| 20 20 20 49 66 20 74 68 | 65 20 72 65 70 6c 79 0a | If th|e reply.|
|00004f20| 73 74 61 74 75 73 20 69 | 73 20 0a 58 2e 49 20 4e |status i|s .X.I N|
|00004f30| 46 53 5f 4f 4b 20 2c 0a | 74 68 65 6e 20 74 68 65 |FS_OK ,.|then the|
|00004f40| 20 20 72 65 70 6c 79 20 | 61 74 74 72 69 62 75 74 | reply |attribut|
|00004f50| 65 73 20 68 61 76 65 20 | 74 68 65 20 61 74 74 72 |es have |the attr|
|00004f60| 69 62 75 74 65 73 20 6f | 66 0a 74 68 65 20 66 69 |ibutes o|f.the fi|
|00004f70| 6c 65 20 61 66 74 65 72 | 20 74 68 65 20 22 53 45 |le after| the "SE|
|00004f80| 54 41 54 54 52 22 20 6f | 70 65 72 61 74 69 6f 6e |TATTR" o|peration|
|00004f90| 20 68 61 73 20 63 6f 6d | 70 6c 65 74 65 64 2e 0a | has com|pleted..|
|00004fa0| 58 2e 4c 50 0a 4e 6f 74 | 65 3a 20 54 68 65 20 75 |X.LP.Not|e: The u|
|00004fb0| 73 65 20 6f 66 20 2d 31 | 20 74 6f 20 69 6e 64 69 |se of -1| to indi|
|00004fc0| 63 61 74 65 20 61 6e 20 | 75 6e 75 73 65 64 20 66 |cate an |unused f|
|00004fd0| 69 65 6c 64 20 69 6e 20 | 22 61 74 74 72 69 62 75 |ield in |"attribu|
|00004fe0| 74 65 73 22 20 69 73 0a | 63 68 61 6e 67 65 64 20 |tes" is.|changed |
|00004ff0| 69 6e 20 74 68 65 20 6e | 65 78 74 20 76 65 72 73 |in the n|ext vers|
|00005000| 69 6f 6e 20 6f 66 20 74 | 68 65 20 70 72 6f 74 6f |ion of t|he proto|
|00005010| 63 6f 6c 2e 0a 58 2e 4b | 53 0a 58 2e 4e 48 20 33 |col..X.K|S.X.NH 3|
|00005020| 0a 5c 26 47 65 74 20 46 | 69 6c 65 73 79 73 74 65 |.\&Get F|ilesyste|
|00005030| 6d 20 52 6f 6f 74 0a 58 | 2e 44 53 0a 76 6f 69 64 |m Root.X|.DS.void|
|00005040| 20 0a 4e 46 53 50 52 4f | 43 5f 52 4f 4f 54 28 76 | .NFSPRO|C_ROOT(v|
|00005050| 6f 69 64 29 20 3d 20 33 | 3b 0a 58 2e 44 45 0a 58 |oid) = 3|;.X.DE.X|
|00005060| 2e 4b 45 0a 4f 62 73 6f | 6c 65 74 65 2e 20 20 54 |.KE.Obso|lete. T|
|00005070| 68 69 73 20 70 72 6f 63 | 65 64 75 72 65 20 20 69 |his proc|edure i|
|00005080| 73 20 6e 6f 20 6c 6f 6e | 67 65 72 20 75 73 65 64 |s no lon|ger used|
|00005090| 20 20 20 62 65 63 61 75 | 73 65 20 20 66 69 6e 64 | becau|se find|
|000050a0| 69 6e 67 20 74 68 65 0a | 72 6f 6f 74 20 66 69 6c |ing the.|root fil|
|000050b0| 65 20 68 61 6e 64 6c 65 | 20 6f 66 20 61 20 66 69 |e handle| of a fi|
|000050c0| 6c 65 73 79 73 74 65 6d | 20 72 65 71 75 69 72 65 |lesystem| require|
|000050d0| 73 20 6d 6f 76 69 6e 67 | 20 20 70 61 74 68 6e 61 |s moving| pathna|
|000050e0| 6d 65 73 20 62 65 74 77 | 65 65 6e 0a 63 6c 69 65 |mes betw|een.clie|
|000050f0| 6e 74 20 20 61 6e 64 20 | 73 65 72 76 65 72 2e 20 |nt and |server. |
|00005100| 20 54 6f 20 20 64 6f 20 | 20 74 68 69 73 20 72 69 | To do | this ri|
|00005110| 67 68 74 20 77 65 20 77 | 6f 75 6c 64 20 20 68 61 |ght we w|ould ha|
|00005120| 76 65 20 20 74 6f 20 64 | 65 66 69 6e 65 20 61 0a |ve to d|efine a.|
|00005130| 6e 65 74 77 6f 72 6b 20 | 20 73 74 61 6e 2d 20 64 |network | stan- d|
|00005140| 61 72 64 20 20 72 65 70 | 72 65 73 65 6e 74 61 74 |ard rep|resentat|
|00005150| 69 6f 6e 20 6f 66 20 20 | 20 70 61 74 68 6e 61 6d |ion of | pathnam|
|00005160| 65 73 2e 20 20 20 49 6e | 73 74 65 61 64 2c 20 20 |es. In|stead, |
|00005170| 74 68 65 0a 66 75 6e 63 | 74 69 6f 6e 20 20 6f 66 |the.func|tion of|
|00005180| 20 20 6c 6f 6f 6b 69 6e | 67 20 75 70 20 20 74 68 | lookin|g up th|
|00005190| 65 20 20 20 72 6f 6f 74 | 20 20 66 69 6c 65 20 68 |e root| file h|
|000051a0| 61 6e 64 6c 65 20 20 69 | 73 20 20 64 6f 6e 65 20 |andle i|s done |
|000051b0| 20 62 79 20 74 68 65 0a | 58 2e 49 20 4d 4e 54 50 | by the.|X.I MNTP|
|000051c0| 52 4f 43 5f 4d 4e 54 20 | 0a 70 72 6f 63 65 64 75 |ROC_MNT |.procedu|
|000051d0| 72 65 2e 20 20 20 20 28 | 53 65 65 20 74 68 65 0a |re. (|See the.|
|000051e0| 5c 66 49 4d 6f 75 6e 74 | 20 50 72 6f 74 6f 63 6f |\fIMount| Protoco|
|000051f0| 6c 20 44 65 66 69 6e 69 | 74 69 6f 6e 5c 66 50 0a |l Defini|tion\fP.|
|00005200| 62 65 6c 6f 77 20 66 6f | 72 20 64 65 74 61 69 6c |below fo|r detail|
|00005210| 73 29 2e 0a 58 2e 4b 53 | 0a 58 2e 4e 48 20 33 0a |s)..X.KS|.X.NH 3.|
|00005220| 5c 26 4c 6f 6f 6b 20 55 | 70 20 46 69 6c 65 20 4e |\&Look U|p File N|
|00005230| 61 6d 65 0a 58 2e 49 58 | 20 22 4e 46 53 20 73 65 |ame.X.IX| "NFS se|
|00005240| 72 76 65 72 20 70 72 6f | 63 65 64 75 72 65 73 22 |rver pro|cedures"|
|00005250| 20 4e 46 53 50 52 4f 43 | 5f 4c 4f 4f 4b 55 50 20 | NFSPROC|_LOOKUP |
|00005260| 22 22 20 5c 66 49 4e 46 | 53 50 52 4f 43 5f 4c 4f |"" \fINF|SPROC_LO|
|00005270| 4f 4b 55 50 5c 66 50 0a | 58 2e 44 53 0a 64 69 72 |OKUP\fP.|X.DS.dir|
|00005280| 6f 70 72 65 73 0a 4e 46 | 53 50 52 4f 43 5f 4c 4f |opres.NF|SPROC_LO|
|00005290| 4f 4b 55 50 28 64 69 72 | 6f 70 61 72 67 73 29 20 |OKUP(dir|opargs) |
|000052a0| 3d 20 34 3b 0a 58 2e 44 | 45 0a 58 2e 4b 45 0a 49 |= 4;.X.D|E.X.KE.I|
|000052b0| 66 20 20 74 68 65 20 72 | 65 70 6c 79 20 22 73 74 |f the r|eply "st|
|000052c0| 61 74 75 73 22 20 20 69 | 73 20 0a 58 2e 49 20 4e |atus" i|s .X.I N|
|000052d0| 46 53 5f 4f 4b 20 2c 0a | 74 68 65 6e 20 74 68 65 |FS_OK ,.|then the|
|000052e0| 20 72 65 70 6c 79 20 20 | 22 66 69 6c 65 22 20 61 | reply |"file" a|
|000052f0| 6e 64 20 72 65 70 6c 79 | 0a 22 61 74 74 72 69 62 |nd reply|."attrib|
|00005300| 75 74 65 73 22 20 61 72 | 65 20 74 68 65 20 66 69 |utes" ar|e the fi|
|00005310| 6c 65 20 68 61 6e 64 6c | 65 20 61 6e 64 20 61 74 |le handl|e and at|
|00005320| 74 72 69 62 75 74 65 73 | 20 66 6f 72 20 74 68 65 |tributes| for the|
|00005330| 20 66 69 6c 65 20 22 6e | 61 6d 65 22 0a 69 6e 20 | file "n|ame".in |
|00005340| 74 68 65 20 64 69 72 65 | 63 74 6f 72 79 20 67 69 |the dire|ctory gi|
|00005350| 76 65 6e 20 62 79 20 22 | 64 69 72 22 20 69 6e 20 |ven by "|dir" in |
|00005360| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 2e 0a 58 2e |the argu|ment..X.|
|00005370| 4b 53 0a 58 2e 4e 48 20 | 33 0a 5c 26 52 65 61 64 |KS.X.NH |3.\&Read|
|00005380| 20 46 72 6f 6d 20 53 79 | 6d 62 6f 6c 69 63 20 4c | From Sy|mbolic L|
|00005390| 69 6e 6b 0a 58 2e 49 58 | 20 22 4e 46 53 20 73 65 |ink.X.IX| "NFS se|
|000053a0| 72 76 65 72 20 70 72 6f | 63 65 64 75 72 65 73 22 |rver pro|cedures"|
|000053b0| 20 4e 46 53 50 52 4f 43 | 5f 52 45 41 44 4c 49 4e | NFSPROC|_READLIN|
|000053c0| 4b 20 22 22 20 5c 66 49 | 4e 46 53 50 52 4f 43 5f |K "" \fI|NFSPROC_|
|000053d0| 52 45 41 44 4c 49 4e 4b | 5c 66 50 0a 58 2e 44 53 |READLINK|\fP.X.DS|
|000053e0| 0a 75 6e 69 6f 6e 20 72 | 65 61 64 6c 69 6e 6b 72 |.union r|eadlinkr|
|000053f0| 65 73 20 73 77 69 74 63 | 68 20 28 73 74 61 74 20 |es switc|h (stat |
|00005400| 73 74 61 74 75 73 29 20 | 7b 0a 09 63 61 73 65 20 |status) |{..case |
|00005410| 4e 46 53 5f 4f 4b 3a 0a | 09 09 70 61 74 68 20 64 |NFS_OK:.|..path d|
|00005420| 61 74 61 3b 0a 09 64 65 | 66 61 75 6c 74 3a 0a 09 |ata;..de|fault:..|
|00005430| 09 76 6f 69 64 3b 0a 7d | 3b 0a 0a 72 65 61 64 6c |.void;.}|;..readl|
|00005440| 69 6e 6b 72 65 73 0a 4e | 46 53 50 52 4f 43 5f 52 |inkres.N|FSPROC_R|
|00005450| 45 41 44 4c 49 4e 4b 28 | 66 68 61 6e 64 6c 65 29 |EADLINK(|fhandle)|
|00005460| 20 3d 20 35 3b 0a 58 2e | 44 45 0a 58 2e 4b 45 0a | = 5;.X.|DE.X.KE.|
|00005470| 49 66 20 22 73 74 61 74 | 75 73 22 20 68 61 73 20 |If "stat|us" has |
|00005480| 74 68 65 20 76 61 6c 75 | 65 20 0a 58 2e 49 20 4e |the valu|e .X.I N|
|00005490| 46 53 5f 4f 4b 20 2c 0a | 74 68 65 6e 20 74 68 65 |FS_OK ,.|then the|
|000054a0| 20 72 65 70 6c 79 20 22 | 64 61 74 61 22 20 69 73 | reply "|data" is|
|000054b0| 20 74 68 65 20 64 61 74 | 61 20 69 6e 20 0a 74 68 | the dat|a in .th|
|000054c0| 65 20 73 79 6d 62 6f 6c | 69 63 20 6c 69 6e 6b 20 |e symbol|ic link |
|000054d0| 67 69 76 65 6e 20 62 79 | 20 74 68 65 20 66 69 6c |given by| the fil|
|000054e0| 65 20 72 65 66 65 72 72 | 65 64 20 74 6f 20 62 79 |e referr|ed to by|
|000054f0| 20 74 68 65 20 66 68 61 | 6e 64 6c 65 20 61 72 67 | the fha|ndle arg|
|00005500| 75 6d 65 6e 74 2e 0a 58 | 2e 4c 50 0a 4e 6f 74 65 |ument..X|.LP.Note|
|00005510| 3a 20 20 73 69 6e 63 65 | 20 20 20 4e 46 53 20 61 |: since| NFS a|
|00005520| 6c 77 61 79 73 20 20 70 | 61 72 73 65 73 20 70 61 |lways p|arses pa|
|00005530| 74 68 6e 61 6d 65 73 20 | 20 20 20 6f 6e 20 74 68 |thnames | on th|
|00005540| 65 20 20 63 6c 69 65 6e | 74 2c 20 74 68 65 0a 70 |e clien|t, the.p|
|00005550| 61 74 68 6e 61 6d 65 20 | 69 6e 20 20 61 20 73 79 |athname |in a sy|
|00005560| 6d 62 6f 6c 69 63 20 20 | 6c 69 6e 6b 20 6d 61 79 |mbolic |link may|
|00005570| 20 20 6d 65 61 6e 20 73 | 6f 6d 65 74 68 69 6e 67 | mean s|omething|
|00005580| 20 20 64 69 66 66 65 72 | 65 6e 74 20 28 6f 72 20 | differ|ent (or |
|00005590| 62 65 0a 6d 65 61 6e 69 | 6e 67 6c 65 73 73 29 20 |be.meani|ngless) |
|000055a0| 6f 6e 20 61 20 64 69 66 | 66 65 72 65 6e 74 20 63 |on a dif|ferent c|
|000055b0| 6c 69 65 6e 74 20 6f 72 | 20 6f 6e 20 74 68 65 20 |lient or| on the |
|000055c0| 73 65 72 76 65 72 20 69 | 66 20 20 61 20 64 69 66 |server i|f a dif|
|000055d0| 66 65 72 65 6e 74 0a 70 | 61 74 68 6e 61 6d 65 20 |ferent.p|athname |
|000055e0| 73 79 6e 74 61 78 20 69 | 73 20 75 73 65 64 2e 0a |syntax i|s used..|
|000055f0| 58 2e 4b 53 0a 58 2e 4e | 48 20 33 0a 5c 26 52 65 |X.KS.X.N|H 3.\&Re|
|00005600| 61 64 20 46 72 6f 6d 20 | 46 69 6c 65 0a 58 2e 44 |ad From |File.X.D|
|00005610| 53 0a 73 74 72 75 63 74 | 20 72 65 61 64 61 72 67 |S.struct| readarg|
|00005620| 73 20 7b 0a 09 66 68 61 | 6e 64 6c 65 20 66 69 6c |s {..fha|ndle fil|
|00005630| 65 3b 0a 09 75 6e 73 69 | 67 6e 65 64 20 6f 66 66 |e;..unsi|gned off|
|00005640| 73 65 74 3b 0a 09 75 6e | 73 69 67 6e 65 64 20 63 |set;..un|signed c|
|00005650| 6f 75 6e 74 3b 0a 09 75 | 6e 73 69 67 6e 65 64 20 |ount;..u|nsigned |
|00005660| 74 6f 74 61 6c 63 6f 75 | 6e 74 3b 0a 7d 3b 0a 0a |totalcou|nt;.};..|
|00005670| 75 6e 69 6f 6e 20 72 65 | 61 64 72 65 73 20 73 77 |union re|adres sw|
|00005680| 69 74 63 68 20 28 73 74 | 61 74 20 73 74 61 74 75 |itch (st|at statu|
|00005690| 73 29 20 7b 0a 09 63 61 | 73 65 20 4e 46 53 5f 4f |s) {..ca|se NFS_O|
|000056a0| 4b 3a 0a 09 09 66 61 74 | 74 72 20 61 74 74 72 69 |K:...fat|tr attri|
|000056b0| 62 75 74 65 73 3b 0a 09 | 09 6e 66 73 64 61 74 61 |butes;..|.nfsdata|
|000056c0| 20 64 61 74 61 3b 0a 09 | 64 65 66 61 75 6c 74 3a | data;..|default:|
|000056d0| 0a 09 09 76 6f 69 64 3b | 0a 7d 3b 0a 0a 72 65 61 |...void;|.};..rea|
|000056e0| 64 72 65 73 0a 4e 46 53 | 50 52 4f 43 5f 52 45 41 |dres.NFS|PROC_REA|
|000056f0| 44 28 72 65 61 64 61 72 | 67 73 29 20 3d 20 36 3b |D(readar|gs) = 6;|
|00005700| 0a 58 2e 44 45 0a 58 2e | 4b 45 0a 52 65 74 75 72 |.X.DE.X.|KE.Retur|
|00005710| 6e 73 20 20 75 70 20 20 | 74 6f 20 20 22 63 6f 75 |ns up |to "cou|
|00005720| 6e 74 22 20 62 79 74 65 | 73 20 6f 66 20 20 20 22 |nt" byte|s of "|
|00005730| 64 61 74 61 22 20 66 72 | 6f 6d 20 20 74 68 65 20 |data" fr|om the |
|00005740| 66 69 6c 65 20 20 67 69 | 76 65 6e 20 62 79 0a 22 |file gi|ven by."|
|00005750| 66 69 6c 65 22 2c 20 73 | 74 61 72 74 69 6e 67 20 |file", s|tarting |
|00005760| 61 74 20 22 6f 66 66 73 | 65 74 22 20 62 79 74 65 |at "offs|et" byte|
|00005770| 73 20 66 72 6f 6d 20 20 | 74 68 65 20 62 65 67 69 |s from |the begi|
|00005780| 6e 6e 69 6e 67 20 6f 66 | 20 74 68 65 20 66 69 6c |nning of| the fil|
|00005790| 65 2e 0a 54 68 65 20 66 | 69 72 73 74 20 62 79 74 |e..The f|irst byt|
|000057a0| 65 20 6f 66 20 74 68 65 | 20 66 69 6c 65 20 69 73 |e of the| file is|
|000057b0| 20 20 61 74 20 6f 66 66 | 73 65 74 20 7a 65 72 6f | at off|set zero|
|000057c0| 2e 20 20 54 68 65 20 66 | 69 6c 65 20 61 74 74 72 |. The f|ile attr|
|000057d0| 69 62 75 74 65 73 0a 61 | 66 74 65 72 20 74 68 65 |ibutes.a|fter the|
|000057e0| 20 72 65 61 64 20 74 61 | 6b 65 73 20 70 6c 61 63 | read ta|kes plac|
|000057f0| 65 20 61 72 65 20 72 65 | 74 75 72 6e 65 64 20 69 |e are re|turned i|
|00005800| 6e 20 22 61 74 74 72 69 | 62 75 74 65 73 22 2e 0a |n "attri|butes"..|
|00005810| 58 2e 4c 50 0a 4e 6f 74 | 65 3a 20 54 68 65 20 20 |X.LP.Not|e: The |
|00005820| 61 72 67 75 6d 65 6e 74 | 20 22 74 6f 74 61 6c 63 |argument| "totalc|
|00005830| 6f 75 6e 74 22 20 69 73 | 20 20 75 6e 75 73 65 64 |ount" is| unused|
|00005840| 2c 20 61 6e 64 20 69 73 | 20 72 65 6d 6f 76 65 64 |, and is| removed|
|00005850| 20 69 6e 20 74 68 65 0a | 6e 65 78 74 20 70 72 6f | in the.|next pro|
|00005860| 74 6f 63 6f 6c 20 72 65 | 76 69 73 69 6f 6e 2e 0a |tocol re|vision..|
|00005870| 58 2e 4b 53 0a 58 2e 4e | 48 20 33 0a 5c 26 57 72 |X.KS.X.N|H 3.\&Wr|
|00005880| 69 74 65 20 74 6f 20 43 | 61 63 68 65 0a 58 2e 49 |ite to C|ache.X.I|
|00005890| 58 20 22 4e 46 53 20 73 | 65 72 76 65 72 20 70 72 |X "NFS s|erver pr|
|000058a0| 6f 63 65 64 75 72 65 73 | 22 20 4e 46 53 50 52 4f |ocedures|" NFSPRO|
|000058b0| 43 5f 57 52 49 54 45 43 | 41 43 48 45 20 22 22 20 |C_WRITEC|ACHE "" |
|000058c0| 5c 66 49 4e 46 53 50 52 | 4f 43 5f 57 52 49 54 45 |\fINFSPR|OC_WRITE|
|000058d0| 43 41 43 48 45 5c 66 50 | 0a 58 2e 44 53 0a 76 6f |CACHE\fP|.X.DS.vo|
|000058e0| 69 64 0a 4e 46 53 50 52 | 4f 43 5f 57 52 49 54 45 |id.NFSPR|OC_WRITE|
|000058f0| 43 41 43 48 45 28 76 6f | 69 64 29 20 3d 20 37 3b |CACHE(vo|id) = 7;|
|00005900| 0a 58 2e 44 45 0a 58 2e | 4b 45 0a 54 6f 20 62 65 |.X.DE.X.|KE.To be|
|00005910| 20 75 73 65 64 20 69 6e | 20 74 68 65 20 6e 65 78 | used in| the nex|
|00005920| 74 20 70 72 6f 74 6f 63 | 6f 6c 20 72 65 76 69 73 |t protoc|ol revis|
|00005930| 69 6f 6e 2e 0a 58 2e 4b | 53 0a 58 2e 4e 48 20 33 |ion..X.K|S.X.NH 3|
|00005940| 0a 5c 26 57 72 69 74 65 | 20 74 6f 20 46 69 6c 65 |.\&Write| to File|
|00005950| 0a 58 2e 49 58 20 22 4e | 46 53 20 73 65 72 76 65 |.X.IX "N|FS serve|
|00005960| 72 20 70 72 6f 63 65 64 | 75 72 65 73 22 20 4e 46 |r proced|ures" NF|
|00005970| 53 50 52 4f 43 5f 57 52 | 49 54 45 20 22 22 20 5c |SPROC_WR|ITE "" \|
|00005980| 66 49 4e 46 53 50 52 4f | 43 5f 57 52 49 54 45 5c |fINFSPRO|C_WRITE\|
|00005990| 66 50 0a 58 2e 44 53 0a | 73 74 72 75 63 74 20 77 |fP.X.DS.|struct w|
|000059a0| 72 69 74 65 61 72 67 73 | 20 7b 0a 09 66 68 61 6e |riteargs| {..fhan|
|000059b0| 64 6c 65 20 66 69 6c 65 | 3b 20 20 20 20 20 20 20 |dle file|; |
|000059c0| 20 20 20 0a 09 75 6e 73 | 69 67 6e 65 64 20 62 65 | ..uns|igned be|
|000059d0| 67 69 6e 6f 66 66 73 65 | 74 3b 20 20 0a 09 75 6e |ginoffse|t; ..un|
|000059e0| 73 69 67 6e 65 64 20 6f | 66 66 73 65 74 3b 20 20 |signed o|ffset; |
|000059f0| 20 20 20 20 20 0a 09 75 | 6e 73 69 67 6e 65 64 20 | ..u|nsigned |
|00005a00| 74 6f 74 61 6c 63 6f 75 | 6e 74 3b 20 20 20 0a 09 |totalcou|nt; ..|
|00005a10| 6e 66 73 64 61 74 61 20 | 64 61 74 61 3b 0a 7d 3b |nfsdata |data;.};|
|00005a20| 0a 0a 61 74 74 72 73 74 | 61 74 09 0a 4e 46 53 50 |..attrst|at..NFSP|
|00005a30| 52 4f 43 5f 57 52 49 54 | 45 28 77 72 69 74 65 61 |ROC_WRIT|E(writea|
|00005a40| 72 67 73 29 20 3d 20 38 | 3b 0a 58 2e 44 45 0a 58 |rgs) = 8|;.X.DE.X|
|00005a50| 2e 4b 45 0a 57 72 69 74 | 65 73 20 20 20 22 64 61 |.KE.Writ|es "da|
|00005a60| 74 61 22 20 62 65 67 69 | 6e 6e 69 6e 67 20 20 22 |ta" begi|nning "|
|00005a70| 6f 66 66 73 65 74 22 20 | 20 62 79 74 65 73 20 20 |offset" | bytes |
|00005a80| 66 72 6f 6d 20 74 68 65 | 20 20 62 65 67 69 6e 6e |from the| beginn|
|00005a90| 69 6e 67 20 20 6f 66 0a | 22 66 69 6c 65 22 2e 20 |ing of.|"file". |
|00005aa0| 20 54 68 65 20 66 69 72 | 73 74 20 62 79 74 65 20 | The fir|st byte |
|00005ab0| 20 6f 66 20 20 74 68 65 | 20 66 69 6c 65 20 69 73 | of the| file is|
|00005ac0| 20 61 74 20 20 6f 66 66 | 73 65 74 20 20 7a 65 72 | at off|set zer|
|00005ad0| 6f 2e 20 20 49 66 20 20 | 74 68 65 0a 72 65 70 6c |o. If |the.repl|
|00005ae0| 79 20 22 73 74 61 74 75 | 73 22 20 69 73 20 4e 46 |y "statu|s" is NF|
|00005af0| 53 5f 4f 4b 2c 20 74 68 | 65 6e 20 20 74 68 65 20 |S_OK, th|en the |
|00005b00| 72 65 70 6c 79 20 22 61 | 74 74 72 69 62 75 74 65 |reply "a|ttribute|
|00005b10| 73 22 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 0a |s" conta|ins the.|
|00005b20| 61 74 74 72 69 62 75 74 | 65 73 20 20 6f 66 20 74 |attribut|es of t|
|00005b30| 68 65 20 66 69 6c 65 20 | 61 66 74 65 72 20 74 68 |he file |after th|
|00005b40| 65 20 20 77 72 69 74 65 | 20 68 61 73 20 20 63 6f |e write| has co|
|00005b50| 6d 70 6c 65 74 65 64 2e | 20 20 54 68 65 20 77 72 |mpleted.| The wr|
|00005b60| 69 74 65 0a 6f 70 65 72 | 61 74 69 6f 6e 20 69 73 |ite.oper|ation is|
|00005b70| 20 61 74 6f 6d 69 63 2e | 20 20 44 61 74 61 20 66 | atomic.| Data f|
|00005b80| 72 6f 6d 20 74 68 69 73 | 20 20 63 61 6c 6c 20 74 |rom this| call t|
|00005b90| 6f 20 0a 58 2e 49 20 57 | 52 49 54 45 20 0a 77 69 |o .X.I W|RITE .wi|
|00005ba0| 6c 6c 20 6e 6f 74 20 62 | 65 20 6d 69 78 65 64 20 |ll not b|e mixed |
|00005bb0| 77 69 74 68 20 64 61 74 | 61 20 66 72 6f 6d 20 61 |with dat|a from a|
|00005bc0| 6e 6f 74 68 65 72 20 63 | 6c 69 65 6e 74 27 73 20 |nother c|lient's |
|00005bd0| 63 61 6c 6c 73 2e 0a 58 | 2e 4c 50 0a 4e 6f 74 65 |calls..X|.LP.Note|
|00005be0| 3a 20 54 68 65 20 61 72 | 67 75 6d 65 6e 74 73 20 |: The ar|guments |
|00005bf0| 22 62 65 67 69 6e 6f 66 | 66 73 65 74 22 20 61 6e |"beginof|fset" an|
|00005c00| 64 20 22 74 6f 74 61 6c | 63 6f 75 6e 74 22 20 61 |d "total|count" a|
|00005c10| 72 65 20 69 67 6e 6f 72 | 65 64 20 61 6e 64 0a 61 |re ignor|ed and.a|
|00005c20| 72 65 20 72 65 6d 6f 76 | 65 64 20 69 6e 20 74 68 |re remov|ed in th|
|00005c30| 65 20 6e 65 78 74 20 70 | 72 6f 74 6f 63 6f 6c 20 |e next p|rotocol |
|00005c40| 72 65 76 69 73 69 6f 6e | 2e 0a 58 2e 4b 53 0a 58 |revision|..X.KS.X|
|00005c50| 2e 4e 48 20 33 0a 5c 26 | 43 72 65 61 74 65 20 46 |.NH 3.\&|Create F|
|00005c60| 69 6c 65 0a 58 2e 49 58 | 20 22 4e 46 53 20 73 65 |ile.X.IX| "NFS se|
|00005c70| 72 76 65 72 20 70 72 6f | 63 65 64 75 72 65 73 22 |rver pro|cedures"|
|00005c80| 20 4e 46 53 50 52 4f 43 | 5f 43 52 45 41 54 45 20 | NFSPROC|_CREATE |
|00005c90| 22 22 20 5c 66 49 4e 46 | 53 50 52 4f 43 5f 43 52 |"" \fINF|SPROC_CR|
|00005ca0| 45 41 54 45 5c 66 50 0a | 58 2e 44 53 0a 73 74 72 |EATE\fP.|X.DS.str|
|00005cb0| 75 63 74 20 63 72 65 61 | 74 65 61 72 67 73 20 7b |uct crea|teargs {|
|00005cc0| 0a 09 64 69 72 6f 70 61 | 72 67 73 20 77 68 65 72 |..diropa|rgs wher|
|00005cd0| 65 3b 0a 09 73 61 74 74 | 72 20 61 74 74 72 69 62 |e;..satt|r attrib|
|00005ce0| 75 74 65 73 3b 0a 7d 3b | 0a 0a 64 69 72 6f 70 72 |utes;.};|..diropr|
|00005cf0| 65 73 0a 4e 46 53 50 52 | 4f 43 5f 43 52 45 41 54 |es.NFSPR|OC_CREAT|
|00005d00| 45 28 63 72 65 61 74 65 | 61 72 67 73 29 20 3d 20 |E(create|args) = |
|00005d10| 39 3b 0a 58 2e 44 45 0a | 58 2e 4b 45 0a 54 68 65 |9;.X.DE.|X.KE.The|
|00005d20| 20 66 69 6c 65 20 22 6e | 61 6d 65 22 20 69 73 20 | file "n|ame" is |
|00005d30| 63 72 65 61 74 65 64 20 | 20 69 6e 20 74 68 65 20 |created | in the |
|00005d40| 64 69 72 65 63 74 6f 72 | 79 20 67 69 76 65 6e 20 |director|y given |
|00005d50| 20 62 79 20 22 64 69 72 | 22 2e 20 20 20 54 68 65 | by "dir|". The|
|00005d60| 0a 69 6e 69 74 69 61 6c | 20 20 61 74 74 72 69 62 |.initial| attrib|
|00005d70| 75 74 65 73 20 6f 66 20 | 74 68 65 20 20 6e 65 77 |utes of |the new|
|00005d80| 20 66 69 6c 65 20 20 61 | 72 65 20 67 69 76 65 6e | file a|re given|
|00005d90| 20 62 79 20 22 61 74 74 | 72 69 62 75 74 65 73 22 | by "att|ributes"|
|00005da0| 2e 20 20 41 0a 72 65 70 | 6c 79 20 22 73 74 61 74 |. A.rep|ly "stat|
|00005db0| 75 73 22 20 20 6f 66 20 | 4e 46 53 5f 4f 4b 20 69 |us" of |NFS_OK i|
|00005dc0| 6e 64 69 63 61 74 65 73 | 20 74 68 61 74 20 74 68 |ndicates| that th|
|00005dd0| 65 20 20 66 69 6c 65 20 | 77 61 73 20 63 72 65 61 |e file |was crea|
|00005de0| 74 65 64 2c 20 61 6e 64 | 0a 72 65 70 6c 79 20 22 |ted, and|.reply "|
|00005df0| 66 69 6c 65 22 20 20 20 | 61 6e 64 20 20 20 72 65 |file" |and re|
|00005e00| 70 6c 79 20 22 61 74 74 | 72 69 62 75 74 65 73 22 |ply "att|ributes"|
|00005e10| 20 20 61 72 65 20 20 20 | 20 69 74 73 20 66 69 6c | are | its fil|
|00005e20| 65 20 68 61 6e 64 6c 65 | 20 61 6e 64 0a 61 74 74 |e handle| and.att|
|00005e30| 72 69 62 75 74 65 73 2e | 20 20 20 41 6e 79 20 20 |ributes.| Any |
|00005e40| 6f 74 68 65 72 20 72 65 | 70 6c 79 20 20 22 73 74 |other re|ply "st|
|00005e50| 61 74 75 73 22 20 20 6d | 65 61 6e 73 20 74 68 61 |atus" m|eans tha|
|00005e60| 74 20 20 74 68 65 20 6f | 70 65 72 61 74 69 6f 6e |t the o|peration|
|00005e70| 0a 66 61 69 6c 65 64 20 | 61 6e 64 20 6e 6f 20 66 |.failed |and no f|
|00005e80| 69 6c 65 20 77 61 73 20 | 63 72 65 61 74 65 64 2e |ile was |created.|
|00005e90| 0a 58 2e 4c 50 0a 4e 6f | 74 65 3a 20 54 68 69 73 |.X.LP.No|te: This|
|00005ea0| 20 20 72 6f 75 74 69 6e | 65 20 73 68 6f 75 6c 64 | routin|e should|
|00005eb0| 20 70 61 73 73 20 20 61 | 6e 20 65 78 63 6c 75 73 | pass a|n exclus|
|00005ec0| 69 76 65 20 63 72 65 61 | 74 65 20 66 6c 61 67 2c |ive crea|te flag,|
|00005ed0| 20 6d 65 61 6e 69 6e 67 | 0a 22 63 72 65 61 74 65 | meaning|."create|
|00005ee0| 20 74 68 65 20 66 69 6c | 65 20 6f 6e 6c 79 20 69 | the fil|e only i|
|00005ef0| 66 20 69 74 20 69 73 20 | 6e 6f 74 20 61 6c 72 65 |f it is |not alre|
|00005f00| 61 64 79 20 74 68 65 72 | 65 22 2e 0a 58 2e 4b 53 |ady ther|e"..X.KS|
|00005f10| 0a 58 2e 4e 48 20 33 0a | 5c 26 52 65 6d 6f 76 65 |.X.NH 3.|\&Remove|
|00005f20| 20 46 69 6c 65 0a 58 2e | 49 58 20 22 4e 46 53 20 | File.X.|IX "NFS |
|00005f30| 73 65 72 76 65 72 20 70 | 72 6f 63 65 64 75 72 65 |server p|rocedure|
|00005f40| 73 22 20 4e 46 53 50 52 | 4f 43 5f 52 45 4d 4f 56 |s" NFSPR|OC_REMOV|
|00005f50| 45 20 22 22 20 5c 66 49 | 4e 46 53 50 52 4f 43 5f |E "" \fI|NFSPROC_|
|00005f60| 52 45 4d 4f 56 45 5c 66 | 50 0a 58 2e 44 53 0a 73 |REMOVE\f|P.X.DS.s|
|00005f70| 74 61 74 0a 4e 46 53 50 | 52 4f 43 5f 52 45 4d 4f |tat.NFSP|ROC_REMO|
|00005f80| 56 45 28 64 69 72 6f 70 | 61 72 67 73 29 20 3d 20 |VE(dirop|args) = |
|00005f90| 31 30 3b 0a 58 2e 44 45 | 0a 58 2e 4b 45 0a 54 68 |10;.X.DE|.X.KE.Th|
|00005fa0| 65 20 66 69 6c 65 20 22 | 6e 61 6d 65 22 20 69 73 |e file "|name" is|
|00005fb0| 20 20 72 65 6d 6f 76 65 | 64 20 66 72 6f 6d 20 74 | remove|d from t|
|00005fc0| 68 65 20 64 69 72 65 63 | 74 6f 72 79 20 20 67 69 |he direc|tory gi|
|00005fd0| 76 65 6e 20 62 79 20 22 | 64 69 72 22 2e 20 20 20 |ven by "|dir". |
|00005fe0| 41 0a 72 65 70 6c 79 20 | 6f 66 20 4e 46 53 5f 4f |A.reply |of NFS_O|
|00005ff0| 4b 20 6d 65 61 6e 73 20 | 74 68 65 20 64 69 72 65 |K means |the dire|
|00006000| 63 74 6f 72 79 20 65 6e | 74 72 79 20 77 61 73 20 |ctory en|try was |
|00006010| 72 65 6d 6f 76 65 64 2e | 0a 58 2e 4c 50 0a 4e 6f |removed.|.X.LP.No|
|00006020| 74 65 3a 20 70 6f 73 73 | 69 62 6c 79 20 6e 6f 6e |te: poss|ibly non|
|00006030| 2d 69 64 65 6d 70 6f 74 | 65 6e 74 20 6f 70 65 72 |-idempot|ent oper|
|00006040| 61 74 69 6f 6e 2e 0a 58 | 2e 4b 53 0a 58 2e 4e 48 |ation..X|.KS.X.NH|
|00006050| 20 33 0a 5c 26 52 65 6e | 61 6d 65 20 46 69 6c 65 | 3.\&Ren|ame File|
|00006060| 0a 58 2e 49 58 20 22 4e | 46 53 20 73 65 72 76 65 |.X.IX "N|FS serve|
|00006070| 72 20 70 72 6f 63 65 64 | 75 72 65 73 22 20 4e 46 |r proced|ures" NF|
|00006080| 53 50 52 4f 43 5f 52 45 | 4e 41 4d 45 20 22 22 20 |SPROC_RE|NAME "" |
|00006090| 5c 66 49 4e 46 53 50 52 | 4f 43 5f 52 45 4e 41 4d |\fINFSPR|OC_RENAM|
|000060a0| 45 5c 66 50 0a 58 2e 44 | 53 0a 73 74 72 75 63 74 |E\fP.X.D|S.struct|
|000060b0| 20 72 65 6e 61 6d 65 61 | 72 67 73 20 7b 0a 09 64 | renamea|rgs {..d|
|000060c0| 69 72 6f 70 61 72 67 73 | 20 66 72 6f 6d 3b 09 0a |iropargs| from;..|
|000060d0| 09 64 69 72 6f 70 61 72 | 67 73 20 74 6f 3b 0a 7d |.diropar|gs to;.}|
|000060e0| 3b 0a 0a 73 74 61 74 0a | 4e 46 53 50 52 4f 43 5f |;..stat.|NFSPROC_|
|000060f0| 52 45 4e 41 4d 45 28 72 | 65 6e 61 6d 65 61 72 67 |RENAME(r|enamearg|
|00006100| 73 29 20 3d 20 31 31 3b | 0a 58 2e 44 45 0a 58 2e |s) = 11;|.X.DE.X.|
|00006110| 4b 45 0a 54 68 65 20 65 | 78 69 73 74 69 6e 67 20 |KE.The e|xisting |
|00006120| 66 69 6c 65 20 22 66 72 | 6f 6d 2e 6e 61 6d 65 22 |file "fr|om.name"|
|00006130| 20 69 6e 20 20 74 68 65 | 20 64 69 72 65 63 74 6f | in the| directo|
|00006140| 72 79 20 67 69 76 65 6e | 20 62 79 20 22 66 72 6f |ry given| by "fro|
|00006150| 6d 2e 64 69 72 22 0a 69 | 73 20 72 65 6e 61 6d 65 |m.dir".i|s rename|
|00006160| 64 20 74 6f 20 22 74 6f | 2e 6e 61 6d 65 22 20 69 |d to "to|.name" i|
|00006170| 6e 20 74 68 65 20 64 69 | 72 65 63 74 6f 72 79 20 |n the di|rectory |
|00006180| 67 69 76 65 6e 20 62 79 | 20 22 74 6f 2e 64 69 72 |given by| "to.dir|
|00006190| 22 2e 20 20 49 66 20 74 | 68 65 0a 72 65 70 6c 79 |". If t|he.reply|
|000061a0| 20 20 69 73 20 0a 58 2e | 49 20 4e 46 53 5f 4f 4b | is .X.|I NFS_OK|
|000061b0| 20 2c 0a 74 68 65 20 66 | 69 6c 65 20 77 61 73 20 | ,.the f|ile was |
|000061c0| 20 72 65 6e 61 6d 65 64 | 2e 20 20 54 68 65 20 20 | renamed|. The |
|000061d0| 0a 52 45 4e 41 4d 45 20 | 20 0a 6f 70 65 72 61 74 |.RENAME | .operat|
|000061e0| 69 6f 6e 20 69 73 0a 61 | 74 6f 6d 69 63 20 6f 6e |ion is.a|tomic on|
|000061f0| 20 74 68 65 20 73 65 72 | 76 65 72 3b 20 69 74 20 | the ser|ver; it |
|00006200| 63 61 6e 6e 6f 74 20 62 | 65 20 69 6e 74 65 72 72 |cannot b|e interr|
|00006210| 75 70 74 65 64 20 69 6e | 20 74 68 65 20 6d 69 64 |upted in| the mid|
|00006220| 64 6c 65 2e 0a 58 2e 4c | 50 0a 4e 6f 74 65 3a 20 |dle..X.L|P.Note: |
|00006230| 70 6f 73 73 69 62 6c 79 | 20 6e 6f 6e 2d 69 64 65 |possibly| non-ide|
|00006240| 6d 70 6f 74 65 6e 74 20 | 6f 70 65 72 61 74 69 6f |mpotent |operatio|
|00006250| 6e 2e 0a 58 2e 4b 53 0a | 58 2e 4e 48 20 33 0a 5c |n..X.KS.|X.NH 3.\|
|00006260| 26 43 72 65 61 74 65 20 | 4c 69 6e 6b 20 74 6f 20 |&Create |Link to |
|00006270| 46 69 6c 65 0a 58 2e 49 | 58 20 22 4e 46 53 20 73 |File.X.I|X "NFS s|
|00006280| 65 72 76 65 72 20 70 72 | 6f 63 65 64 75 72 65 73 |erver pr|ocedures|
|00006290| 22 20 4e 46 53 50 52 4f | 43 5f 4c 49 4e 4b 20 22 |" NFSPRO|C_LINK "|
|000062a0| 22 20 5c 66 49 4e 46 53 | 50 52 4f 43 5f 4c 49 4e |" \fINFS|PROC_LIN|
|000062b0| 4b 5c 66 50 0a 58 2e 44 | 53 0a 73 74 72 75 63 74 |K\fP.X.D|S.struct|
|000062c0| 20 6c 69 6e 6b 61 72 67 | 73 20 7b 0a 09 66 68 61 | linkarg|s {..fha|
|000062d0| 6e 64 6c 65 20 66 72 6f | 6d 3b 0a 09 64 69 72 6f |ndle fro|m;..diro|
|000062e0| 70 61 72 67 73 20 74 6f | 3b 0a 7d 3b 0a 0a 73 74 |pargs to|;.};..st|
|000062f0| 61 74 0a 4e 46 53 50 52 | 4f 43 5f 4c 49 4e 4b 28 |at.NFSPR|OC_LINK(|
|00006300| 6c 69 6e 6b 61 72 67 73 | 29 20 3d 20 31 32 3b 0a |linkargs|) = 12;.|
|00006310| 58 2e 44 45 0a 58 2e 4b | 45 0a 43 72 65 61 74 65 |X.DE.X.K|E.Create|
|00006320| 73 20 74 68 65 20 20 66 | 69 6c 65 20 22 74 6f 2e |s the f|ile "to.|
|00006330| 6e 61 6d 65 22 20 20 69 | 6e 20 74 68 65 20 64 69 |name" i|n the di|
|00006340| 72 65 63 74 6f 72 79 20 | 20 67 69 76 65 6e 20 20 |rectory | given |
|00006350| 20 62 79 20 22 74 6f 2e | 64 69 72 22 2c 0a 77 68 | by "to.|dir",.wh|
|00006360| 69 63 68 20 69 73 20 61 | 20 68 61 72 64 20 6c 69 |ich is a| hard li|
|00006370| 6e 6b 20 74 6f 20 74 68 | 65 20 65 78 69 73 74 69 |nk to th|e existi|
|00006380| 6e 67 20 66 69 6c 65 20 | 67 69 76 65 6e 20 20 62 |ng file |given b|
|00006390| 79 20 22 66 72 6f 6d 22 | 2e 20 20 49 66 20 74 68 |y "from"|. If th|
|000063a0| 65 0a 72 65 74 75 72 6e | 20 76 61 6c 75 65 20 69 |e.return| value i|
|000063b0| 73 20 0a 58 2e 49 20 4e | 46 53 5f 4f 4b 20 2c 0a |s .X.I N|FS_OK ,.|
|000063c0| 61 20 6c 69 6e 6b 20 77 | 61 73 20 63 72 65 61 74 |a link w|as creat|
|000063d0| 65 64 2e 20 20 41 6e 79 | 20 6f 74 68 65 72 20 72 |ed. Any| other r|
|000063e0| 65 74 75 72 6e 20 76 61 | 6c 75 65 0a 69 6e 64 69 |eturn va|lue.indi|
|000063f0| 63 61 74 65 73 20 61 6e | 20 65 72 72 6f 72 2c 20 |cates an| error, |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.