ms-nfs41-client/daemon
Olga Kornievskaia 17aac16946 use readdir to generate ea list
when given a null for FILE_GET_EA_INFORMATION, use READDIR to construct one with
 the full named attribute directory listing

new function read_entire_dir() allocates an initial buffer for readdir entries a
nd calls nfs41_readdir() repeatedly to fill it.  the buffer is realloc()ed as mo
re space is required, allowing the function to return a complete listing in a si
ngle buffer

new function calculate_ea_list_length() calculates the exact length of the FILE_
GET_EA_INFORMATION buffer required to hold all of the names from the directory l
isting

once the FILE_GET_EA_INFORMATION buffer is allocated, it is filled by populate_e
a_list() and cached with nfs41_open_state

handle_getexattr() remains largely unchanged

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
2012-05-03 10:58:36 -04:00
..
acl.c fixing localdomain_name declaration in acl.c 2012-03-19 15:04:44 -04:00
callback_server.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
callback_xdr.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
daemon_debug.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
daemon_debug.h license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
delegation.c open and create accept pointer to attributes 2012-03-29 16:16:55 -04:00
delegation.h open and create accept pointer to attributes 2012-03-29 16:16:55 -04:00
ea.c use readdir to generate ea list 2012-05-03 10:58:36 -04:00
from_kernel.h implement getattr for FileNetworkOpenInformation 2012-04-20 12:42:36 -04:00
getattr.c cosmetic: move ea get and set upcalls to separate file 2012-05-03 10:58:01 -04:00
idmap.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
idmap.h license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
list.h license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
lock.c locks: serialize lock requests 2012-05-02 18:36:15 -04:00
lookup.c check pathlen on referrals 2012-04-26 16:13:45 -04:00
makefile fresh git tree for public release 2010-10-12 10:15:48 -04:00
mount.c volume: cache volume attributes on mount 2012-04-20 15:03:14 -04:00
name_cache.c increasing namecache size to 256K 2012-05-02 18:53:38 -04:00
name_cache.h license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
namespace.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
nfs41.h use readdir to generate ea list 2012-05-03 10:58:36 -04:00
nfs41_callback.h license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
nfs41_client.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
nfs41_compound.c [cosmetic] removed unused define 2012-03-19 15:04:39 -04:00
nfs41_compound.h license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
nfs41_const.h increasing maxfilename to 255 2012-05-02 18:54:21 -04:00
nfs41_daemon.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
nfs41_ops.c ea: refactor SetEaInfo for use on open 2012-05-03 10:58:24 -04:00
nfs41_ops.h ea: query each superblock for named attr support 2012-04-09 15:01:12 -04:00
nfs41_rpc.c in rpc_reconnect respect original needcb value 2012-03-19 15:04:36 -04:00
nfs41_server.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
nfs41_session.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
nfs41_superblock.c volume: cache volume attributes on mount 2012-04-20 15:03:14 -04:00
nfs41_types.h handling hidden system archive file attributes 2012-04-02 12:49:44 -04:00
nfs41_xdr.c [readdir] make sure buffer produces nul-terminated str 2012-04-26 11:07:27 -04:00
nfs41_xdr.h license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
open.c use readdir to generate ea list 2012-05-03 10:58:36 -04:00
pnfs.h license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
pnfs_debug.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
pnfs_device.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
pnfs_io.c superblock: mask getattr requests with supported_attrs 2012-04-02 16:34:02 -04:00
pnfs_layout.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
readdir.c leaving one max_component len constant 2012-04-30 11:57:34 -04:00
readwrite.c superblock: mask getattr requests with supported_attrs 2012-04-02 16:34:02 -04:00
recovery.c open and create accept pointer to attributes 2012-03-29 16:16:55 -04:00
recovery.h license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
service.c build: pacified compiler warnings in x86/x64 2011-11-02 12:08:48 -04:00
service.h first stab at nfsd as a service 2010-10-12 10:36:03 -04:00
setattr.c cosmetic: move ea get and set upcalls to separate file 2012-05-03 10:58:01 -04:00
sources idmap.c for ldap caching and configuration 2010-11-08 12:54:40 -05:00
symlink.c open and create accept pointer to attributes 2012-03-29 16:16:55 -04:00
tree.h replace rbtree implementation with tree.h from freebsd 2010-12-01 10:25:29 -05:00
upcall.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
upcall.h [ea] pass ea to daemonon open 2012-05-03 10:56:47 -04:00
util.c changing error code when path is too long 2012-04-26 11:06:31 -04:00
util.h implement getattr for FileNetworkOpenInformation 2012-04-20 12:42:36 -04:00
volume.c [volume] fixing FsAttributes volume query 2012-04-25 11:37:24 -04:00