[Pvfs2-users] How
Aresky Aresky
aresky at gmail.com
Mon Jun 5 08:23:05 EDT 2006
As said in pvfs2-guide, the system interface is implementd as a single
library, called libpvfs2. It is a stateless API that has no concept of
open(), close(), or file descriptors. We provide an implementation of the
UNIX I/O interface for clients. This interface implements the traditional
open, read, write, and close interface as well as providing the directory
operations necessary for applications suah as ls to work.
These statments confused me .
If these is a file, named 'pvfs2test', in the directory /mnt/pvfs2, how can
I open, and read it. In c programming, we just need to do as follow:
int fd, n;
if (( fd = open("pvfs2test", O_RDONLY, 0) == -1)
error("failure");
read(fd, buff, BUFFSIZE);
How can I do such things using PVFS2? I just know I have to add include <
pvfs2.h> to the code and use compile command such as gcc -o test.o
test.c-L/usr/src/pvfs2/lib -lpvfs2.
Thanks,
aresky at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.beowulf-underground.org/pipermail/pvfs2-users/attachments/20060605/77c5e441/attachment.htm
More information about the Pvfs2-users
mailing list