1139823Simp/*- 222521Sdyson * Copyright (c) 1989, 1993, 1995 31541Srgrimes * The Regents of the University of California. All rights reserved. 41541Srgrimes * 51541Srgrimes * This code is derived from software contributed to Berkeley by 61541Srgrimes * Rick Macklem at The University of Guelph. 71541Srgrimes * 81541Srgrimes * Redistribution and use in source and binary forms, with or without 91541Srgrimes * modification, are permitted provided that the following conditions 101541Srgrimes * are met: 111541Srgrimes * 1. Redistributions of source code must retain the above copyright 121541Srgrimes * notice, this list of conditions and the following disclaimer. 131541Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 141541Srgrimes * notice, this list of conditions and the following disclaimer in the 151541Srgrimes * documentation and/or other materials provided with the distribution. 161541Srgrimes * 4. Neither the name of the University nor the names of its contributors 171541Srgrimes * may be used to endorse or promote products derived from this software 181541Srgrimes * without specific prior written permission. 191541Srgrimes * 201541Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 211541Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 221541Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 231541Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 241541Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 251541Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 261541Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 271541Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 281541Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 291541Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 301541Srgrimes * SUCH DAMAGE. 311541Srgrimes * 3222521Sdyson * @(#)nfs.h 8.4 (Berkeley) 5/1/95 3350477Speter * $FreeBSD: releng/10.3/sys/nfsclient/nfsargs.h 260107 2013-12-30 21:17:20Z rmacklem $ 341541Srgrimes */ 351541Srgrimes 3683651Speter#ifndef _NFSCLIENT_NFSARGS_H_ 3783651Speter#define _NFSCLIENT_NFSARGS_H_ 382175Spaul 391541Srgrimes/* 4022521Sdyson * Arguments to mount NFS 4122521Sdyson */ 4222521Sdyson#define NFS_ARGSVERSION 3 /* change when nfs_args changes */ 4322521Sdysonstruct nfs_args { 4422521Sdyson int version; /* args structure version number */ 4522521Sdyson struct sockaddr *addr; /* file server address */ 4622521Sdyson int addrlen; /* length of address */ 4722521Sdyson int sotype; /* Socket type */ 4822521Sdyson int proto; /* and Protocol */ 4922521Sdyson u_char *fh; /* File handle to be mounted */ 5022521Sdyson int fhsize; /* Size, in bytes, of fh */ 5122521Sdyson int flags; /* flags */ 5222521Sdyson int wsize; /* write size in bytes */ 5322521Sdyson int rsize; /* read size in bytes */ 5422521Sdyson int readdirsize; /* readdir size in bytes */ 5522521Sdyson int timeo; /* initial timeout in .1 secs */ 5622521Sdyson int retrans; /* times to retry send */ 5722521Sdyson int maxgrouplist; /* Max. size of group list */ 5822521Sdyson int readahead; /* # of blocks to readahead */ 59147280Sgreen int wcommitsize; /* Max. write commit size in bytes */ 6022521Sdyson int deadthresh; /* Retrans threshold */ 6122521Sdyson char *hostname; /* server's name */ 6236176Speter int acregmin; /* cache attrs for reg files min time */ 6336176Speter int acregmax; /* cache attrs for reg files max time */ 6436176Speter int acdirmin; /* cache attrs for dirs min time */ 6536176Speter int acdirmax; /* cache attrs for dirs max time */ 6622521Sdyson}; 6722521Sdyson 6822521Sdyson/* 6922521Sdyson * NFS mount option flags 7022521Sdyson */ 7122521Sdyson#define NFSMNT_SOFT 0x00000001 /* soft mount (hard is default) */ 7222521Sdyson#define NFSMNT_WSIZE 0x00000002 /* set write size */ 7322521Sdyson#define NFSMNT_RSIZE 0x00000004 /* set read size */ 7422521Sdyson#define NFSMNT_TIMEO 0x00000008 /* set initial timeout */ 7522521Sdyson#define NFSMNT_RETRANS 0x00000010 /* set number of request retries */ 7622521Sdyson#define NFSMNT_MAXGRPS 0x00000020 /* set maximum grouplist size */ 7722521Sdyson#define NFSMNT_INT 0x00000040 /* allow interrupts on hard mount */ 7822521Sdyson#define NFSMNT_NOCONN 0x00000080 /* Don't Connect the socket */ 7983651Speter/* 0x100 free, was NFSMNT_NQNFS */ 8022521Sdyson#define NFSMNT_NFSV3 0x00000200 /* Use NFS Version 3 protocol */ 81221014Srmacklem#define NFSMNT_KERB 0x00000400 /* Use RPCSEC_GSS/Krb5 */ 8222521Sdyson#define NFSMNT_DUMBTIMR 0x00000800 /* Don't estimate rtt dynamically */ 83147280Sgreen#define NFSMNT_WCOMMITSIZE 0x00001000 /* set max write commit size */ 8422521Sdyson#define NFSMNT_READAHEAD 0x00002000 /* set read ahead */ 8522521Sdyson#define NFSMNT_DEADTHRESH 0x00004000 /* set dead server retry thresh */ 8622521Sdyson#define NFSMNT_RESVPORT 0x00008000 /* Allocate a reserved port */ 8722521Sdyson#define NFSMNT_RDIRPLUS 0x00010000 /* Use Readdirplus for V3 */ 8822521Sdyson#define NFSMNT_READDIRSIZE 0x00020000 /* Set readdir size */ 8936176Speter#define NFSMNT_ACREGMIN 0x00040000 9036176Speter#define NFSMNT_ACREGMAX 0x00080000 9136176Speter#define NFSMNT_ACDIRMIN 0x00100000 9236176Speter#define NFSMNT_ACDIRMAX 0x00200000 9386284Salfred#define NFSMNT_NOLOCKD 0x00400000 /* Locks are local */ 94122698Salfred#define NFSMNT_NFSV4 0x00800000 /* Use NFS Version 4 protocol */ 95122698Salfred#define NFSMNT_HASWRITEVERF 0x01000000 /* NFSv4 Write verifier */ 96221014Srmacklem#define NFSMNT_INTEGRITY 0x02000000 /* Use integrity with RPCSEC_GSS */ 97221014Srmacklem#define NFSMNT_PRIVACY 0x04000000 /* Use privacy with RPCSEC_GSS */ 98221014Srmacklem#define NFSMNT_ALLGSSNAME 0x08000000 /* Use principal for all accesses */ 99221014Srmacklem#define NFSMNT_STRICT3530 0x10000000 /* Adhere strictly to RFC3530 */ 100221436Sru#define NFSMNT_NOCTO 0x20000000 /* Don't flush attrcache on open */ 101244042Srmacklem#define NFSMNT_PNFS 0x40000000 /* Enable pNFS support */ 102260107Srmacklem#define NFSMNT_NONCONTIGWR 0x80000000 /* Enable non-contiguous writes */ 10322521Sdyson 10422521Sdyson#endif 105