Thank you so much, Sam. I found out the definition with your help. The paper
you gave is also very helpful, meanwhile, I still want to know if you have a
manual about the BMI protocol, mainly describing every field in each kind of
packet. As you know, that would save us a lot of work when we are
implementing the interposed scheduler. (We found Wireshark actually did some
work on PVFS2 packet dissection, but it seems they didn't do it perfect.)
Appreciate your help. Thank you very much!


Regards,

On Thu, Mar 4, 2010 at 9:09 AM, Sam Lang <[email protected]> wrote:

>
> On Mar 3, 2010, at 8:46 PM, Yonggang Liu wrote:
>
> > Hello all,
> >
> > I'm pretty new to PVFS2, and now I'm doing a project about implementing
> interposed scheduler between the PVFS2 clients and PVFS2 servers to provide
> QoS. So I have read some code and doc about the PVFS2 protocols. But for a
> couple of days I get confused about one part of the code,
> > In src/proto/PINT-le-bytefield.c, function lebf_encode_req(), we have:
> > #define CASE(tag,var) \
> >     case tag: encode_PVFS_servreq_##var(p,&req->u.var); break
> >
> >     switch (req->op) {
> >
> >     /* call standard function defined in headers */
> >     CASE(PVFS_SERV_LOOKUP_PATH, lookup_path);
> >     CASE(PVFS_SERV_CREATE, create);
> >     CASE(PVFS_SERV_UNSTUFF, unstuff);
> >     CASE(PVFS_SERV_BATCH_CREATE, batch_create);
> >     CASE(PVFS_SERV_BATCH_REMOVE, batch_remove);
> >     CASE(PVFS_SERV_REMOVE, remove);
> >     ......
> > This means these functions exist to be called:
> > encode_PVFS_servreq_lookup_path(p, &req->u.lookup_path);
> > encode_PVFS_servreq_create(p, &req->u.create);
> > ......
> > But I was confused that I couldn't find the definition of the above
> functions anywhere in the code. So can anyone help me to figure out the way
> they are defined? (Sorry, this is really a silly question caused by my poor
> C language skills ...) Thanks.
>
> Look in src/proto/pvfs2-req-proto.h.  The macro: endecode_fields_5_struct
> defines encode_PVFS_servreq_create.
>
> >
> > Also, I am wondering if some one has a good documentation describing the
> PVFS2 network protocols. I would really appreciate it if you can share it
> with me.
>
> BMI is described in this paper:
>
> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.60.2472
>
> -sam
>
> >
> >
> > Thank you very much,
> >
> > --
> > Yonggang Liu
> > Advanced Computing and Information Systems Laboratory
> > University of Florida
> > _______________________________________________
> > Pvfs2-developers mailing list
> > [email protected]
> > http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers
>
>


-- 
Yonggang Liu
Advanced Computing and Information Systems Laboratory
University of Florida
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to