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,

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

Reply via email to