NFS client update

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4582 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2012-04-09 23:35:45 +00:00
parent 52ca693964
commit bc74d78940
3 changed files with 502 additions and 324 deletions

View File

@ -98,6 +98,7 @@ struct nfsmount
int nm_acregmin; /* Reg file attr cache min lifetime */ int nm_acregmin; /* Reg file attr cache min lifetime */
int nm_acregmax; /* Reg file attr cache max lifetime */ int nm_acregmax; /* Reg file attr cache max lifetime */
unsigned char nm_verf[NFSX_V3WRITEVERF]; /* V3 write verifier */ unsigned char nm_verf[NFSX_V3WRITEVERF]; /* V3 write verifier */
char nm_mntonname[90]; /* directory on which mounted */
uint8_t *nm_buffer; /* This is an allocated buffer to hold one sector*/ uint8_t *nm_buffer; /* This is an allocated buffer to hold one sector*/
}; };
@ -110,14 +111,11 @@ struct nfsmount
int nfs_mount(struct inode *, const char *, void *); int nfs_mount(struct inode *, const char *, void *);
int mountnfs(struct nfs_args *, struct inode *, char *, char *); int mountnfs(struct nfs_args *, struct inode *, char *, char *);
void nfs_decode_args(struct nfsmount *, struct nfs_args *, struct nfs_args *); void nfs_decode_args(struct nfsmount *, struct nfs_args *, struct nfs_args *);
int nfs_start(struct inode *, int);
int nfs_unmount(struct inode *, int); int nfs_unmount(struct inode *, int);
int nfs_root(struct inode *, struct file **); int nfs_root(struct inode *, struct file **);
int nfs_statfs(struct inode *, struct statfs *); int nfs_statfs(struct inode *, struct statfs *);
int nfs_sync(struct inode *, int); int nfs_sync(struct inode *, int);
int nfs_vget(struct inode *, ino_t, struct file **); int nfs_vget(struct inode *, ino_t, struct file **);
int nfs_fhtovp(struct inode *, struct fid *);
int nfs_vptofh(struct file *, struct fid *);
int nfs_fsinfo(struct nfsmount *, struct file *); int nfs_fsinfo(struct nfsmount *, struct file *);
void nfs_init(void); void nfs_init(void);

View File

@ -115,6 +115,7 @@ struct nfsnode
bool n_open; /* true: The file is (still) open */ bool n_open; /* true: The file is (still) open */
uint64_t n_size; /* Current size of file */ uint64_t n_size; /* Current size of file */
struct nfs_fattr n_fattr; /* nfs file attribute cache */ struct nfs_fattr n_fattr; /* nfs file attribute cache */
struct nfsv3_sattr n_sattr;
nfstype nfsv3_type; /* File type */ nfstype nfsv3_type; /* File type */
time_t n_attrstamp; /* Attr. cache timestamp */ time_t n_attrstamp; /* Attr. cache timestamp */
struct timespec n_mtime; /* Prev modify time. */ struct timespec n_mtime; /* Prev modify time. */

File diff suppressed because it is too large Load Diff