Deleted Added
full compact
mount.h (8876) mount.h (9336)
1/*
2 * Copyright (c) 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)mount.h 8.13 (Berkeley) 3/27/94
1/*
2 * Copyright (c) 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)mount.h 8.13 (Berkeley) 3/27/94
34 * $Id: mount.h,v 1.18 1995/05/21 21:39:24 davidg Exp $
34 * $Id: mount.h,v 1.19 1995/05/30 08:14:28 rgrimes Exp $
35 */
36
37#ifndef _SYS_MOUNT_H_
38#define _SYS_MOUNT_H_
39
40#ifndef KERNEL
41#include <sys/ucred.h>
42#endif

--- 355 unchanged lines hidden (view full) ---

398};
399#define ISOFSMNT_NORRIP 0x00000001 /* disable Rock Ridge Ext.*/
400#define ISOFSMNT_GENS 0x00000002 /* enable generation numbers */
401#define ISOFSMNT_EXTATT 0x00000004 /* enable extended attributes */
402#endif /* CD9660 */
403
404#ifdef NFS
405/*
35 */
36
37#ifndef _SYS_MOUNT_H_
38#define _SYS_MOUNT_H_
39
40#ifndef KERNEL
41#include <sys/ucred.h>
42#endif

--- 355 unchanged lines hidden (view full) ---

