blob: 3dee4cf8b4fbe6b488c9a4f4a0d284ae2c4c437f [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _LINUX_NFS4_MOUNT_H
8#define _LINUX_NFS4_MOUNT_H
9#define NFS4_MOUNT_VERSION 1
10struct nfs_string {
Tao Baod7db5942015-01-28 10:07:51 -080011 unsigned int len;
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070012 const char * data;
Ben Cheng655a7c02013-10-16 16:09:24 -070013};
14struct nfs4_mount_data {
Tao Baod7db5942015-01-28 10:07:51 -080015 int version;
16 int flags;
17 int rsize;
18 int wsize;
Tao Baod7db5942015-01-28 10:07:51 -080019 int timeo;
20 int retrans;
21 int acregmin;
22 int acregmax;
Tao Baod7db5942015-01-28 10:07:51 -080023 int acdirmin;
24 int acdirmax;
25 struct nfs_string client_addr;
26 struct nfs_string mnt_path;
Tao Baod7db5942015-01-28 10:07:51 -080027 struct nfs_string hostname;
28 unsigned int host_addrlen;
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070029 struct sockaddr * host_addr;
Tao Baod7db5942015-01-28 10:07:51 -080030 int proto;
Tao Baod7db5942015-01-28 10:07:51 -080031 int auth_flavourlen;
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070032 int * auth_flavours;
Ben Cheng655a7c02013-10-16 16:09:24 -070033};
34#define NFS4_MOUNT_SOFT 0x0001
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define NFS4_MOUNT_INTR 0x0002
36#define NFS4_MOUNT_NOCTO 0x0010
37#define NFS4_MOUNT_NOAC 0x0020
38#define NFS4_MOUNT_STRICTLOCK 0x1000
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define NFS4_MOUNT_UNSHARED 0x8000
40#define NFS4_MOUNT_FLAGMASK 0x9033
Nick Kralevicha67e4de2013-01-14 11:28:26 -080041#endif