[Pvfs2-users] Programming with PVFS2
Aresky Aresky
aresky at gmail.com
Tue Jun 6 03:35:04 EDT 2006
The problem has been fixed.Thanks a lot. I misunderstood the
documents.Maybeadding a small example to the pvfs2-guide will make
it a bit clear to some
new users like me:).
On 6/6/06, pvfs2-users-request at beowulf-underground.org <
pvfs2-users-request at beowulf-underground.org> wrote:
>
> Send Pvfs2-users mailing list submissions to
> pvfs2-users at beowulf-underground.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
> or, via email, send a message with subject or body 'help' to
> pvfs2-users-request at beowulf-underground.org
>
> You can reach the person managing the list at
> pvfs2-users-owner at beowulf-underground.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Pvfs2-users digest..."
>
>
> Today's Topics:
>
> 1. How (Aresky Aresky)
> 2. Re: How (Nathan Poznick)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 5 Jun 2006 20:23:05 +0800
> From: "Aresky Aresky" <aresky at gmail.com>
> Subject: [Pvfs2-users] How
> To: Pvfs2-users at beowulf-underground.org
> Message-ID:
> <de623fe0606050523h3503d3afo98c3138987d19637 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Mon, 5 Jun 2006 08:55:48 -0500
> From: Nathan Poznick <kraken at wang-fu.org>
> Subject: Re: [Pvfs2-users] How
> To: pvfs2-users at beowulf-underground.org
> Message-ID: <20060605135548.GA21206 at tao.wang-fu.org>
> Content-Type: text/plain; charset="us-ascii"
>
> Thus spake Aresky Aresky:
> > These statments confused me .
>
> You're getting 2 different things confused. The libpvfs2 that PVFS2
> provides is not suitable for use as a target for application developers.
>
> The I/O interface that is mentioned, is the Linux kernel module for
> PVFS2. If you compile and install the kernel module on your client
> systems, you can use mount(8) to mount PVFS2 filesystems, and interact
> with them with open/read/write/close just as you normally would any
> other filesystem.
>
> I think perhaps the wording in section 5.1 of the PVFS2 guide could be
> reworded to be a bit clearer.
>
> --
> Nathan Poznick <kraken at wang-fu.org>
>
> There is no faculty of the human soul so persistent and universal as
> that of hatred. - Henry Ward Beecher
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 189 bytes
> Desc: Digital signature
> Url :
> http://www.beowulf-underground.org/pipermail/pvfs2-users/attachments/20060605/bd39aedf/attachment-0001.bin
>
> ------------------------------
>
> _______________________________________________
> Pvfs2-users mailing list
> Pvfs2-users at beowulf-underground.org
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
>
>
> End of Pvfs2-users Digest, Vol 6, Issue 4
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.beowulf-underground.org/pipermail/pvfs2-users/attachments/20060606/fa8331de/attachment.htm
More information about the Pvfs2-users
mailing list