Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 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 Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _LINUX_NFS_MOUNT_H |
| 8 | #define _LINUX_NFS_MOUNT_H |
| 9 | #include <linux/in.h> |
| 10 | #include <linux/nfs.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #include <linux/nfs2.h> |
| 12 | #include <linux/nfs3.h> |
| 13 | #define NFS_MOUNT_VERSION 6 |
| 14 | #define NFS_MAX_CONTEXT_LEN 256 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | struct nfs_mount_data { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 16 | int version; |
| 17 | int fd; |
| 18 | struct nfs2_fh old_root; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 19 | int flags; |
| 20 | int rsize; |
| 21 | int wsize; |
| 22 | int timeo; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | int retrans; |
| 24 | int acregmin; |
| 25 | int acregmax; |
| 26 | int acdirmin; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | int acdirmax; |
| 28 | struct sockaddr_in addr; |
| 29 | char hostname[NFS_MAXNAMLEN + 1]; |
| 30 | int namlen; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 | unsigned int bsize; |
| 32 | struct nfs3_fh root; |
| 33 | int pseudoflavor; |
| 34 | char context[NFS_MAX_CONTEXT_LEN + 1]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | }; |
| 36 | #define NFS_MOUNT_SOFT 0x0001 |
| 37 | #define NFS_MOUNT_INTR 0x0002 |
| 38 | #define NFS_MOUNT_SECURE 0x0004 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define NFS_MOUNT_POSIX 0x0008 |
| 40 | #define NFS_MOUNT_NOCTO 0x0010 |
| 41 | #define NFS_MOUNT_NOAC 0x0020 |
| 42 | #define NFS_MOUNT_TCP 0x0040 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | #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 Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | #define NFS_MOUNT_NOACL 0x0800 |
| 48 | #define NFS_MOUNT_STRICTLOCK 0x1000 |
| 49 | #define NFS_MOUNT_SECFLAVOUR 0x2000 |
| 50 | #define NFS_MOUNT_NORDIRPLUS 0x4000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 51 | #define NFS_MOUNT_UNSHARED 0x8000 |
| 52 | #define NFS_MOUNT_FLAGMASK 0xFFFF |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 53 | #endif |