ea: query each superblock for named attr support

adds a new function nfs41_superblock_getattr(), which adds an OPENATTR call with createdir=0 after the GETATTR to check for named attribute support.  OPENATTR will either return ERR_NOTSUPP if not supported, or OK/ERR_NOENT depending on whether named attributes are present on the given file.  we can't query for the 'named_attr' attribute, because it only tells us whether the given file contains named attributes

if named attributes are supported on a superblock, it will return FILE_SUPPORTS_EXTENDED_ATTRIBUTES for associated volume queries

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2012-04-05 12:02:07 -04:00 committed by unknown
parent fd591f92d7
commit b3229d20f6
5 changed files with 82 additions and 3 deletions

View file

@ -1129,6 +1129,13 @@ int nfs41_getattr(
IN bitmap4 *attr_request,
OUT nfs41_file_info *info);
int nfs41_superblock_getattr(
IN nfs41_session *session,
IN nfs41_path_fh *file,
IN bitmap4 *attr_request,
OUT nfs41_file_info *info,
OUT bool_t *supports_named_attrs);
/* getattr.c */
int nfs41_cached_getattr(
IN nfs41_session *session,