Changeset 9007

Show
Ignore:
Timestamp:
08/11/11 14:06:53 (22 months ago)
Author:
mtmoore
Message:

increase maximum number of eattrs that can be requested, fix bug in nkey check found by hubcap

Location:
branches/Orange-Branch
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/Orange-Branch/include/pvfs2-types.h

    r8957 r9007  
    521521#define PVFS_MAX_XATTR_VALUELEN  8192 /* Not the same as XATTR_SIZE_MAX defined 
    522522                                        by <linux/xattr.h> */  
    523 #define PVFS_MAX_XATTR_LISTLEN   8  /* Not the same as XATTR_LIST_MAX 
     523#define PVFS_MAX_XATTR_LISTLEN   16  /* Not the same as XATTR_LIST_MAX 
    524524                                          defined by <linux/xattr.h> */ 
    525525 
  • branches/Orange-Branch/src/client/sysint/sys-list-eattr.sm

    r8941 r9007  
    8181     * let's enfore the max key buffer of PVFS_MAX_XATTR_NAMELEN 
    8282     */ 
    83     if( resp_p->nkey > PVFS_REQ_LIMIT_EATTR_LIST ) 
     83 
     84    if( nkey > PVFS_REQ_LIMIT_EATTR_LIST ) 
    8485    { 
    8586        gossip_debug(GOSSIP_CLIENT_DEBUG, "%s: requested number of keys, %d, " 
     
    8990    } 
    9091 
    91     for( i=0; i < resp_p->nkey; i++ ) 
     92    for( i=0; i < nkey; i++ ) 
    9293    { 
    9394        if( resp_p->key_array[i].buffer_sz > PVFS_MAX_XATTR_NAMELEN )