blob: 9b9c9f8a413da9fbe1b082a393ff8f180d99b0b7 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _LINUX_NFS4_MOUNT_H
20#define _LINUX_NFS4_MOUNT_H
21#define NFS4_MOUNT_VERSION 1
22struct nfs_string {
Tao Baod7db5942015-01-28 10:07:51 -080023 unsigned int len;
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070024 const char * data;
Ben Cheng655a7c02013-10-16 16:09:24 -070025};
26struct nfs4_mount_data {
Tao Baod7db5942015-01-28 10:07:51 -080027 int version;
28 int flags;
29 int rsize;
30 int wsize;
Tao Baod7db5942015-01-28 10:07:51 -080031 int timeo;
32 int retrans;
33 int acregmin;
34 int acregmax;
Tao Baod7db5942015-01-28 10:07:51 -080035 int acdirmin;
36 int acdirmax;
37 struct nfs_string client_addr;
38 struct nfs_string mnt_path;
Tao Baod7db5942015-01-28 10:07:51 -080039 struct nfs_string hostname;
40 unsigned int host_addrlen;
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070041 struct sockaddr * host_addr;
Tao Baod7db5942015-01-28 10:07:51 -080042 int proto;
Tao Baod7db5942015-01-28 10:07:51 -080043 int auth_flavourlen;
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070044 int * auth_flavours;
Ben Cheng655a7c02013-10-16 16:09:24 -070045};
46#define NFS4_MOUNT_SOFT 0x0001
Ben Cheng655a7c02013-10-16 16:09:24 -070047#define NFS4_MOUNT_INTR 0x0002
48#define NFS4_MOUNT_NOCTO 0x0010
49#define NFS4_MOUNT_NOAC 0x0020
50#define NFS4_MOUNT_STRICTLOCK 0x1000
Ben Cheng655a7c02013-10-16 16:09:24 -070051#define NFS4_MOUNT_UNSHARED 0x8000
52#define NFS4_MOUNT_FLAGMASK 0x9033
Nick Kralevicha67e4de2013-01-14 11:28:26 -080053#endif