[Pvfs2-users] Questions related to arguments of PVFS_sys_read
g_p g_p
g_p_java at hotmail.com
Sun Feb 19 11:42:50 EST 2012
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: g_p_java at hotmail.com
To: pvfs2-users at beowulf-underground.org
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
Pvfs2-users at beowulf-underground.org
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.beowulf-underground.org/pipermail/pvfs2-users/attachments/20120219/22ee4d69/attachment-0001.htm
More information about the Pvfs2-users
mailing list