- Timestamp:
- 07/11/10 20:03:46 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/cu-security-branch/test/io/description/test-zero-fill.c
r8397 r8426 26 26 27 27 int do_smallmem_noncontig_read( 28 PVFS_object_ref ref, PVFS_credential s* creds,28 PVFS_object_ref ref, PVFS_credential * creds, 29 29 int memsize, 30 30 int chunks, … … 32 32 33 33 int do_noncontig_read( 34 PVFS_object_ref ref, PVFS_credential s* creds,34 PVFS_object_ref ref, PVFS_credential * creds, 35 35 int chunks, 36 36 ...); … … 38 38 int do_contig_read( 39 39 PVFS_object_ref ref, 40 PVFS_credential s* creds,40 PVFS_credential * creds, 41 41 PVFS_offset offset, 42 42 int length, 43 43 PVFS_Request freq); 44 44 45 int do_write(PVFS_object_ref ref, PVFS_credential s* creds,45 int do_write(PVFS_object_ref ref, PVFS_credential * creds, 46 46 PVFS_offset offset, PVFS_size size, char * buff); 47 47 … … 157 157 158 158 int do_smallmem_noncontig_read( 159 PVFS_object_ref ref, PVFS_credential s* creds,159 PVFS_object_ref ref, PVFS_credential * creds, 160 160 int memsize, 161 161 int chunks, … … 232 232 233 233 int do_noncontig_read( 234 PVFS_object_ref ref, PVFS_credential s* creds,234 PVFS_object_ref ref, PVFS_credential * creds, 235 235 int chunks, 236 236 ...) … … 307 307 int do_contig_read( 308 308 PVFS_object_ref ref, 309 PVFS_credential s* creds,309 PVFS_credential * creds, 310 310 PVFS_offset offset, 311 311 int length, … … 367 367 } 368 368 369 int do_write(PVFS_object_ref ref, PVFS_credential s* creds,369 int do_write(PVFS_object_ref ref, PVFS_credential * creds, 370 370 PVFS_offset offset, PVFS_size size, char * buff) 371 371 { … … 433 433 PVFS_fs_id curfs; 434 434 PVFS_sys_attr attr; 435 PVFS_credential screds;435 PVFS_credential creds; 436 436 PVFS_sys_dist * dist; 437 437 int strip_size = 9; … … 503 503 } 504 504 505 PVFS_util_gen_credential_defaults(&creds); 506 505 507 res = PVFS_sys_lookup(curfs, "/", &creds, &lookup_resp, 0, NULL); 506 508 if(res < 0) … … 518 520 } 519 521 520 PVFS_util_gen_credentials(&creds);521 522 522 attr.mask = PVFS_ATTR_SYS_ALL_SETABLE; 523 attr.owner = creds.u id;524 attr.group = creds.g id;523 attr.owner = creds.userid; 524 attr.group = creds.group_array[0]; 525 525 attr.perms = 1877; 526 526 attr.atime = attr.ctime = attr.mtime = time(NULL);
