/usr/share/doc/HOWTO/ja-html/kernel-venus-protocol-4.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE> The Venus kernel interface: $B%3!<%k%l%Y%k$N%$%s%?!<%U%'!<%9(B </TITLE>
<LINK HREF="kernel-venus-protocol-5.html" REL=next>
<LINK HREF="kernel-venus-protocol-3.html" REL=previous>
<LINK HREF="kernel-venus-protocol.html#toc4" REL=contents>
</HEAD>
<BODY>
<A HREF="kernel-venus-protocol-5.html">$B<!$N%Z!<%8(B</A>
<A HREF="kernel-venus-protocol-3.html">$BA0$N%Z!<%8(B</A>
<A HREF="kernel-venus-protocol.html#toc4">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s4">4. $B%3!<%k%l%Y%k$N%$%s%?!<%U%'!<%9(B </A></H2>
<P>
<P>$B$3$N%;%/%7%g%s$O(B Coda FS $B%I%i%$%P$,(B Venus $B$K9T$($k(B upcall $B$K$D$$$F5-=R$7(B
$B$^$9!#$3$l$i$=$l$>$l$N(B upcall $B$O;0$D$N9=B$BN$r;HMQ$79T$o$l$^$9(B - $B%+!<%M(B
$B%k$+$i(B Venus $B$X$NDL?.MQ(B <CODE>inputArgs</CODE>$B!"(BVenus $B$+$i%+!<%M%k$KJV$k(B
<CODE>outputArgs</CODE>$B!":G8e$K(B <CODE>cfs_downcalls</CODE> $B$G(B Venus $B$+$i%+!<%M%k$r5/F0$9(B
$B$k:]$K;H$o$l$^$9!#(B
<P>
<PRE>
union inputArgs {
struct cfs_in_hdr ih; /* NB: every struct below begins with an ih */
struct cfs_open_in cfs_open;
struct cfs_close_in cfs_close;
struct cfs_ioctl_in cfs_ioctl;
struct cfs_getattr_in cfs_getattr;
struct cfs_setattr_in cfs_setattr;
struct cfs_access_in cfs_access;
struct cfs_lookup_in cfs_lookup;
struct cfs_create_in cfs_create;
struct cfs_remove_in cfs_remove;
struct cfs_link_in cfs_link;
struct cfs_rename_in cfs_rename;
struct cfs_mkdir_in cfs_mkdir;
struct cfs_rmdir_in cfs_rmdir;
struct cfs_readdir_in cfs_readdir;
struct cfs_symlink_in cfs_symlink;
struct cfs_readlink_in cfs_readlink;
struct cfs_fsync_in cfs_fsync;
struct cfs_inactive_in cfs_inactive;
struct cfs_vget_in cfs_vget;
struct cfs_rdwr_in cfs_rdwr;
struct cfs_open_by_path_in cfs_open_by_path;
};
</PRE>
<P>
<PRE>
union outputArgs {
struct cfs_out_hdr oh; /* NB: every struct below begins with an oh */
struct cfs_root_out cfs_root;
struct cfs_open_out cfs_open;
struct cfs_ioctl_out cfs_ioctl;
struct cfs_getattr_out cfs_getattr;
struct cfs_lookup_out cfs_lookup;
struct cfs_create_out cfs_create;
struct cfs_mkdir_out cfs_mkdir;
struct cfs_readdir_out cfs_readdir;
struct cfs_readlink_out cfs_readlink;
struct cfs_vget_out cfs_vget;
struct cfs_purgeuser_out cfs_purgeuser;
struct cfs_zapfile_out cfs_zapfile;
struct cfs_zapdir_out cfs_zapdir;
struct cfs_zapvnode_out cfs_zapvnode;
struct cfs_purgefid_out cfs_purgefid;
struct cfs_rdwr_out cfs_rdwr;
struct cfs_replace_out cfs_replace;
struct cfs_open_by_path_out cfs_open_by_path;
};
</PRE>
<P>
<PRE>
union cfs_downcalls {
/* CFS_FLUSH is also a down call */
struct cfs_purgeuser_out purgeuser;
struct cfs_zapfile_out zapfile;
struct cfs_zapdir_out zapdir;
struct cfs_zapvnode_out zapvnode;
struct cfs_purgefid_out purgefid;
struct cfs_replace_out replace;
};
</PRE>
<P>$B%X%C%@!<$O$9$Y$F$N%3!<%k$K6&DL$G!"%W%m%;%9!"G'>Z!"(Bopcode $B$N>pJs$r4^$_$^(B
$B$9(B -
<P>
<PRE>
struct cfs_in_hdr {
unsigned long opcode;
unsigned long unique; /* Keep multiple outstanding msgs distinct */
u_short pid; /* Common to all */
u_short pgid; /* Common to all */
u_short sid; /* to become the PAG */
struct coda_cred cred; /* to become a PAG */
};
/* Really important that opcode and unique are 1st two fields! */
struct cfs_out_hdr {
unsigned long opcode;
unsigned long unique;
unsigned long result;
};
</PRE>
<P>$B@h$K?J$`A0$K!"MM!9$J%U%#!<%k%I$NLr3d$r@bL@$7$^$9!#(BinputArgs $B$O!"(BVenus $B$+(B
$B$iMW5a$5$l$k%5!<%S%9$N<oN`$rDj5A$7$?(B <CODE>opcode</CODE> $B$G;O$^$j$^$9!#(B30 $B$[$I$N(B
upcall $B$,$"$j!"8e$G@bL@$7$^$9!#(B<CODE>unique</CODE> $B%U%#!<%k%I$O%a%C%;!<%8$r0l0U(B
$B$K<1JL$9$k%f%K!<%/$J?t$G(B inputArg $B$r<1JL$7$^$9!#%W%m%;%9$*$h$S%W%m%;%9%0(B
$B%k!<%W$N(B id $B$bEO$5$l$^$9!#:G8e$K!"8F$S=P$785$N?.MjEY$N>pJs$,4^$^$l$^$9!#(B
<P>$BFCDj$N%3!<%k$rD4$Y$kA0$K!"%+!<%M%k$H(B Venus $B$K6&M-$5$l$kMM!9$J%G!<%?9=B$(B
$BBN$rCN$kI,MW$,$"$j$^$9!#(B
<P>
<H2><A NAME="ss4.1">4.1 $B%+!<%M%k$H(B Venus $B$K6&M-$5$l$k%G!<%?9=B$BN(B </A>
</H2>
<P>
<P><CODE>CodaCred</CODE> $B9=B$BN$O(B user $B$*$h$S(B group id $B$K4X$9$kMM!9$J$b$N$rDj5A$7!"(B
$B8F$S=P$785$N%W%m%;%9$K$h$C$F@_Dj$5$l$^$9!#(B<CODE>vuid_t</CODE> $B$*$h$S(B <CODE>guid_t</CODE>
$B$O(B 32 $B%S%C%HId9f$J$7@0?t$G$9!#G[NsFb$N(B group $B%a%s%P%7%C%W$bDj5A$7$^$9!#(B
Unix $B>e$G$O(B CodaCred $B$O(B Coda $BMQ$N$h$$%;%-%e%j%F%#$N;EAH$_$N<BAu$K==J,$G(B
$B$"$k$HJ,$+$C$F$$$^$9$,!"(BWindows $B4D6-$G$N%;%-%e%j%F%#4D6-$N@.=O$K$"$o$;$?(B
$B9=B$BN$N=$@5$r$7$J$1$l$P$J$i$J$$$+$b$7$l$^$;$s!#(B
<PRE>
struct CodaCred {
vuid_t cr_uid, cr_euid, cr_suid, cr_fsuid; /* Real, efftve, set, fs uid*/
vgid_t cr_gid, cr_egid, cr_sgid, cr_fsgid; /* same for groups */
vgid_t cr_groups[NGROUPS]; /* Group membership for caller */
};
</PRE>
<P><B>$BCm5-(B</B> Venus $BFb$G(B CodaCreds $B$,I,MW$+$I$&$+$O!"5?Ld$G$9!#:G=*E*$K!"(B
Venus $B$O(B $B%G%U%)%k%H$N(B uid/gid $B$r;}$C$?%U%!%$%k$r:n@.$9$k$H$O$$$(!"(BVenus
$B$O(B group $B$K$D$$$FCN$j$^$;$s!#$?$V$s(B group $B%a%s%P%7%C%W$N%j%9%H$OM>J,$G$9!#(B
<P>
<P>$B<!$N%"%$%F%`$O(B Coda $B%U%!%$%k$r<1JL$9$k$?$a$K;H$o$l$k4pK\E*$J<1JL;R(B
<CODE>ViceFid</CODE> $B$G$9!#%U%!%$%k$N(B fid $B$O(B <EM>cell</EM> $BFb$N(B Coda $B%U%!%$%k%7(B
$B%9%F%`$N%U%!%$%k$b$7$/$O%G%#%l%/%H%j$r0l0UE*$KDj5A$7$^$9!#(B
<BLOCKQUOTE><EM>cell</EM> $B$OC10l$N(B system control machine (SCM) $B$NJ]8n2<$G(B
$B2TF0$9$k(B Coda $B%5!<%P$N%0%k!<%W$G$9!#(B</BLOCKQUOTE>
<P>
<PRE>
typedef struct ViceFid {
VolumeId Volume;
VnodeId Vnode;
Unique_t Unique;
} ViceFid;
</PRE>
<P>$B9=@.Cf$N3F%U%#!<%k%I(B - <CODE>VolumeId,VnodeId, Unique_t</CODE> $B$OId9f$J$7(B 32 $B%S%C(B
$B%H@0?t$G$9!#(BCoda cell $B$r<1JL$9$k$?$a$K$b$&0l$D%U%#!<%k%I$rA0$KIU$1$kI,MW(B
$B$,$"$k$@$m$&$H9M$($F$$$^$9(B - $B$3$l$O$?$V$s!"(BDNS $B$K$h$C$F(B Coda cell $B$r;XDj(B
$B$9$k(B Ipv6 $B%5%$%:$N(B IP $B%"%I%l%9$N7A<0$K$J$k$G$7$g$&!#(B
<P>Venus $B$H%+!<%M%k4V$G6&M-$5$l$?<!$K=EMW$J9=B$BN$O%U%!%$%k$NB0@-$G$9!#B3$/(B
$B9=B$BN$O>pJs8r49$K;HMQ$5$l$^$9!#$=$l$O%G%P%$%9%U%!%$%k8~$1$N%5%]!<%H(B ($B8=(B
$B>u(B Coda $B$K$O$"$j$^$;$s(B) $B$N$h$&$J>-Mh$N3HD%MQ$N>l=j$,$"$j$^$9!#(B
<P>
<PRE>
struct coda_vattr {
enum coda_vtype va_type; /* vnode type (for create) */
u_short va_mode; /* files access mode and type */
short va_nlink; /* number of references to file */
vuid_t va_uid; /* owner user id */
vgid_t va_gid; /* owner group id */
long va_fsid; /* file system id (dev for now) */
long va_fileid; /* file id */
u_quad_t va_size; /* file size in bytes */
long va_blocksize; /* blocksize preferred for i/o */
struct timespec va_atime; /* time of last access */
struct timespec va_mtime; /* time of last modification */
struct timespec va_ctime; /* time file changed */
u_long va_gen; /* generation number of file */
u_long va_flags; /* flags defined for file */
dev_t va_rdev; /* device special file represents */
u_quad_t va_bytes; /* bytes of disk space held by file */
u_quad_t va_filerev; /* file modification number */
u_int va_vaflags; /* operations flags, see below */
long va_spare; /* remain quad aligned */
};
</PRE>
<P>
<H2><A NAME="ss4.2">4.2 pioctl $B%$%s%?!<%U%'!<%9(B </A>
</H2>
<P>
<P>Coda $B%U%!%$%k%7%9%F%`$K8GM-$NMW5a$r!"(Bpioctl $B%$%s%?!<%U%'!<%9$r2p$7$F!"%"(B
$B%W%j%1!<%7%g%s$+$i9T$&$3$H$,$G$-$^$9!#(Bpioctl $B$O2>A[%U%!%$%k(B
<CODE>/coda/.CONTROL</CODE> $B$KBP$9$kIaDL$N(B ioctl $B$H$7$F<BAu$5$l$^$9!#(Bpioctl
$B%3!<%k$O$3$N%U%!%$%k$r3+$-!"%U%!%$%k%O%s%I%k$rF@$F(B ioctl $B%3!<%k$r9T$$$^(B
$B$9!#:G8e$K$=$N%U%!%$%k$rJD$8$^$9!#(B
<P>$B$3$3$G$N%+!<%M%k$N4XM?$O(B open, close, ioctl $B$X$N%a%C%;!<%8EO$7!"(Bpioctl
$B%G!<%?%P%C%U%!Fb$N%Q%9$,(B Coda $B%U%!%$%k%7%9%F%`$NCf$N%U%!%$%k$G$"$k$3$H$N(B
$B3NG'!"$N;EAH$_$NDs6!$K@)8B$5$l$^$9!#(B
<P>$B%+!<%M%k$O<!$N7A<0$N%G!<%?%Q%1%C%H$rEO$5$l$^$9(B -
<PRE>
struct {
const char *path;
struct ViceIoctl vidata;
int follow;
} data;
</PRE>
<P>$B$3$3$G(B
<P>
<PRE>
struct ViceIoctl {
caddr_t in, out; /* Data to be transferred in, or out */
short in_size; /* Size of input buffer <= 2K */
short out_size; /* Maximum size of output buffer, <= 2K */
};
</PRE>
<P><CODE>path</CODE>$B$O(B Coda $B%U%!%$%k$G$J$1$l$P$J$i$:!"$=$&$G$J$1$l$P(B <CODE>ioctl</CODE>
upcall $B$O9T$o$l$J$$$G$7$g$&!#(B
<P><B>$BCm5-(B</B> $B%G!<%?9=B$BN$*$h$S%3!<%I$O$`$A$c$/$A$c$G$9!#$3$l$r@0M}$9$kI,(B
$BMW$,$"$j$^$9!#(B
<P>$B8D!9$N%3!<%k$r@bL@$7$^$9(B -
<P>
<H2><A NAME="ss4.3">4.3 root</A>
</H2>
<P>
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>$B6u(B
<DT><B>$B=PNO(B</B><DD><P>
<PRE>
struct cfs_root_out {
ViceFid VFid;
} cfs_root;
</PRE>
</DL>
<P><B>$B>\:Y(B</B> $B$3$N%3!<%k$O(B Coda $B%U%!%$%k%7%9%F%`$N=i4|2=Cf$K(B Venus $B$X9T$o$l(B
$B$^$9!#(B<CODE>$B7k2L(B</CODE>$B$,(B 0 $B$J$i!"(B<CODE>cfs_root</CODE> $B9=B$BN$K$O(B Coda $B%U%!%$%k%7%9%F%`(B
$B$N%k!<%H$N(B ViceFid $B$,F~$C$F$$$^$9!#(B0 $B$G$J$$7k2L$,@8@.$5$l$k>l9g!"$=$NCM(B
$B$O(B Coda $B%U%!%$%k%7%9%F%`$N%k!<%H$r8+$D$1$k:]$K(B Venus $B$,LdBj$K=P9g$C$?$3(B
$B$H$r<($9%W%i%C%H%U%)!<%`$K0MB8$7$?%(%i!<%3!<%I$G$9!#(B
<P>
<H2><A NAME="ss4.4">4.4 lookup</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%G%#%l%/%H%j$K$=$N(B ViceFid $B$*$h$S%*%V%8%'%/%H$N<oJL$,B8:_$9$k(B
$B$+C5$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_lookup_in {
ViceFid VFid;
char *name; /* Place holder for data. */
} cfs_lookup;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>
<PRE>
struct cfs_lookup_out {
ViceFid VFid;
int vtype;
} cfs_lookup;
</PRE>
</DL>
<P><B>$B>\:Y(B</B> $B$3$N%3!<%k$O%G%#%l%/%H%j%(%s%H%j$N(B ViceFid $B$*$h$S(B filetype $B$r(B
$B7h$a$k$?$a$K9T$o$l$^$9!#MW5a$5$l$?%G%#%l%/%H%j%(%s%H%j$O(B <CODE>name</CODE> $B$H$$(B
$B$&L>A0$r;}$A!"(BVenus $B$O(B <CODE>cfs_lookup_in.VFid</CODE> $B$G;XDj$5$l$?%G%#%l%/%H%j(B
$B$r8!:w$9$k$G$7$g$&!#(B<CODE>$B7k2L(B</CODE>$B$O!"L>A0$,B8:_$7$J$$$+!"$=$l$r8+$D$1$k:]$K(B
$BLdBj$K=P9g$C$?(B ($BNc$($P%3%M%/%7%g%s$,@Z$l$?(B) $B$3$H$r<($9$+$b$7$l$^$;$s!#(B
<CODE>$B7k2L(B</CODE>$B$,(B 0 $B$J$i!"%U%#!<%k%I(B <CODE>cfs_lookup_out.VFid</CODE> $B$OBP>]$N(B ViceFid
$B$,F~$j!"(B<CODE>cfs_lookup_out.vtype</CODE> $B$K$O%*%V%8%'%/%H$N<oJL$r<($9L>A0(B
<CODE>coda_vtype</CODE> $B$,F~$j$^$9!#(B
<P>$B%*%V%8%'%/%H$NL>A0$O:GBgD9(B CFS_MAXNAMLEN $B$N(B 8 $B%S%C%HJ8;zNs$G!"8=:_(B
CFS_MAXNAMLEN $B$O(B 256 $B$K@_Dj$5$l$F$$$^$9(B ($BJ8;z?t$O(B 0 $B%?!<%_%M!<%?J8;z$r4^(B
$B$_$^$9(B)$B!#(B
<P>$B%*%V%8%'%/%H$,%+!<%M%k$N%M!<%`%-%c%C%7%e$KCV$+$l$F$O$J$i$J$$$3$H$r<($9(B
<CODE>CFS_NOCACHE</CODE> $B$G!"(BVenus $B$,%U%#!<%k%I(B <CODE>cfs_lookup.vtype</CODE> $B$r%S%C%HOB(B
$B$7$F$$$k$3$H$rM}2r$9$k$3$H$OHs>o$K=EMW$G$9!#3F%[%9%H$G6%9g$9$k%U%!%$%k$d(B
Coda $B4IM}2<$N%U%!%$%k%7%9%F%`Fb$N<B:]$N%U%!%$%k$O%+!<%M%k$K7h$7$F%-%c%C(B
$B%7%e$5$l$F$O$J$i$:!"(Blookup $B$OKh2s(B Venus $B$K9T$o$l$J$1$l$P$J$j$^$;$s!#(B
<P><B>$BCm5-(B</B> vtype $B$N<oJL$O8=>u8m$j$G$9!#(B<CODE>coda_vtype</CODE> $B$K$J$k$Y$-$G$9!#(B
Linux $B$O(B <CODE>CFS_NOCACHE</CODE> $B$rB0@-$r9MN8$7$^$;$s$,!"9MN8$9$Y$-$G$9!#(B
<P>
<H2><A NAME="ss4.5">4.5 getattr</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%U%!%$%k$NB0@-$rF@$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_getattr_in {
ViceFid VFid;
struct coda_vattr attr; /* XXXXX */
} cfs_getattr;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>
<PRE>
struct cfs_getattr_out {
struct coda_vattr attr;
} cfs_getattr;
</PRE>
</DL>
<P><B>$B>\:Y(B</B>
$B$3$N%3!<%k$O(B fid $B$G;XDj$5$l$?%U%!%$%k$NB0@-$rJV$7$^$9!#(B
<P><B>$B%(%i!<(B</B> fid $B$r;}$C$?%*%V%8%'%/%H$,B8:_$7$J$$$+%"%/%;%9$G$-$J$$>l9g$d(B
$B8F$S=P$785$KB0@-$r8+$k%Q!<%_%C%7%g%s$,$J$$>l9g!"%(%i!<$,5/$-$k2DG=@-$,$"(B
$B$j$^$9!#(B
<P><B>$BCm5-(B</B> $B%+!<%M%k(B FS $B%I%i%$%P(B (Linux$B!"(BNT, Windows 95) $B$NB?$/$O!"FbIt$N(B
"inode" $B$d(B "FileHandle" $B$N%$%s%9%?%s%9$r:n@.$9$k(B
$B$?$a$K!"(BFid $B$@$1$G$J$/B0@-$bF@$kI,MW$,$"$j$^$9!#$3$N$h$&$J%7%9%F%`$G$O(B
Venus/$B%+!<%M%kAj8_:nMQ%l%Y%k$H(B RPC $B%l%Y%k$NN>J}$G!"(B<EM>lookup</EM> $B$H(B
<EM>getattr</EM> $B%3!<%k$rAH9g$o$;$k$3$H$K$h$C$F%Q%U%)!<%^%s%9$rCx$7$/8~>e$G(B
$B$-$k$+$b$7$l$^$;$s!#(B
<P>$BF~NO$N0z$-?tFb$N(B <CODE>vattr</CODE> $B9=B$BN$OM>J,$G:o=|$5$l$k$Y$-$G$9!#(B
<P>
<H2><A NAME="ss4.6">4.6 setattr</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%U%!%$%k$NB0@-$r@_Dj$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_setattr_in {
ViceFid VFid;
struct coda_vattr attr;
} cfs_setattr;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>$B6u(B
</DL>
<P><B>$B>\:Y(B</B> $B9=B$BN(B <CODE>attr</CODE> $B$O(B BSD $B%9%?%$%k$KJQ99$5$l$?B0@-$G5-F~$5$l$^$9!#(B
<CODE>VNON</CODE> $B$K@_Dj$5$l$k(B <CODE>vtype</CODE> $B0J30$NJQ99$5$l$J$$B0@-$O(B -1 $B$K@_Dj$5$l(B
$B$^$9!#B>$O;XDj$5$l$?CM$K@_Dj$5$l$^$9!#$?$@$7!"(BFS $B%I%i%$%P$,JQ99$NMW5a$r(B
$B9T$C$F$h$$B0@-$O!"(Bmode, ownner, groupid, atime, mtime, ctime $B$@$1$G$9!#(B
$BJV$jCM$O@.8y$+<:GT$r<($7$^$9!#(B
<P><B>$B%(%i!<(B</B> $BMM!9$J%(%i!<$,5/$3$k2DG=@-$,$"$j$^$9!#%*%V%8%'%/%H$,B8:_$7$J(B
$B$$!"%"%/%;%9$G$-$J$$!"%Q!<%_%C%7%g%s$,(B Venus $B$+$iM?$($i$l$J$$$J$I!#(B
<P>
<H2><A NAME="ss4.7">4.7 access</A>
</H2>
<P>
<P><B>$B35MW(B</B>
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_access_in {
ViceFid VFid;
int flags;
} cfs_access;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>$B6u(B
</DL>
<P><B>$B>\:Y(B</B> <CODE>flags</CODE> $B$K5-:\$5$l$?A`:n$r9T$&$?$a$K!"(B<CODE>VFid</CODE> $B$G;XDj$5$l(B
$B$k%*%V%8%'%/%H$N%"%/%;%98"$,F@$i$l$k$+$I$&$+3NG'$r$7$^$9!#7k2L$O%"%/%;%9(B
$B8"$NM-L5$r<($7$^$9!#(BCoda $B$OJ]8n$r6/2=$9$k$?$a$K(B ACL $B$r;H$C$F$*$j!"7k6I$N(B
$B$H$3$m%/%i%$%"%s%H$G$O$J$/%5!<%P$,%7%9%F%`$N%;%-%e%j%F%#$rJ]>Z$7$F$$$k$H(B
$B$$$&$3$H$rCN$C$F$*$/$3$H$O=EMW$G$9!#$3$N%3!<%k$N7k2L$O!"%f!<%6$,(B
<EM>$B%H!<%/%s(B</EM>$B$rJ];}$7$F$$$k$+$I$&$+$K0MB8$9$k$G$7$g$&!#(B
<P><B>$B%(%i!<(B</B> $B%*%V%8%'%/%H$OB8:_$7$J$$$+$b$7$l$^$;$s!"$b$7$/$OJ]8n>pJs$r5-(B
$B:\$9$k(B ACL $B$O%"%/%;%92DG=$G$O$J$$$+$b$7$l$^$;$s!#(B
<P>
<H2><A NAME="ss4.8">4.8 create</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%U%!%$%k$r:n@.$9$k$?$a$K8F$S=P$5$l$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_create_in {
ViceFid VFid;
struct coda_vattr attr;
int excl;
int mode;
char *name; /* Place holder for data. */
} cfs_create;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>
<PRE>
struct cfs_create_out {
ViceFid VFid;
struct coda_vattr attr;
} cfs_create;
</PRE>
</DL>
<P><B>$B>\:Y(B</B> $B$3$N(B upcall $B$O%U%!%$%k$N:n@.$rMW5a$9$k$?$a$K8F$S=P$5$l$^$9!#(B
$B%U%!%$%k$O(B <CODE>VFid</CODE> $B$G;XDj$5$l$?%G%#%l%/%H%j$NCf$K:n@.$5$l!"$=$NL>A0$O(B
<CODE>name</CODE>$B!"%b!<%I$O(B <CODE>mode</CODE> $B$K$J$k$G$7$g$&!#(B<CODE>excl</CODE> $B$,@_Dj$5$l$?>l9g!"(B
$B%U%!%$%k$,4{$KB8:_$9$l$P%(%i!<$,JV$k$G$7$g$&!#(Battr $B$N(B size $B%U%#!<%k%I$,(B
0 $B$K@_Dj$5$l$?>l9g!"%U%!%$%k$O@Z$j$D$a$i$l$^$9!#%U%!%$%k$N(B uid $B$*$h$S(B
gid $B$O(B CodaCred $B$rJQ49$7@_Dj$5$l!"(Buid $B$O%^%/%m(B <CODE>CRTOUID</CODE> $B$,MQ$$$i$l$^(B
$B$9(B ($B$3$N%^%/%m$O%W%i%C%H%U%)!<%`$K0MB8$7$^$9(B)$B!#@.8y$7$?>l9g!"%U%!%$%k$N(B
VFid $B$*$h$SB0@-$,JV$5$l$^$9!#(BCoda FS $B%I%i%$%P$ODL>o%+!<%M%k%l%Y%k$G?7$7(B
$B$$%*%V%8%'%/%H$N$?$a$K(B vnode, inode $B$b$7$/$O%U%!%$%k%O%s%I%k$N%$%s%9%?%s(B
$B%9$r:n@.$9$k$G$7$g$&!#(B
<P><B>$B%(%i!<(B</B> $BMM!9$J%(%i!<$,5/$3$k2DG=@-$,$"$j$^$9!#%Q!<%_%C%7%g%s$OIT==J,(B
$B$+$b$7$l$^$;$s!#%*%V%8%'%/%H$,B8:_$7$=$l$,%U%!%$%k$G$J$$>l9g!"(BUnix $B2<$G(B
$B%(%i!<(B <CODE>EISDIR</CODE> $B$,JV$5$l$^$9!#(B
<P><B>$BCm5-(B</B> $B%Q%i%a!<%?$NAH$_$O$H$F$bHs8zN(E*$G!"%7%9%F%`%3!<%k$N(B creat $B$H(B
VFS $BA`:n$N(B create $B$H$N:.F1$r<($7$?$b$N$H;W$o$l$^$9!#(BVFS $BA`:n$N(B create $B$O(B
$B?7$7$$%*%V%8%'%/%H$N:n@.$N:]$K$@$1%3!<%k$5$l$^$9!#$3$N(B create $B%3!<%k$O(B
Unix $B$N%3!<%k$H$O0[$J$j!"%U%!%$%k%G%#%9%/%j%W%?$rJV$9$?$a$K8F$S=P$5$l$k(B
$B$3$H$O$"$j$^$;$s!#%H%i%s%1!<%H$H%$%/%9%/%k%7%V$N%*%W%7%g%s!"$*$h$S%b!<%I(B
$B$O!"C1$K(B Unix $B2<$G$N%b!<%I$N0lIt$K$G$-$k$O$:$G$9!#%U%i%0$N0z$-?t$,$"$k$Y(B
$B$-$G$O$"$j$^$;$s(B - $B8=:_$3$l$O!"(BREAD $B$b$7$/$O(B WRITE $B%b!<%IMQ$N%U%!%$%k%G%#(B
$B%9%/%W%j%?$rJV$9$?$a$K(B <CODE>open</CODE> (2) $B$G;H$o$l$F$$$^$9!#(B
<P>$B%G%#%l%/%H%j$NB0@-$b!"(Bsize $B$*$h$S(B mtime $B$,JQ99$5$l$k$N$G!"JV$5$l$k$O$:$G(B
$B$9!#(B
<P>
<H2><A NAME="ss4.9">4.9 mkdir</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B?7$7$$%G%#%l%/%H%j$r:n@.$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_mkdir_in {
ViceFid VFid;
struct coda_vattr attr;
char *name; /* Place holder for data. */
} cfs_mkdir;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>
<PRE>
struct cfs_mkdir_out {
ViceFid VFid;
struct coda_vattr attr;
} cfs_mkdir;
</PRE>
</DL>
<P><B>$B>\:Y(B</B> $B$3$N%3!<%k$O(B <CODE>create</CODE> $B$K;w$F$$$^$9$,!"%G%#%l%/%H%j$r:n@.$7(B
$B$^$9!#F~NO%Q%i%a!<%?$N(B <CODE>mode</CODE> $B%U%#!<%k%I$@$1$,:n@.$N$?$a$K;H$o$l$^$9!#(B
$B:n@.$,@.8y$7$?>l9g!"JV$5$l$k(B <CODE>attr</CODE> $B$O?7$7$$%G%#%l%/%H%j$NB0@-$r;}$A(B
$B$^$9!#(B
<P><B>$B%(%i!<(B</B> create $B$HF1MM$G$9!#(B
<P><B>$BCm5-(B</B> $BF~NO%Q%i%a!<%?$OB0@-$NJQ$o$j$K(B <CODE>mode</CODE> $B$XJQ99$5$l$k$O$:$G$9!#(B
<P>$B?F$NB0@-$O!"(Bsize $B$*$h$S(B mtime $B$,JQ$o$k$N$G!"JV$5$l$k$O$:$G$9!#(B
<P>
<H2><A NAME="ss4.10">4.10 link</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B4{B8%U%!%$%k$X$N%j%s%/$r:n@.$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_link_in {
ViceFid sourceFid; /* cnode to link *to* */
ViceFid destFid; /* Directory in which to place link */
char *tname; /* Place holder for data. */
} cfs_link;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>$B6u(B
</DL>
<P><B>$B>\:Y(B</B> $B$3$N%3!<%k$O!"L>A0(B <CODE>tname</CODE> $B$r;}$C$?(B <CODE>destFid</CODE> $B$G;XDj$5$l(B
$B$k%G%#%l%/%H%j$NCf$K(B <CODE>sourceFid</CODE> $B$X$N%j%s%/$r:n@.$7$^$9!#%=!<%9$O%?!<(B
$B%2%C%H$N?F%G%#%l%/%H%jFb$KB8:_$7$J$1$l$P$J$j$^$;$s!#$D$^$j!"%=!<%9$N?F%G%#(B
$B%l%/%H%j$O(B <CODE>destFid</CODE> $B$G$J$1$l$P$J$j$^$;$s!#$D$^$j(B Coda $B$O%G%#%l%/%H%j(B
$B$r$^$?$$$@%O!<%I%j%s%/$r%5%]!<%H$7$F$$$^$;$s!#JV$jCM$O4XO"$9$k$b$N$@$1$G(B
$B$9!#$=$l$O@.8y$b$7$/$O<:GT$N<oJL$r<($7$^$9!#(B
<P><B>$B%(%i!<(B</B> $BDL>o$N%(%i!<$,5/$3$k2DG=@-$,$"$j$^$9!#(B
<H2><A NAME="ss4.11">4.11 symlink</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%7%s%\%j%C%/%j%s%/$r:n@.$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_symlink_in {
ViceFid VFid; /* Directory to put symlink in */
char *srcname;
struct coda_vattr attr;
char *tname;
} cfs_symlink;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>$B$J$7(B
</DL>
<P><B>$B>\:Y(B</B> $B%7%s%\%j%C%/%j%s%/$r:n@.$7$^$9!#%j%s%/$O(B <CODE>VFid</CODE> $B$G;XDj$5$l(B
$B$k%G%#%l%/%H%j$KCV$+$l!"(B<CODE>tname</CODE> $B$NL>A0$K$J$j$^$9!#$=$l$O%Q%9L>(B
<CODE>srcname</CODE> $B$r;X$9$O$:$G$9!#?7$7$/:n@.$5$l$?%*%V%8%'%/%H$NB0@-$O(B
<CODE>attr</CODE> $B$,@_Dj$5$l$^$9!#(B
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> $B%?!<%2%C%H%G%#%l%/%H%j$NB0@-$O!"(Bsize $B$,JQ99$5$l$k$N$G!"JV$5$l(B
$B$k$O$:$G$9!#(B
<P>
<H2><A NAME="ss4.12">4.12 remove</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%U%!%$%k$r:o=|$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_remove_in {
ViceFid VFid;
char *name; /* Place holder for data. */
} cfs_remove;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>$B$J$7(B
</DL>
<P><B>$B>\:Y(B</B> <CODE>VFid</CODE> $B$G;XDj$5$l$k%G%#%l%/%H%j$NCf$N(B
<CODE>cfs_remove_in.name</CODE> $B$G;XDj$5$l$?%U%!%$%k$r:o=|$7$^$9!#(B
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> $B%G%#%l%/%H%j$NB0@-$O!"(Bsize $B$*$h$S(B mtime $B$,JQ$o$k$+$b$7$l$J$$$N(B
$B$G!"JV$5$l$k$O$:$G$9!#(B
<P>
<H2><A NAME="ss4.13">4.13 rmdir</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%G%#%l%/%H%j$r:o=|$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_rmdir_in {
ViceFid VFid;
char *name; /* Place holder for data. */
} cfs_rmdir;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>$B$J$7(B
</DL>
<P><B>$B>\:Y(B</B> <CODE>VFid</CODE> $B$G;XDj$5$l$k%G%#%l%/%H%j$+$i(B <CODE>name</CODE> $B$G;XDj$5$l$?(B
$B%G%#%l%/%H%j$r:o=|$7$^$9!#(B
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> $B?F%G%#%l%/%H%j$NB0@-$O!"(Bsize $B$*$h$S(B mtime $B$,JQ$o$k$+$b$7$l$J$$(B
$B$N$G!"JV$5$l$k$O$:$G$9!#(B
<P>
<H2><A NAME="ss4.14">4.14 readlink</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%7%s%\%j%C%/%j%s%/$NCM$rFI$_=P$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_readlink_in {
ViceFid VFid;
} cfs_readlink;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>
<PRE>
struct cfs_readlink_out {
int count;
caddr_t data; /* Place holder for data. */
} cfs_readlink;
</PRE>
</DL>
<P><B>$B>\:Y(B</B> $B$3$N%k!<%A%s$O(B <CODE>VFid</CODE> $B$G;XDj$5$l$k%7%s%\%j%C%/%j%s%/$NFbMF(B
$B$r%P%C%U%!(B <CODE>data</CODE> $B$NCf$KFI$_=P$7$^$9!#%P%C%U%!(B <CODE>data</CODE> $B$O$I$s$JL>A0(B
$B$G$bJ];}$G$-$k$h$&$K(B <CODE>CFS_MAXNAMLEN</CODE> $B$NBg$-$5$,I,MW$G$9(B (PATH $B$b$7$/(B
$B$O(B NAME??)$B!#(B
<P><B>$B%(%i!<(B</B> $BDL>o$N%(%i!<$@$1$G$9!#(B
<P>
<H2><A NAME="ss4.15">4.15 open</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%U%!%$%k$r3+$-$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_open_in {
ViceFid VFid;
int flags;
} cfs_open;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>
<PRE>
struct cfs_open_out {
dev_t dev;
ino_t inode;
} cfs_open;
</PRE>
</DL>
<P><B>$B>\:Y(B</B> $B$3$l$O(B <CODE>VFid</CODE> $B$G;XDj$5$l$k%U%!%$%k$r(B Venus $B$N%-%c%C%7%e$K(B
$BCV$/$h$&(B Venus $B$K0MMj$7!"<!$K8F$S=P$785$N%W%m%;%9$,(B <CODE>open(2)</CODE> $B$N(B
<CODE>flags</CODE> $B$NCM$G$=$N%-%c%C%7%eFb$N%U%!%$%k$r3+$/$h$&;XDj$9$k0lO"$NMW5a(B
$B$G$9!#%+!<%M%k$X$NJV$jCM$O(B Unix $B$H(B Windows $B%7%9%F%`$G$O0[$J$j$^$9!#(BUnix
$B%7%9%F%`$G$O(B Coda FS $B%I%i%$%P$O(B <CODE>dev</CODE> $B$*$h$S(B <CODE>inode</CODE> $B$N%U%#!<%k%I(B
$B$NCf$N%3%s%F%J%U%!%$%k$N%G%P%$%9$*$h$S(B inode $B$NHV9f$rDLCN$5$l$^$9!#(B
Windows $B$G$O!"%3%s%F%J%U%!%$%k$N%Q%9$,%+!<%M%k$KJV$5$l$^$9!#(B
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> $B8=>u!"(B<CODE>cfs_open_out</CODE> $B9=B$BN$O(B Windows $B4D6-$G$NA`:n$H87L)$K(B
$B$O@09g@-$,$H$l$F$$$^$;$s!#0l$D$O%3%s%F%J%U%!%$%k$NL>A0$G3+$/!"$b$&0l$D$O(B
$B%3%s%F%J%U%!%$%k$N(B inode $B$G3+$/!"$H$$$&Fs$D$N(B upcall $B$r<BAu$9$k$3$H$,:G(B
$BNI$+$b$7$l$^$;$s!#(B
<P>
<H2><A NAME="ss4.16">4.16 close</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%U%!%$%k$rJD$8!"%5!<%P>e$G$=$l$r99?7$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_close_in {
ViceFid VFid;
int flags;
} cfs_close;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>$B$J$7(B
</DL>
<P><B>$B>\:Y(B</B> <CODE>VFid</CODE> $B$G;XDj$5$l$k%U%!%$%k$rJD$8$^$9!#(B
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> <CODE>flags</CODE> $B0z$-?t$OL50UL#$G!";HMQ$5$l$^$;$s!#$7$+$7$J$,$i!"(B
Venus $B$N%3!<%I$O(B <CODE>execp</CODE> $BF~NO%U%#!<%k%I$r07$&M>CO$,$"$j!"$?$V$s!"$3$N(B
$B%U%#!<%k%I$O!"%U%!%$%k$OJD$8$i$l$?$,<B9T$N$?$a$K%a%b%j$K%^%C%W$5$l$?$^$^(B
$B$G$"$k$3$H$r!"(BVenus $B$KDLCN$9$k$?$a$K;H$o$l$k$3$H$K$J$k$O$:$G$9!#(BVenus
<CODE>vproc_vfscalls</CODE> $B$G%G!<%?$r<h$C$F$/$k$3$H$*$h$S<h$C$F$3$J$$$3$H$K$D$$(B
$B$F$NCm<a$,$"$j$^$9!#$3$l$OJQ$G$9!#%U%!%$%k$,JD$8$i$l$F$$$k>l9g!"%3%s%F%J(B
$B%U%!%$%k$NCf$N%G!<%?$O?7$7$$%G!<%?$K$J$C$F$$$k$H$9$Y$-$@$+$i$G$9!#$3$3$G(B
$B$b(B <CODE>execp</CODE> $B%U%i%0$O:.Mp$N85$K$J$C$F$$$k$+$b$7$l$^$;$s(B - $B8=:_$N(B Venus
$B$G$O%U%!%$%k$,@EE*$J%a%b%j$K%^%C%W$5$l$F$$$k$N$K$b$+$+$o$i$:!"%U%!%$%k$r(B
$B%-%c%C%7%e$+$i%U%i%C%7%e$G$-$k$H9M$($k$+$b$7$l$^$;$s!#$3$N$3$H$rM}2r$9$k(B
$BI,MW$,$"$j$^$9!#(B
<P>
<H2><A NAME="ss4.17">4.17 ioctl</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%U%!%$%k$KBP$9$k(B ioctl $B$r9T$$$^$9!#$3$l$O(B pioctl $B%$%s%?!<%U%'!<(B
$B%9$r4^$_$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_ioctl_in {
ViceFid VFid;
int cmd;
int len;
int rwflag;
char *data; /* Place holder for data. */
} cfs_ioctl;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>
<PRE>
struct cfs_ioctl_out {
int len;
caddr_t data; /* Place holder for data. */
} cfs_ioctl;
</PRE>
</DL>
<P><B>$B>\:Y(B</B> $B%U%!%$%k$KBP$9$k(B ioctl $BA`:n$r9T$$$^$9!#(B <CODE>command, len,
data</CODE> $B0z$-?t$ODL>o5-:\$5$l$^$9!#(B<CODE>flags</CODE> $B$r(B Venus $B$O;HMQ$7$^$;$s!#(B
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> $B$3$3$G$bL5MQ$J%Q%i%a!<%?$G$9!#(B<CODE>flags</CODE> $B$O;H$o$l$^$;$s!#(BVenus
$B$N%3!<%ICf$N(B PREFETCHING $B$r2?$K;H$*$&$H8@$&$D$b$j$J$s$G$7$g$&(B ?
<P>
<P>
<H2><A NAME="ss4.18">4.18 rename</A>
</H2>
<P>
<P><B>$B35MW(B</B> fid $B$NL>A0$rJQ99$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_rename_in {
ViceFid sourceFid;
char *srcname;
ViceFid destFid;
char *destname;
} cfs_rename;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>$B$J$7(B
</DL>
<P><B>$B>\:Y(B</B> $B%G%#%l%/%H%j(B <CODE>sourceFid</CODE> $B$NCf$N(B <CODE>srcname</CODE> $B$H$$$&L>A0$N(B
$B%*%V%8%'%/%H$r(B <CODE>destFid</CODE> $B$NCf$N(B <CODE>destname</CODE> $B$KJQ99$7$^$9!#L>A0(B
<CODE>srcname</CODE> $B$*$h$S(B <CODE>destname</CODE> $B$NJ8;zNs$O(B 0 $B$G%?!<%_%M!<%H$7$F$/$@$5(B
$B$$!#(BUnix $B%+!<%M%k$K$*$1$kJ8;zNs$O$$$D$b(B null $B%?!<%_%M!<%H$5$l$F$$$k$H$O(B
$B8B$j$^$;$s!#(B
<P><B>$B%(%i!<(B</B>
<P>
<H2><A NAME="ss4.19">4.19 readdir</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%G%#%l%/%H%j%(%s%H%j$rFI$_=P$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_readdir_in {
ViceFid VFid;
int count;
int offset;
} cfs_readdir;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>
<PRE>
struct cfs_readdir_out {
int size;
caddr_t data; /* Place holder for data. */
} cfs_readdir;
</PRE>
</DL>
<P><B>$B>\:Y(B</B> $B%G%#%l%/%H%j%(%s%H%j$r(B <CODE>VFid</CODE> $B$N(B <CODE>offset</CODE> $B$+$i:GBg(B
<CODE>count</CODE> $B%P%$%HFI$_=P$7$^$9!#%G!<%?$O(B <CODE>data</CODE> $B$NCf$KJV$5$l!"$=$N%5%$(B
$B%:$r<($9(B <CODE>size</CODE> $B$,JV$j$^$9!#(B
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> $B$3$N%3!<%k$O;HMQ$5$l$^$;$s!#(BReaddir $BA`:n$O%3%s%F%J%U%!%$%k$r>C(B
$BHq$9$k$?$a$G$9!#$3$l$+$i9T$&%G%#%l%/%H%j$N2~NI$N4V$K!"$3$N7o$r:F9M$7$^$9!#(B
<P>
<P>
<H2><A NAME="ss4.20">4.20 vget</A>
</H2>
<P>
<P><B>$B35MW(B</B> <CODE>FSDB->Get</CODE> $B$r9T$&$h$&(B Venus $B$K;X<($7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_vget_in {
ViceFid VFid;
} cfs_vget;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>
<PRE>
struct cfs_vget_out {
ViceFid VFid;
int vtype;
} cfs_vget;
</PRE>
</DL>
<P><B>$B>\:Y(B</B> $B$3$N(B upcall $B$O(B <CODE>VFid</CODE> $B$G%i%Y%kIU$1$5$l$?(B <CODE>fsobj</CODE> $B$KBP$7(B
$B$F!"(B<CODE>get</CODE> $BA`:n$r9T$&$h$&(B Venus $B$K0MMj$7$^$9!#(B
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> $B$3$NA`:n$O;HMQ$5$l$^$;$s!#$7$+$7$J$,$i!"%a%b%j$K%^%C%W$5$l$?%U%!(B
$B%$%k$NFI$_=P$7!?=q$-9~$_$KBP1~$9$k$?$a$K;H$&$3$H$,$G$-$k$N$G!"Hs>o$KM-MQ(B
$B$G$9!#$3$l$i$N%U%!%$%k$O(B <CODE>vget</CODE> $B$r;HMQ$7$F(B Venus $B$N%-%c%C%7%e$NCf$K(B
$B!V8GDj!W$G$-!"(B<CODE>inactive</CODE> $B$G2rJ|$G$-$^$9!#(B
<P>
<H2><A NAME="ss4.21">4.21 fsync</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%U%!%$%k$N(B RVM $BB0@-$r99?7$9$k$h$&(B Venus $B$KL?$8$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_fsync_in {
ViceFid VFid;
} cfs_fsync;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>$B$J$7(B
</DL>
<P><B>$B>\:Y(B</B> $B%*%V%8%'%/%H(B <CODE>VFid</CODE> $B$N(B RVM $BB0@-$r99?7$9$k$h$&(B Venus $B$K0MMj(B
$B$7$^$9!#$3$l$O%+!<%M%k%l%Y%k$N(B <CODE>fsync</CODE> $B$NN`$$$N%3!<%k$N0lIt$H$7$F8F$P(B
$B$l$k$O$:$G$9!#(B<CODE>$B7k2L(B</CODE>$B$OF14|$,@.8y$7$?$+$I$&$+$r<($7$^$9!#(B
<P><B>$B%(%i!<(B</B>
<P><B>NOTE</B> Linux $B$O$3$N%3!<%k$r<BAu$7$F$$$^$;$s!#<BAu$9$Y$-$G$9(B
<P>
<H2><A NAME="ss4.22">4.22 inactive</A>
</H2>
<P>
<P><B>$B35MW(B</B> vnode $B$r$b$&;HMQ$7$J$$$H(B Venus $B$KL?$8$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_inactive_in {
ViceFid VFid;
} cfs_inactive;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>$B$J$7(B
</DL>
<P><B>$B>\:Y(B</B> $B$3$NA`:n$O(B <CODE>EOPNOTSUPP</CODE> $B$,JV$j$^$9!#(B
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> $B$3$l$O$?$V$s:o=|$5$l$k$O$:$G$9!#(B
<P>
<H2><A NAME="ss4.23">4.23 rdwr</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B%U%!%$%k$KBP$7FI$_=P$7$+=q$-9~$_$r$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct cfs_rdwr_in {
ViceFid VFid;
int rwflag;
int count;
int offset;
int ioflag;
caddr_t data; /* Place holder for data. */
} cfs_rdwr;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>
<PRE>
struct cfs_rdwr_out {
int rwflag;
int count;
caddr_t data; /* Place holder for data. */
} cfs_rdwr;
</PRE>
</DL>
<P><B>$B>\:Y(B</B> $B$3$N(B upcall $B$O%U%!%$%k$KBP$7FI$_=P$7$+=q$-9~$_$r9T$&$h$&(B Venus
$B$K0MMj$7$^$9!#(B
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> $BFI$_=P$7!?=q$-9~$_$NA`:n$r(B Venus $B$O9T$o$J$$$H$$$&(B Coda $B$N<g5A(B
$B$K5U$i$&$3$H$J$N$G!"$3$l$O:o=|$5$l$k$O$:$G$9!#$3$NA`:n$OF0:n$7$J$$$HJ9$$(B
$B$F$$$^$9!#8=:_;HMQ$5$l$F$$$^$;$s!#(B
<P>
<P>
<H2><A NAME="ss4.24">4.24 odymount</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B0l$D$N(B Unix $B$N%^%&%s%H%]%$%s%H$KJ#?t$N(B Coda $B%U%!%$%k%7%9%F%`$r(B
$B%^%&%s%H$9$k$3$H$r2DG=$H$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>
<PRE>
struct ody_mount_in {
char *name; /* Place holder for data. */
} ody_mount;
</PRE>
<DT><B>$B=PNO(B</B><DD><P>
<PRE>
struct ody_mount_out {
ViceFid VFid;
} ody_mount;
</PRE>
</DL>
<P><B>$B>\:Y(B</B> <CODE>name</CODE> $B$G;XDj$5$l$?(B Coda $B%7%9%F%`$N(B rootfid $B$rJV$9$h$&(B
Venus $B$K0MMj$7$^$9!#(Bfid $B$O(B <CODE>VFid</CODE> $B$NCf$KJV$5$l$^$9!#(B
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> $B$3$N%3!<%k$O(B dynamic set $B8~$1$K(B David $B$,;H$C$F$$$^$7$?!#$3$l$O(B
VFS $B%^%&%s%F%#%s%0NN0h$N%]%$%s%?$rJ#;($K$7$F$7$^$&$N$G!":o=|$5$l$k$O$:$G(B
$B$9!#IaDL$N(B Coda $B$O;HMQ$7$^$;$s!#$3$N%3!<%k$O(B Venus $B$G$O<BAu$5$l$F$$$^$;(B
$B$s!#(B
<P>
<H2><A NAME="ss4.25">4.25 ody_lookup</A>
</H2>
<P>
<P><B>$B35MW(B</B> $B2?$+$rD4$Y$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>$BL54X78(B
<DT><B>$B=PNO(B</B><DD><P>$BL54X78(B
</DL>
<P><B>$B>\:Y(B</B>
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> $BCf?H$O$"$j$^$;$s!#$3$N%3!<%k$O(B Venus $B$G$O<BAu$5$l$F$$$^$;$s!#(B
<P>
<H2><A NAME="ss4.26">4.26 ody_expand</A>
</H2>
<P>
<P><B>$B35MW(B</B> dynamic set $B$K$*$1$k2?$+$r3HD%$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>$BL54X78(B
<DT><B>$B=PNO(B</B><DD><P>$BL54X78(B
</DL>
<P><B>$B>\:Y(B</B>
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> $BCf?H$O$"$j$^$;$s!#$3$N%3!<%k$O(B Venus $B$G$O<BAu$5$l$F$$$^$;$s!#(B
<P>
<H2><A NAME="ss4.27">4.27 prefetch</A>
</H2>
<P>
<P><B>$B35MW(B</B> dynamic set $B$r@hFI$_$7$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>$B%I%-%e%a%s%H2=$5$l$F$$$^$;$s!#(B
<DT><B>$B=PNO(B</B><DD><P>$B%I%-%e%a%s%H2=$5$l$F$$$^$;$s!#(B
</DL>
<P><B>$B>\:Y(B</B> Venus $B$N(B worker.cc $B$K$O$3$N%3!<%k$N%5%]!<%H$,$"$j$^$9$,!"F0:n(B
$B$7$J$$$H5-$5$l$F$$$^$9!#%+!<%M%k$O%5%]!<%H$7$F$$$^$;$s$N$G!"$3$l$O6C$/$Y(B
$B$-$3$H$G$O$"$j$^$;$s(B (ODY_PREFETCH $B$OF0:n$,Dj5A$5$l$F$$$^$;$s(B)$B!#(B
<P><B>$B%(%i!<(B</B>
<P><B>$BCm5-(B</B> $BCf?H$O$"$j$^$;$s!#%3!<%k$OF0:n$;$:!"(BCoda $B$G;HMQ$5$l$^$;$s!#(B
<P>
<P>
<H2><A NAME="ss4.28">4.28 signal</A>
</H2>
<P>
<P><B>$B35MW(B</B> upcall $B$K4X$9$k(B signal $B$r(B Venus $B$KAw$j$^$9!#(B
<P><B>$B0z$-?t(B</B>
<DL>
<DT><B>$BF~NO(B</B><DD><P>$B$J$7(B
<DT><B>$B=PNO(B</B><DD><P>$BHsE,MQ(B
</DL>
<P><B>$B>\:Y(B</B> $B$3$l$O(B Venus $B$X$N(B upcall $B$NDL>o=hM}HO0O30$N$b$N$G!"(BVenus $B$,F~(B
$BNO%-%e!<$+$i%a%C%;!<%8$rFI$s$@8e!"8F$S=P$785$N%W%m%;%9$,(B signal $B$r<u$1<h$C(B
$B$?$3$H$r(B Venus $B$KDLCN$7$^$9!#(BVenus $B$OA`:n$r40N;$9$k$3$H$K$J$C$F$$$^$9!#(B
<P><B>$B%(%i!<(B</B> $B1~Ez$O$"$j$^$;$s!#(B
<P><B>$BCm5-(B</B> Venus $B$N40N;=hM}$r@5$7$/9T$&$?$a$K(B Venus $B$,2?$r40N;$9$kI,MW$,(B
$B$"$k$N$+$rNI$/M}2r$7$F$*$/I,MW$,$"$j$^$9!#$5$i$K!"%7%9%F%`%3!<%k$N>uBVKh(B
$B$KJ#?t$N(B upcall $B$r@53N$K07$&I,MW$,$"$j$^$9!#$^$?!"(BVenus $B$G(B upcall $B$N8e!"(B
$B%+!<%M%k$+$i(B ($B@UG$HO0O$H$7$F(B) $B40N;$NDLCN$r9T$&I,MW$N$"$k$I$N$h$&$J>uBV$,(B
Venus $B$G5/$-$k$N$+$rCN$k$3$H$,=EMW$G$9(B ($BNc$($P(B open $B$O4V0c$$$J$/$3$N$h$&(B
$B$J>uBVJQ2=$G$9$,!"B>$NB?$/$N$b$N$O$=$&$G$O$J$$$+$b$7$l$^$;$s(B)$B!#(B
<P>
<HR>
<A HREF="kernel-venus-protocol-5.html">$B<!$N%Z!<%8(B</A>
<A HREF="kernel-venus-protocol-3.html">$BA0$N%Z!<%8(B</A>
<A HREF="kernel-venus-protocol.html#toc4">$BL\<!$X(B</A>
</BODY>
</HTML>
|