blob: 0e33fff6347a966039f273d275c71b703b5afe00 [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_NFS_MOUNT_H
8#define _LINUX_NFS_MOUNT_H
9#include <linux/in.h>
10#include <linux/nfs.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070011#include <linux/nfs2.h>
12#include <linux/nfs3.h>
13#define NFS_MOUNT_VERSION 6
14#define NFS_MAX_CONTEXT_LEN 256
Ben Cheng655a7c02013-10-16 16:09:24 -070015struct nfs_mount_data {
Tao Baod7db5942015-01-28 10:07:51 -080016 int version;
17 int fd;
18 struct nfs2_fh old_root;
Tao Baod7db5942015-01-28 10:07:51 -080019 int flags;
20 int rsize;
21 int wsize;
22 int timeo;
Tao Baod7db5942015-01-28 10:07:51 -080023 int retrans;
24 int acregmin;
25 int acregmax;
26 int acdirmin;
Tao Baod7db5942015-01-28 10:07:51 -080027 int acdirmax;
28 struct sockaddr_in addr;
29 char hostname[NFS_MAXNAMLEN + 1];
30 int namlen;
Tao Baod7db5942015-01-28 10:07:51 -080031 unsigned int bsize;
32 struct nfs3_fh root;
33 int pseudoflavor;
34 char context[NFS_MAX_CONTEXT_LEN + 1];
Ben Cheng655a7c02013-10-16 16:09:24 -070035};
36#define NFS_MOUNT_SOFT 0x0001
37#define NFS_MOUNT_INTR 0x0002
38#define NFS_MOUNT_SECURE 0x0004
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define NFS_MOUNT_POSIX 0x0008
40#define NFS_MOUNT_NOCTO 0x0010
41#define NFS_MOUNT_NOAC 0x0020
42#define NFS_MOUNT_TCP 0x0040
Ben Cheng655a7c02013-10-16 16:09:24 -070043#define NFS_MOUNT_VER3 0x0080
44#define NFS_MOUNT_KERBEROS 0x0100
45#define NFS_MOUNT_NONLM 0x0200
46#define NFS_MOUNT_BROKEN_SUID 0x0400
Ben Cheng655a7c02013-10-16 16:09:24 -070047#define NFS_MOUNT_NOACL 0x0800
48#define NFS_MOUNT_STRICTLOCK 0x1000
49#define NFS_MOUNT_SECFLAVOUR 0x2000
50#define NFS_MOUNT_NORDIRPLUS 0x4000
Ben Cheng655a7c02013-10-16 16:09:24 -070051#define NFS_MOUNT_UNSHARED 0x8000
52#define NFS_MOUNT_FLAGMASK 0xFFFF
Ben Cheng655a7c02013-10-16 16:09:24 -070053#endif