Linux Kernel
3.7.1
|
#include <linux/param.h>
#include <linux/time.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/in.h>
#include <linux/pagemap.h>
#include <linux/proc_fs.h>
#include <linux/sunrpc/clnt.h>
#include <linux/nfs.h>
#include <linux/nfs2.h>
#include <linux/nfs_fs.h>
#include "internal.h"
Go to the source code of this file.
Functions | |
int | nfs2_decode_dirent (struct xdr_stream *xdr, struct nfs_entry *entry, int plus) |
Variables | |
struct rpc_procinfo | nfs_procedures [] |
struct rpc_version | nfs_version2 |
#define NFS_attrstat_sz (1+NFS_fattr_sz) |
#define NFS_createargs_sz (NFS_diropargs_sz+NFS_sattr_sz) |
#define NFS_diropargs_sz (NFS_fhandle_sz+NFS_filename_sz) |
#define NFS_diropres_sz (1+NFS_fhandle_sz+NFS_fattr_sz) |
#define NFS_entry_sz (NFS_filename_sz+3) |
#define NFS_filename_sz (1+(NFS2_MAXNAMLEN>>2)) |
#define NFS_linkargs_sz (NFS_fhandle_sz+NFS_diropargs_sz) |
#define NFS_path_sz (1+(NFS2_MAXPATHLEN>>2)) |
#define NFS_readargs_sz (NFS_fhandle_sz+3) |
#define NFS_readdirargs_sz (NFS_fhandle_sz+2) |
#define NFS_readlinkargs_sz (NFS_fhandle_sz) |
#define NFS_readres_sz (1+NFS_fattr_sz+1) |
#define NFS_removeargs_sz (NFS_fhandle_sz+NFS_filename_sz) |
#define NFS_renameargs_sz (NFS_diropargs_sz+NFS_diropargs_sz) |
#define NFS_sattrargs_sz (NFS_fhandle_sz+NFS_sattr_sz) |
#define NFS_statfsres_sz (1+NFS_info_sz) |
#define NFS_symlinkargs_sz (NFS_diropargs_sz+1+NFS_sattr_sz) |
#define NFS_writeargs_sz (NFS_fhandle_sz+4) |
#define NFS_writeres_sz (NFS_attrstat_sz) |
#define NFSDBG_FACILITY NFSDBG_XDR |
#define PROC | ( | proc, | |
argtype, | |||
restype, | |||
timer | |||
) |
nfs2_decode_dirent - Decode a single NFSv2 directory entry stored in the local page cache. : XDR stream where entry resides : buffer to fill in with entry data : boolean indicating whether this should be a readdirplus entry
Returns zero if successful, otherwise a negative errno value is returned.
This function is not invoked during READDIR reply decoding, but rather whenever an application invokes the getdents(2) system call on a directory already in our cache.
2.2.17. entry
struct entry { unsigned fileid; filename name; nfscookie cookie; entry *nextentry; };
struct rpc_procinfo nfs_procedures[] |
struct rpc_version nfs_version2 |