Hi Kyle, Thank you for the advice, these codes should be indeed a good place to start.
Regarding the distribution, I dug a bit and found here http://www.orangefs.org/doxygen/index.html some functions to set/get extended attributes (e.g. pvfs_fsetxattr) . Then at http://www.pvfs.org/cvs/pvfs-2-8-branch-docs/doc/pvfs2-tuning/pvfs2-tuning.html in section 7.4 I see a way to set the stripe size on a per-server basis so I guess I could put 0 for the servers I don't want to use and a positive value for the servers I want to use. Would that work? Thanks, Matthieu ----- Mail original ----- > De: "Kyle Schochenmaier" <[email protected]> > À: "Matthieu Dorier" <[email protected]> > Cc: "pvfs2-users" <[email protected]> > Envoyé: Jeudi 7 Février 2013 17:05:06 > Objet: Re: [Pvfs2-users] Using PVFS2's API directly > Hi Matthieu - > For API examples I would start with looking at the admin tools like > pvfs2-cp, etc as they utilize the libpvfs apis directly. > I'm not sure if you're able to specify any of the information you > want to on a per-file basis at creation time. > This information is pulled in from the distribution params of the > directory the file is created in. There may be other methods I'm not > immediately thinking of though... I'll let others comment. > ~Kyle > Kyle Schochenmaier > On Thu, Feb 7, 2013 at 7:05 AM, Matthieu Dorier < > [email protected] > wrote: > > Hi, > > > I would like to use the client API provided by PVFS2, without any > > kernel support or MPI-I/O interface. Where can I find documentation > > and code samples of this API? > > > Also I'd like to know if there is a way to specify, when creating a > > file (so from within a client application), the list of storage > > servers to which this file should go and the stripe size, in order > > to bypass the configuration of the directory in which the file is > > created? > > > Thanks! > > > Matthieu Dorier > > > PhD student at ENS Cachan Brittany and IRISA > > > http://people.irisa.fr/Matthieu.Dorier > > > _______________________________________________ > > > Pvfs2-users mailing list > > > [email protected] > > > http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users >
_______________________________________________ Pvfs2-users mailing list [email protected] http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