398};
399#define ISOFSMNT_NORRIP 0x00000001 /* disable Rock Ridge Ext.*/
400#define ISOFSMNT_GENS 0x00000002 /* enable generation numbers */
401#define ISOFSMNT_EXTATT 0x00000004 /* enable extended attributes */
402#endif /* CD9660 */
403
404#ifdef NFS
405/*
406 * File Handle (32 bytes for version 2), variable up to 1024 for version 3
407 */
408union nfsv2fh {
409 fhandle_t fh_generic;
410 u_char fh_bytes[32];
411};
412typedef union nfsv2fh nfsv2fh_t;
413
414/*
415 * Arguments to mount NFS
416 */
417struct nfs_args {
418 struct sockaddr *addr; /* file server address */
419 int addrlen; /* length of address */
420 int sotype; /* Socket type */
421 int proto; /* and Protocol */
406 * Arguments to mount NFS
407 */
408struct nfs_args {
409 struct sockaddr *addr; /* file server address */
410 int addrlen; /* length of address */
411 int sotype; /* Socket type */
412 int proto; /* and Protocol */
422 nfsv2fh_t *fh; /* File handle to be mounted */
413 u_char *fh; /* File handle to be mounted */
414 int fhsize; /* Size, in bytes, of fh */
423 int flags; /* flags */
424 int wsize; /* write size in bytes */
425 int rsize; /* read size in bytes */
415 int flags; /* flags */
416 int wsize; /* write size in bytes */
417 int rsize; /* read size in bytes */
418 int readdirsize; /* readdir size in bytes */
426 int timeo; /* initial timeout in .1 secs */
427 int retrans; /* times to retry send */
428 int maxgrouplist; /* Max. size of group list */
429 int readahead; /* # of blocks to readahead */
430 int leaseterm; /* Term (sec) of lease */
431 int deadthresh; /* Retrans threshold */
432 char *hostname; /* server's name */
433};
434
419 int timeo; /* initial timeout in .1 secs */
420 int retrans; /* times to retry send */
421 int maxgrouplist; /* Max. size of group list */
422 int readahead; /* # of blocks to readahead */
423 int leaseterm; /* Term (sec) of lease */
424 int deadthresh; /* Retrans threshold */
425 char *hostname; /* server's name */
426};
427
435
436/*
437 * NFS mount option flags
438 */
439#define NFSMNT_SOFT 0x00000001 /* soft mount (hard is default) */
440#define NFSMNT_WSIZE 0x00000002 /* set write size */
441#define NFSMNT_RSIZE 0x00000004 /* set read size */
442#define NFSMNT_TIMEO 0x00000008 /* set initial timeout */
443#define NFSMNT_RETRANS 0x00000010 /* set number of request retrys */
444#define NFSMNT_MAXGRPS 0x00000020 /* set maximum grouplist size */
445#define NFSMNT_INT 0x00000040 /* allow interrupts on hard mount */
446#define NFSMNT_NOCONN 0x00000080 /* Don't Connect the socket */
447#define NFSMNT_NQNFS 0x00000100 /* Use Nqnfs protocol */
428/*
429 * NFS mount option flags
430 */
431#define NFSMNT_SOFT 0x00000001 /* soft mount (hard is default) */
432#define NFSMNT_WSIZE 0x00000002 /* set write size */
433#define NFSMNT_RSIZE 0x00000004 /* set read size */
434#define NFSMNT_TIMEO 0x00000008 /* set initial timeout */
435#define NFSMNT_RETRANS 0x00000010 /* set number of request retrys */
436#define NFSMNT_MAXGRPS 0x00000020 /* set maximum grouplist size */
437#define NFSMNT_INT 0x00000040 /* allow interrupts on hard mount */
438#define NFSMNT_NOCONN 0x00000080 /* Don't Connect the socket */
439#define NFSMNT_NQNFS 0x00000100 /* Use Nqnfs protocol */
448#define NFSMNT_MYWRITE 0x00000200 /* Assume writes were mine */
440#define NFSMNT_NFSV3 0x00000200 /* Use NFS Version 3 protocol */
449#define NFSMNT_KERB 0x00000400 /* Use Kerberos authentication */
450#define NFSMNT_DUMBTIMR 0x00000800 /* Don't estimate rtt dynamically */
441#define NFSMNT_KERB 0x00000400 /* Use Kerberos authentication */
442#define NFSMNT_DUMBTIMR 0x00000800 /* Don't estimate rtt dynamically */
451#define NFSMNT_RDIRALOOK 0x00001000 /* Do lookup with readdir (nqnfs) */
452#define NFSMNT_LEASETERM 0x00002000 /* set lease term (nqnfs) */
453#define NFSMNT_READAHEAD 0x00004000 /* set read ahead */
454#define NFSMNT_DEADTHRESH 0x00008000 /* set dead server retry thresh */
455#define NFSMNT_NQLOOKLEASE 0x00010000 /* Get lease for lookup */
456#define NFSMNT_RESVPORT 0x00020000 /* Allocate a reserved port */
457#define NFSMNT_INTERNAL 0xffe00000 /* Bits set internally */
443#define NFSMNT_LEASETERM 0x00001000 /* set lease term (nqnfs) */
444#define NFSMNT_READAHEAD 0x00002000 /* set read ahead */
445#define NFSMNT_DEADTHRESH 0x00004000 /* set dead server retry thresh */
446#define NFSMNT_RESVPORT 0x00008000 /* Allocate a reserved port */
447#define NFSMNT_RDIRPLUS 0x00010000 /* Use Readdirplus for V3 */
448#define NFSMNT_READDIRSIZE 0x00020000 /* Set readdir size */
449#define NFSMNT_INTERNAL 0xfffc0000 /* Bits set internally */
450#define NFSMNT_HASWRITEVERF 0x00040000 /* Has write verifier for V3 */
451#define NFSMNT_GOTPATHCONF 0x00080000 /* Got the V3 pathconf info */
452#define NFSMNT_GOTFSINFO 0x00100000 /* Got the V3 fsinfo */
458#define NFSMNT_MNTD 0x00200000 /* Mnt server for mnt point */
459#define NFSMNT_DISMINPROG 0x00400000 /* Dismount in progress */
460#define NFSMNT_DISMNT 0x00800000 /* Dismounted */
461#define NFSMNT_SNDLOCK 0x01000000 /* Send socket lock */
462#define NFSMNT_WANTSND 0x02000000 /* Want above */
463#define NFSMNT_RCVLOCK 0x04000000 /* Rcv socket lock */
464#define NFSMNT_WANTRCV 0x08000000 /* Want above */
465#define NFSMNT_WAITAUTH 0x10000000 /* Wait for authentication */

--- 55 unchanged lines hidden ---
453#define NFSMNT_MNTD 0x00200000 /* Mnt server for mnt point */
454#define NFSMNT_DISMINPROG 0x00400000 /* Dismount in progress */
455#define NFSMNT_DISMNT 0x00800000 /* Dismounted */
456#define NFSMNT_SNDLOCK 0x01000000 /* Send socket lock */
457#define NFSMNT_WANTSND 0x02000000 /* Want above */
458#define NFSMNT_RCVLOCK 0x04000000 /* Rcv socket lock */
459#define NFSMNT_WANTRCV 0x08000000 /* Want above */
460#define NFSMNT_WAITAUTH 0x10000000 /* Wait for authentication */

--- 55 unchanged lines hidden ---