Oops.

Now that I've actually read your email I see you were looking for a
function. My advice would be to follow the example of the pvfs2-viewdist
command. It looks like the key is to call PVFS_sys_geteattr to get the
value associated with DFILE_KEY and then call PINT_dist_decode to turn the
value buffer into a PINT_dist object that describes the distribution
parameters. However the PINT_ prefix suggests that this is a function
internal to PVFS.

Perhaps someone else can suggest an alternative?

-Nick Mills


On Tue, May 7, 2013 at 4:47 PM, Nicholas Mills <[email protected]>wrote:

> The "pvfs2-viewdist" command will give output similar to the following:
>
> [nlmills@user001 ~]$ /opt/pvfs2/bin/pvfs2-viewdist -f
> /newscratch/nlmills/tmp
> dist_name = simple_stripe
> dist_params:
> strip_size:524288
>
> Metadataserver:
> tcp://pvfs003-myri0:3335,tcp://pvfs003-ib0:3335,tcp://pvfs003:3335
> Number of datafiles/servers = 1
> Datafile 0 -
> tcp://pvfs003-myri0:3335,tcp://pvfs003-ib0:3335,tcp://pvfs003:3335, handle:
> 5044031582652437680 (45ffffffffd994b0.bstream)
>
> -Nick Mills
>
>
> On Tue, May 7, 2013 at 4:28 PM, Vishwanath Venkatesan <[email protected]
> > wrote:
>
>> Hi,
>>
>> I was looking at programmatically extract the stripe size set for the
>> pvfs2 file system using pvfs-2.8.2. I see that the file system provides
>> functions like pvfs2-dist-set-param, but there is no pvfs2-dist-get-param
>> available in pvfs-2.8.2. Am I missing something? or is there a different
>> function that needs to be used.
>>
>> Please let me know,
>>
>> Thanks
>> Vish
>>
>> _______________________________________________
>> 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

Reply via email to