ms-nfs41-client/daemon
Casey Bodley c59124dd20 superblock: mask getattr requests with supported_attrs
on creation of a new superblock, construct a bitmap for the default attribute mask to be used for GETATTR and READDIR requests on that filesystem.  mask out any unsupported attributes, and store the bitmap in the field nfs41_superblock.default_getattr

replaced function init_getattr_request() with nfs41_superblock_getattr_mask(), which returns a copy of superblock->default_getattr

removed the locking in nfs41_superblock_supported_attrs() and nfs41_superblock_supported_attrs_exclcreat(), as the supported_attrs and suppattr_exclcreat fields are read-only after the superblock is first initialized.  also factored out their common code into a bitmap_intersect() function in util.h

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
2012-04-02 16:34:02 -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
from_kernel.h license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
getattr.c superblock: mask getattr requests with supported_attrs 2012-04-02 16:34:02 -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 license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
lookup.c handling hidden system archive file attributes 2012-04-02 12:49:44 -04:00
makefile fresh git tree for public release 2010-10-12 10:15:48 -04:00
mount.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
name_cache.c handling hidden system archive file attributes 2012-04-02 12:49:44 -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 superblock: mask getattr requests with supported_attrs 2012-04-02 16:34:02 -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 license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -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 superblock: mask getattr requests with supported_attrs 2012-04-02 16:34:02 -04:00
nfs41_ops.h superblock: mask getattr requests with supported_attrs 2012-04-02 16:34:02 -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 superblock: mask getattr requests with supported_attrs 2012-04-02 16:34:02 -04:00
nfs41_types.h handling hidden system archive file attributes 2012-04-02 12:49:44 -04:00
nfs41_xdr.c handling hidden system archive file attributes 2012-04-02 12:49:44 -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 provided, not saved mode for superseded opens 2012-04-02 14:42:35 -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 superblock: mask getattr requests with supported_attrs 2012-04-02 16:34:02 -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 handling hidden system archive file attributes 2012-04-02 12:49:44 -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 license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00
util.c handling hidden system archive file attributes 2012-04-02 12:49:44 -04:00
util.h superblock: mask getattr requests with supported_attrs 2012-04-02 16:34:02 -04:00
volume.c license changed to LGPL: added COPYING file, changed source file comments 2012-03-19 12:24:43 -04:00