diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2012-04-17 20:05:08 -0700 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-04-17 20:05:08 -0700 |
commit | 78060bd30f50c43c7442f32e7740efcdb87ba587 (patch) | |
tree | 1e867c19b9592103f72f6edcd9f6eb2d64bee571 /sysroot/usr/include/linux/nfsd/nfsfh.h | |
parent | ab3b7cbd040e44324deb24cf68f5c4b92631d2a6 (diff) | |
parent | 89f86579c259fb217b18f2414787220f45ece7fd (diff) | |
download | mipsel-linux-android-4.4.3-78060bd30f50c43c7442f32e7740efcdb87ba587.tar.gz |
Merge "Adding mipsel-linux-android- cross toolchain"android-sdk-adt_r20android-cts-4.1_r4android-cts-4.1_r2android-cts-4.1_r1android-4.1.2_r2.1android-4.1.2_r2android-4.1.2_r1android-4.1.1_r6.1android-4.1.1_r6android-4.1.1_r5android-4.1.1_r4android-4.1.1_r3android-4.1.1_r2android-4.1.1_r1.1android-4.1.1_r1tools_r20jb-releasejb-mr0-releasejb-devics-plus-aosp
Diffstat (limited to 'sysroot/usr/include/linux/nfsd/nfsfh.h')
-rw-r--r-- | sysroot/usr/include/linux/nfsd/nfsfh.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sysroot/usr/include/linux/nfsd/nfsfh.h b/sysroot/usr/include/linux/nfsd/nfsfh.h new file mode 100644 index 0000000..13450d2 --- /dev/null +++ b/sysroot/usr/include/linux/nfsd/nfsfh.h @@ -0,0 +1,62 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _LINUX_NFSD_FH_H +#define _LINUX_NFSD_FH_H + +#include <asm/types.h> +#include <linux/nfsd/const.h> +#include <linux/nfsd/debug.h> + +struct nfs_fhbase_old { + __u32 fb_dcookie; + __u32 fb_ino; + __u32 fb_dirino; + __u32 fb_dev; + __u32 fb_xdev; + __u32 fb_xino; + __u32 fb_generation; +}; + +struct nfs_fhbase_new { + __u8 fb_version; + __u8 fb_auth_type; + __u8 fb_fsid_type; + __u8 fb_fileid_type; + __u32 fb_auth[1]; + +}; + +struct knfsd_fh { + unsigned int fh_size; + union { + struct nfs_fhbase_old fh_old; + __u32 fh_pad[NFS4_FHSIZE/4]; + struct nfs_fhbase_new fh_new; + } fh_base; +}; + +#define ofh_dcookie fh_base.fh_old.fb_dcookie +#define ofh_ino fh_base.fh_old.fb_ino +#define ofh_dirino fh_base.fh_old.fb_dirino +#define ofh_dev fh_base.fh_old.fb_dev +#define ofh_xdev fh_base.fh_old.fb_xdev +#define ofh_xino fh_base.fh_old.fb_xino +#define ofh_generation fh_base.fh_old.fb_generation + +#define fh_version fh_base.fh_new.fb_version +#define fh_fsid_type fh_base.fh_new.fb_fsid_type +#define fh_auth_type fh_base.fh_new.fb_auth_type +#define fh_fileid_type fh_base.fh_new.fb_fileid_type +#define fh_auth fh_base.fh_new.fb_auth +#define fh_fsid fh_base.fh_new.fb_auth + +#endif |