1/* 2 You may distribute this file under either of the two licenses that 3 follow at your discretion. 4*/ 5 6/* BLURB lgpl 7 8 Coda File System 9 Release 5 10 11 Copyright (c) 1987-1999 Carnegie Mellon University 12 Additional copyrights listed below 13 14This code is distributed "AS IS" without warranty of any kind under 15the terms of the GNU Library General Public Licence Version 2, as 16shown in the file LICENSE, or under the license shown below. The 17technical and financial contributors to Coda are listed in the file 18CREDITS. 19 20 Additional copyrights 21*/ 22 23/* 24 25 Coda: an Experimental Distributed File System 26 Release 4.0 27 28 Copyright (c) 1987-1999 Carnegie Mellon University 29 All Rights Reserved 30 31Permission to use, copy, modify and distribute this software and its 32documentation is hereby granted, provided that both the copyright 33notice and this permission notice appear in all copies of the 34software, derivative works or modified versions, and any portions 35thereof, and that both notices appear in supporting documentation, and 36that credit is given to Carnegie Mellon University in all documents 37and publicity pertaining to direct or indirect use of this code or its 38derivatives. 39 40CODA IS AN EXPERIMENTAL SOFTWARE SYSTEM AND IS KNOWN TO HAVE BUGS, 41SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. CARNEGIE MELLON ALLOWS 42FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON 43DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER 44RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF 45ANY DERIVATIVE WORK. 46 47Carnegie Mellon encourages users of this software to return any 48improvements or extensions that they make, and to grant Carnegie 49Mellon the rights to redistribute these changes without encumbrance. 50*/ 51 52/* 53 * 54 * Based on cfs.h from Mach, but revamped for increased simplicity. 55 * Linux modifications by 56 * Peter Braam, Aug 1996 57 */ 58 59#ifndef _CODA_HEADER_ 60#define _CODA_HEADER_ 61 62 63 64/* Catch new _KERNEL defn for NetBSD and DJGPP/__CYGWIN32__ */ 65#if defined(__NetBSD__) || \ 66 ((defined(DJGPP) || defined(__CYGWIN32__)) && !defined(KERNEL)) 67#include <sys/types.h> 68#endif 69 70#ifndef CODA_MAXSYMLINKS 71#define CODA_MAXSYMLINKS 10 72#endif 73 74#if defined(DJGPP) || defined(__CYGWIN32__) 75#ifdef KERNEL 76typedef unsigned long u_long; 77typedef unsigned int u_int; 78typedef unsigned short u_short; 79typedef u_long ino_t; 80typedef u_long dev_t; 81typedef void * caddr_t; 82#ifdef DOS 83typedef unsigned __int64 u_quad_t; 84#else 85typedef unsigned long long u_quad_t; 86#endif 87 88#define inline 89 90struct timespec { 91 long ts_sec; 92 long ts_nsec; 93}; 94#else /* DJGPP but not KERNEL */ 95#include <sys/time.h> 96typedef unsigned long long u_quad_t; 97#endif /* !KERNEL */ 98#endif /* !DJGPP */ 99 100 101#if defined(__linux__) 102#define cdev_t u_quad_t 103#ifndef __KERNEL__ 104#if !defined(_UQUAD_T_) && (!defined(__GLIBC__) || __GLIBC__ < 2) 105#define _UQUAD_T_ 1 106typedef unsigned long long u_quad_t; 107#endif 108#else /*__KERNEL__ */ 109typedef unsigned long long u_quad_t; 110#endif /* __KERNEL__ */ 111#else 112#define cdev_t dev_t 113#endif 114 115#ifdef __CYGWIN32__ 116struct timespec { 117 time_t tv_sec; /* seconds */ 118 long tv_nsec; /* nanoseconds */ 119}; 120#endif 121 122#ifndef __BIT_TYPES_DEFINED__ 123#define __BIT_TYPES_DEFINED__ 124typedef signed char int8_t; 125typedef unsigned char u_int8_t; 126typedef short int16_t; 127typedef unsigned short u_int16_t; 128typedef int int32_t; 129typedef unsigned int u_int32_t; 130#endif 131 132 133/* 134 * Cfs constants 135 */ 136#define CODA_MAXNAMLEN 255 137#define CODA_MAXPATHLEN 1024 138#define CODA_MAXSYMLINK 10 139 140/* these are Coda's version of O_RDONLY etc combinations 141 * to deal with VFS open modes 142 */ 143#define C_O_READ 0x001 144#define C_O_WRITE 0x002 145#define C_O_TRUNC 0x010 146#define C_O_EXCL 0x100 147#define C_O_CREAT 0x200 148 149/* these are to find mode bits in Venus */ 150#define C_M_READ 00400 151#define C_M_WRITE 00200 152 153/* for access Venus will use */ 154#define C_A_C_OK 8 /* Test for writing upon create. */ 155#define C_A_R_OK 4 /* Test for read permission. */ 156#define C_A_W_OK 2 /* Test for write permission. */ 157#define C_A_X_OK 1 /* Test for execute permission. */ 158#define C_A_F_OK 0 /* Test for existence. */ 159 160 161 162#ifndef _VENUS_DIRENT_T_ 163#define _VENUS_DIRENT_T_ 1 164struct venus_dirent { 165 unsigned long d_fileno; /* file number of entry */ 166 unsigned short d_reclen; /* length of this record */ 167 unsigned char d_type; /* file type, see below */ 168 unsigned char d_namlen; /* length of string in d_name */ 169 char d_name[CODA_MAXNAMLEN + 1];/* name must be no longer than this */ 170}; 171#undef DIRSIZ 172#define DIRSIZ(dp) ((sizeof (struct venus_dirent) - (CODA_MAXNAMLEN+1)) + \ 173 (((dp)->d_namlen+1 + 3) &~ 3)) 174 175/* 176 * File types 177 */ 178#define CDT_UNKNOWN 0 179#define CDT_FIFO 1 180#define CDT_CHR 2 181#define CDT_DIR 4 182#define CDT_BLK 6 183#define CDT_REG 8 184#define CDT_LNK 10 185#define CDT_SOCK 12 186#define CDT_WHT 14 187 188/* 189 * Convert between stat structure types and directory types. 190 */ 191#define IFTOCDT(mode) (((mode) & 0170000) >> 12) 192#define CDTTOIF(dirtype) ((dirtype) << 12) 193 194#endif 195 196#ifndef _FID_T_ 197#define _FID_T_ 1 198typedef u_long VolumeId; 199typedef u_long VnodeId; 200typedef u_long Unique_t; 201typedef u_long FileVersion; 202#endif 203 204#ifndef _VICEFID_T_ 205#define _VICEFID_T_ 1 206typedef struct ViceFid { 207 VolumeId Volume; 208 VnodeId Vnode; 209 Unique_t Unique; 210} ViceFid; 211#endif /* VICEFID */ 212 213 214#ifdef __linux__ 215static __inline__ ino_t coda_f2i(struct ViceFid *fid) 216{ 217 if ( ! fid ) 218 return 0; 219 if (fid->Vnode == 0xfffffffe || fid->Vnode == 0xffffffff) 220 return ((fid->Volume << 20) | (fid->Unique & 0xfffff)); 221 else 222 return (fid->Unique + (fid->Vnode<<10) + (fid->Volume<<20)); 223} 224 225#else 226#define coda_f2i(fid)\ 227 ((fid) ? ((fid)->Unique + ((fid)->Vnode<<10) + ((fid)->Volume<<20)) : 0) 228#endif 229 230 231#ifndef _VUID_T_ 232#define _VUID_T_ 233typedef u_int32_t vuid_t; 234typedef u_int32_t vgid_t; 235#endif /*_VUID_T_ */ 236 237#ifndef _CODACRED_T_ 238#define _CODACRED_T_ 239struct coda_cred { 240 vuid_t cr_uid, cr_euid, cr_suid, cr_fsuid; /* Real, efftve, set, fs uid*/ 241 vgid_t cr_groupid, cr_egid, cr_sgid, cr_fsgid; /* same for groups */ 242}; 243#endif 244 245#ifndef _VENUS_VATTR_T_ 246#define _VENUS_VATTR_T_ 247/* 248 * Vnode types. VNON means no type. 249 */ 250enum coda_vtype { C_VNON, C_VREG, C_VDIR, C_VBLK, C_VCHR, C_VLNK, C_VSOCK, C_VFIFO, C_VBAD }; 251 252struct coda_vattr { 253 long va_type; /* vnode type (for create) */ 254 u_short va_mode; /* files access mode and type */ 255 short va_nlink; /* number of references to file */ 256 vuid_t va_uid; /* owner user id */ 257 vgid_t va_gid; /* owner group id */ 258 long va_fileid; /* file id */ 259 u_quad_t va_size; /* file size in bytes */ 260 long va_blocksize; /* blocksize preferred for i/o */ 261 struct timespec va_atime; /* time of last access */ 262 struct timespec va_mtime; /* time of last modification */ 263 struct timespec va_ctime; /* time file changed */ 264 u_long va_gen; /* generation number of file */ 265 u_long va_flags; /* flags defined for file */ 266 cdev_t va_rdev; /* device special file represents */ 267 u_quad_t va_bytes; /* bytes of disk space held by file */ 268 u_quad_t va_filerev; /* file modification number */ 269}; 270 271#endif 272 273/* structure used by CODA_STATFS for getting cache information from venus */ 274struct coda_statfs { 275 int32_t f_blocks; 276 int32_t f_bfree; 277 int32_t f_bavail; 278 int32_t f_files; 279 int32_t f_ffree; 280}; 281 282/* 283 * Kernel <--> Venus communications. 284 */ 285 286#define CODA_ROOT 2 287#define CODA_OPEN_BY_FD 3 288#define CODA_OPEN 4 289#define CODA_CLOSE 5 290#define CODA_IOCTL 6 291#define CODA_GETATTR 7 292#define CODA_SETATTR 8 293#define CODA_ACCESS 9 294#define CODA_LOOKUP 10 295#define CODA_CREATE 11 296#define CODA_REMOVE 12 297#define CODA_LINK 13 298#define CODA_RENAME 14 299#define CODA_MKDIR 15 300#define CODA_RMDIR 16 301#define CODA_SYMLINK 18 302#define CODA_READLINK 19 303#define CODA_FSYNC 20 304#define CODA_VGET 22 305#define CODA_SIGNAL 23 306#define CODA_REPLACE 24 /* DOWNCALL */ 307#define CODA_FLUSH 25 /* DOWNCALL */ 308#define CODA_PURGEUSER 26 /* DOWNCALL */ 309#define CODA_ZAPFILE 27 /* DOWNCALL */ 310#define CODA_ZAPDIR 28 /* DOWNCALL */ 311#define CODA_PURGEFID 30 /* DOWNCALL */ 312#define CODA_OPEN_BY_PATH 31 313#define CODA_RESOLVE 32 314#define CODA_REINTEGRATE 33 315#define CODA_STATFS 34 316#define CODA_STORE 35 317#define CODA_RELEASE 36 318#define CODA_NCALLS 37 319 320#define DOWNCALL(opcode) (opcode >= CODA_REPLACE && opcode <= CODA_PURGEFID) 321 322#define VC_MAXDATASIZE 8192 323#define VC_MAXMSGSIZE sizeof(union inputArgs)+sizeof(union outputArgs) +\ 324 VC_MAXDATASIZE 325 326#define CIOC_KERNEL_VERSION _IOWR('c', 10, sizeof (int)) 327 328#define CODA_KERNEL_VERSION 2 /* venus_lookup gets an extra parameter */ 329 330/* 331 * Venus <-> Coda RPC arguments 332 */ 333struct coda_in_hdr { 334 unsigned long opcode; 335 unsigned long unique; /* Keep multiple outstanding msgs distinct */ 336 u_short pid; /* Common to all */ 337 u_short pgid; /* Common to all */ 338 u_short sid; /* Common to all */ 339 struct coda_cred cred; /* Common to all */ 340}; 341 342/* Really important that opcode and unique are 1st two fields! */ 343struct coda_out_hdr { 344 unsigned long opcode; 345 unsigned long unique; 346 unsigned long result; 347}; 348 349/* coda_root: NO_IN */ 350struct coda_root_out { 351 struct coda_out_hdr oh; 352 ViceFid VFid; 353}; 354 355struct coda_root_in { 356 struct coda_in_hdr in; 357}; 358 359/* coda_open: */ 360struct coda_open_in { 361 struct coda_in_hdr ih; 362 ViceFid VFid; 363 int flags; 364}; 365 366struct coda_open_out { 367 struct coda_out_hdr oh; 368 cdev_t dev; 369 ino_t inode; 370}; 371 372 373/* coda_store: */ 374struct coda_store_in { 375 struct coda_in_hdr ih; 376 ViceFid VFid; 377 int flags; 378}; 379 380struct coda_store_out { 381 struct coda_out_hdr out; 382}; 383 384/* coda_release: */ 385struct coda_release_in { 386 struct coda_in_hdr ih; 387 ViceFid VFid; 388 int flags; 389}; 390 391struct coda_release_out { 392 struct coda_out_hdr out; 393}; 394 395/* coda_close: */ 396struct coda_close_in { 397 struct coda_in_hdr ih; 398 ViceFid VFid; 399 int flags; 400}; 401 402struct coda_close_out { 403 struct coda_out_hdr out; 404}; 405 406/* coda_ioctl: */ 407struct coda_ioctl_in { 408 struct coda_in_hdr ih; 409 ViceFid VFid; 410 int cmd; 411 int len; 412 int rwflag; 413 char *data; /* Place holder for data. */ 414}; 415 416struct coda_ioctl_out { 417 struct coda_out_hdr oh; 418 int len; 419 caddr_t data; /* Place holder for data. */ 420}; 421 422 423/* coda_getattr: */ 424struct coda_getattr_in { 425 struct coda_in_hdr ih; 426 ViceFid VFid; 427}; 428 429struct coda_getattr_out { 430 struct coda_out_hdr oh; 431 struct coda_vattr attr; 432}; 433 434 435/* coda_setattr: NO_OUT */ 436struct coda_setattr_in { 437 struct coda_in_hdr ih; 438 ViceFid VFid; 439 struct coda_vattr attr; 440}; 441 442struct coda_setattr_out { 443 struct coda_out_hdr out; 444}; 445 446/* coda_access: NO_OUT */ 447struct coda_access_in { 448 struct coda_in_hdr ih; 449 ViceFid VFid; 450 int flags; 451}; 452 453struct coda_access_out { 454 struct coda_out_hdr out; 455}; 456 457 458/* lookup flags */ 459#define CLU_CASE_SENSITIVE 0x01 460#define CLU_CASE_INSENSITIVE 0x02 461 462/* coda_lookup: */ 463struct coda_lookup_in { 464 struct coda_in_hdr ih; 465 ViceFid VFid; 466 int name; /* Place holder for data. */ 467 int flags; 468}; 469 470struct coda_lookup_out { 471 struct coda_out_hdr oh; 472 ViceFid VFid; 473 int vtype; 474}; 475 476 477/* coda_create: */ 478struct coda_create_in { 479 struct coda_in_hdr ih; 480 ViceFid VFid; 481 struct coda_vattr attr; 482 int excl; 483 int mode; 484 int name; /* Place holder for data. */ 485}; 486 487struct coda_create_out { 488 struct coda_out_hdr oh; 489 ViceFid VFid; 490 struct coda_vattr attr; 491}; 492 493 494/* coda_remove: NO_OUT */ 495struct coda_remove_in { 496 struct coda_in_hdr ih; 497 ViceFid VFid; 498 int name; /* Place holder for data. */ 499}; 500 501struct coda_remove_out { 502 struct coda_out_hdr out; 503}; 504 505/* coda_link: NO_OUT */ 506struct coda_link_in { 507 struct coda_in_hdr ih; 508 ViceFid sourceFid; /* cnode to link *to* */ 509 ViceFid destFid; /* Directory in which to place link */ 510 int tname; /* Place holder for data. */ 511}; 512 513struct coda_link_out { 514 struct coda_out_hdr out; 515}; 516 517 518/* coda_rename: NO_OUT */ 519struct coda_rename_in { 520 struct coda_in_hdr ih; 521 ViceFid sourceFid; 522 int srcname; 523 ViceFid destFid; 524 int destname; 525}; 526 527struct coda_rename_out { 528 struct coda_out_hdr out; 529}; 530 531/* coda_mkdir: */ 532struct coda_mkdir_in { 533 struct coda_in_hdr ih; 534 ViceFid VFid; 535 struct coda_vattr attr; 536 int name; /* Place holder for data. */ 537}; 538 539struct coda_mkdir_out { 540 struct coda_out_hdr oh; 541 ViceFid VFid; 542 struct coda_vattr attr; 543}; 544 545 546/* coda_rmdir: NO_OUT */ 547struct coda_rmdir_in { 548 struct coda_in_hdr ih; 549 ViceFid VFid; 550 int name; /* Place holder for data. */ 551}; 552 553struct coda_rmdir_out { 554 struct coda_out_hdr out; 555}; 556 557/* coda_symlink: NO_OUT */ 558struct coda_symlink_in { 559 struct coda_in_hdr ih; 560 ViceFid VFid; /* Directory to put symlink in */ 561 int srcname; 562 struct coda_vattr attr; 563 int tname; 564}; 565 566struct coda_symlink_out { 567 struct coda_out_hdr out; 568}; 569 570/* coda_readlink: */ 571struct coda_readlink_in { 572 struct coda_in_hdr ih; 573 ViceFid VFid; 574}; 575 576struct coda_readlink_out { 577 struct coda_out_hdr oh; 578 int count; 579 caddr_t data; /* Place holder for data. */ 580}; 581 582 583/* coda_fsync: NO_OUT */ 584struct coda_fsync_in { 585 struct coda_in_hdr ih; 586 ViceFid VFid; 587}; 588 589struct coda_fsync_out { 590 struct coda_out_hdr out; 591}; 592 593/* coda_vget: */ 594struct coda_vget_in { 595 struct coda_in_hdr ih; 596 ViceFid VFid; 597}; 598 599struct coda_vget_out { 600 struct coda_out_hdr oh; 601 ViceFid VFid; 602 int vtype; 603}; 604 605 606/* CODA_SIGNAL is out-of-band, doesn't need data. */ 607/* CODA_INVALIDATE is a venus->kernel call */ 608/* CODA_FLUSH is a venus->kernel call */ 609 610/* coda_purgeuser: */ 611/* CODA_PURGEUSER is a venus->kernel call */ 612struct coda_purgeuser_out { 613 struct coda_out_hdr oh; 614 struct coda_cred cred; 615}; 616 617/* coda_zapfile: */ 618/* CODA_ZAPFILE is a venus->kernel call */ 619struct coda_zapfile_out { 620 struct coda_out_hdr oh; 621 ViceFid CodaFid; 622}; 623 624/* coda_zapdir: */ 625/* CODA_ZAPDIR is a venus->kernel call */ 626struct coda_zapdir_out { 627 struct coda_out_hdr oh; 628 ViceFid CodaFid; 629}; 630 631/* coda_zapnode: */ 632/* CODA_ZAPVNODE is a venus->kernel call */ 633struct coda_zapvnode_out { 634 struct coda_out_hdr oh; 635 struct coda_cred cred; 636 ViceFid VFid; 637}; 638 639/* coda_purgefid: */ 640/* CODA_PURGEFID is a venus->kernel call */ 641struct coda_purgefid_out { 642 struct coda_out_hdr oh; 643 ViceFid CodaFid; 644}; 645 646/* coda_replace: */ 647/* CODA_REPLACE is a venus->kernel call */ 648struct coda_replace_out { /* coda_replace is a venus->kernel call */ 649 struct coda_out_hdr oh; 650 ViceFid NewFid; 651 ViceFid OldFid; 652}; 653 654/* coda_open_by_fd: */ 655struct coda_open_by_fd_in { 656 struct coda_in_hdr ih; 657 ViceFid VFid; 658 int flags; 659}; 660 661struct coda_open_by_fd_out { 662 struct coda_out_hdr oh; 663 int fd; 664 665#ifdef __KERNEL__ 666 struct file *fh; /* not passed from userspace but used in-kernel only */ 667#endif 668}; 669 670/* coda_open_by_path: */ 671struct coda_open_by_path_in { 672 struct coda_in_hdr ih; 673 ViceFid VFid; 674 int flags; 675}; 676 677struct coda_open_by_path_out { 678 struct coda_out_hdr oh; 679 int path; 680}; 681 682/* coda_statfs: NO_IN */ 683struct coda_statfs_in { 684 struct coda_in_hdr in; 685}; 686 687struct coda_statfs_out { 688 struct coda_out_hdr oh; 689 struct coda_statfs stat; 690}; 691 692/* 693 * Occasionally, we don't cache the fid returned by CODA_LOOKUP. 694 * For instance, if the fid is inconsistent. 695 * This case is handled by setting the top bit of the type result parameter. 696 */ 697#define CODA_NOCACHE 0x80000000 698 699union inputArgs { 700 struct coda_in_hdr ih; /* NB: every struct below begins with an ih */ 701 struct coda_open_in coda_open; 702 struct coda_store_in coda_store; 703 struct coda_release_in coda_release; 704 struct coda_close_in coda_close; 705 struct coda_ioctl_in coda_ioctl; 706 struct coda_getattr_in coda_getattr; 707 struct coda_setattr_in coda_setattr; 708 struct coda_access_in coda_access; 709 struct coda_lookup_in coda_lookup; 710 struct coda_create_in coda_create; 711 struct coda_remove_in coda_remove; 712 struct coda_link_in coda_link; 713 struct coda_rename_in coda_rename; 714 struct coda_mkdir_in coda_mkdir; 715 struct coda_rmdir_in coda_rmdir; 716 struct coda_symlink_in coda_symlink; 717 struct coda_readlink_in coda_readlink; 718 struct coda_fsync_in coda_fsync; 719 struct coda_vget_in coda_vget; 720 struct coda_open_by_fd_in coda_open_by_fd; 721 struct coda_open_by_path_in coda_open_by_path; 722 struct coda_statfs_in coda_statfs; 723}; 724 725union outputArgs { 726 struct coda_out_hdr oh; /* NB: every struct below begins with an oh */ 727 struct coda_root_out coda_root; 728 struct coda_open_out coda_open; 729 struct coda_ioctl_out coda_ioctl; 730 struct coda_getattr_out coda_getattr; 731 struct coda_lookup_out coda_lookup; 732 struct coda_create_out coda_create; 733 struct coda_mkdir_out coda_mkdir; 734 struct coda_readlink_out coda_readlink; 735 struct coda_vget_out coda_vget; 736 struct coda_purgeuser_out coda_purgeuser; 737 struct coda_zapfile_out coda_zapfile; 738 struct coda_zapdir_out coda_zapdir; 739 struct coda_zapvnode_out coda_zapvnode; 740 struct coda_purgefid_out coda_purgefid; 741 struct coda_replace_out coda_replace; 742 struct coda_open_by_fd_out coda_open_by_fd; 743 struct coda_open_by_path_out coda_open_by_path; 744 struct coda_statfs_out coda_statfs; 745}; 746 747union coda_downcalls { 748 /* CODA_INVALIDATE is a venus->kernel call */ 749 /* CODA_FLUSH is a venus->kernel call */ 750 struct coda_purgeuser_out purgeuser; 751 struct coda_zapfile_out zapfile; 752 struct coda_zapdir_out zapdir; 753 struct coda_zapvnode_out zapvnode; 754 struct coda_purgefid_out purgefid; 755 struct coda_replace_out replace; 756}; 757 758 759/* 760 * Used for identifying usage of "Control" and pioctls 761 */ 762 763#define PIOCPARM_MASK 0x0000ffff 764struct ViceIoctl { 765 caddr_t in, out; /* Data to be transferred in, or out */ 766 short in_size; /* Size of input buffer <= 2K */ 767 short out_size; /* Maximum size of output buffer, <= 2K */ 768}; 769 770struct PioctlData { 771 const char *path; 772 int follow; 773 struct ViceIoctl vi; 774}; 775 776#define CODA_CONTROL ".CONTROL" 777#define CODA_CONTROLLEN 8 778#define CTL_VOL -1 779#define CTL_VNO -1 780#define CTL_UNI -1 781#define CTL_INO -1 782#define CTL_FILE "/coda/.CONTROL" 783 784 785#define IS_CTL_FID(fidp) ((fidp)->Volume == CTL_VOL &&\ 786 (fidp)->Vnode == CTL_VNO &&\ 787 (fidp)->Unique == CTL_UNI) 788 789/* Data passed to mount */ 790 791#define CODA_MOUNT_VERSION 1 792 793struct coda_mount_data { 794 int version; 795 int fd; /* Opened device */ 796}; 797 798#endif 799 800