As i read in the orangefs.org it means:
/* read 'count' bytes from a (unix or pvfs2) file 'src', placing the result in
00321  * 'buffer' */
So if i do:
ret = PVFS_Request_contiguous(100, PVFS_BYTE, &mem_req);ret = 
PVFS_sys_read(src->u.pvfs2.ref, file_req, 0,buffer, mem_req, credentials, 
&resp_io, hints);
count = 100 bytesoffset = 0
Does it mean that i would like to read 100 bytes(count = 100) from file 
src->u.pvfs2.ref starting from offset 0 and storing the result in buffer?


From: [email protected]
To: [email protected]
Date: Sun, 19 Feb 2012 18:14:39 +0200
Subject: [Pvfs2-users] Questions related to arguments of PVFS_sys_read







Hello i'm trying to use PVFS_sys_read function but i can't understand what the 
following arguments mean:
ret = PVFS_sys_read(src->u.pvfs2.ref, file_req, offset,buffer, mem_req, 
credentials, &resp_io, hints);
1. size_t count --> What does 'count' mean?What value shall i place here?I 
can't understand the meaning of count2. char * buffer  --> what does it 
store?3. int64_t offset --> what does it mean?
I can't understand what these arguments do and what values can be assigned to 
them.
eg. Is buffer the array where the line of the file is going to be stored? 
Thanks, in advance                                        

_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users                 
                          
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to