Show
Ignore:
Timestamp:
07/11/10 20:03:46 (3 years ago)
Author:
nlmills
Message:

switched tests to use new credential data structure

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/cu-security-branch/test/io/description/test-zero-fill.c

    r8397 r8426  
    2626 
    2727int do_smallmem_noncontig_read( 
    28     PVFS_object_ref ref, PVFS_credentials * creds, 
     28    PVFS_object_ref ref, PVFS_credential * creds, 
    2929    int memsize, 
    3030    int chunks, 
     
    3232 
    3333int do_noncontig_read( 
    34     PVFS_object_ref ref, PVFS_credentials * creds,  
     34    PVFS_object_ref ref, PVFS_credential * creds,  
    3535    int chunks,  
    3636    ...); 
     
    3838int do_contig_read( 
    3939    PVFS_object_ref ref,  
    40     PVFS_credentials * creds,  
     40    PVFS_credential * creds,  
    4141    PVFS_offset offset,  
    4242    int length, 
    4343    PVFS_Request freq); 
    4444 
    45 int do_write(PVFS_object_ref ref, PVFS_credentials * creds, 
     45int do_write(PVFS_object_ref ref, PVFS_credential * creds, 
    4646             PVFS_offset offset, PVFS_size size, char * buff); 
    4747 
     
    157157 
    158158int do_smallmem_noncontig_read( 
    159     PVFS_object_ref ref, PVFS_credentials * creds, 
     159    PVFS_object_ref ref, PVFS_credential * creds, 
    160160    int memsize, 
    161161    int chunks, 
     
    232232 
    233233int do_noncontig_read( 
    234     PVFS_object_ref ref, PVFS_credentials * creds,  
     234    PVFS_object_ref ref, PVFS_credential * creds,  
    235235    int chunks,  
    236236    ...) 
     
    307307int do_contig_read( 
    308308    PVFS_object_ref ref,  
    309     PVFS_credentials * creds,  
     309    PVFS_credential * creds,  
    310310    PVFS_offset offset,  
    311311    int length, 
     
    367367} 
    368368 
    369 int do_write(PVFS_object_ref ref, PVFS_credentials * creds, 
     369int do_write(PVFS_object_ref ref, PVFS_credential * creds, 
    370370             PVFS_offset offset, PVFS_size size, char * buff) 
    371371{ 
     
    433433    PVFS_fs_id curfs; 
    434434    PVFS_sys_attr attr; 
    435     PVFS_credentials creds; 
     435    PVFS_credential creds; 
    436436    PVFS_sys_dist * dist; 
    437437    int strip_size = 9; 
     
    503503    } 
    504504 
     505    PVFS_util_gen_credential_defaults(&creds); 
     506 
    505507    res = PVFS_sys_lookup(curfs, "/", &creds, &lookup_resp, 0, NULL); 
    506508    if(res < 0) 
     
    518520    } 
    519521 
    520     PVFS_util_gen_credentials(&creds); 
    521  
    522522    attr.mask = PVFS_ATTR_SYS_ALL_SETABLE; 
    523     attr.owner = creds.uid; 
    524     attr.group = creds.gid; 
     523    attr.owner = creds.userid; 
     524    attr.group = creds.group_array[0]; 
    525525    attr.perms = 1877; 
    526526    attr.atime = attr.ctime = attr.mtime = time(NULL);