On 6/6/06,
[EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:
Send Pvfs2-users mailing list submissions to
[email protected]
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
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
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" <[EMAIL PROTECTED]>
Subject: [Pvfs2-users] How
To: [email protected]
Message-ID:
<[EMAIL PROTECTED]>
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,
[EMAIL PROTECTED]
-------------- 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 < [EMAIL PROTECTED]>
Subject: Re: [Pvfs2-users] How
To: [email protected]
Message-ID: < [EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
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
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
End of Pvfs2-users Digest, Vol 6, Issue 4
*****************************************
_______________________________________________ Pvfs2-users mailing list [email protected] http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
