The original error you posted was in linking src/apps/admin/pvfs2-mkspace,
which uses trove, but contains none of the pvfs2-server -specific code. If
you try to alter the makefile you will run into more problems. For example,
both pvfs2-mkspace.c and pvfs2-server.c have a function called "main". I
suspect that will just be the beginning of the problems.

Does your new function need to happen *during* the processing that occurs
inside trove, or do you just need to make sure it happens after some
condition has been met and you recognize that inside trove? You also
mentioned calling your function from job.c as an option. Instead, could you
use the user_ptr parameter to the job function to store information that
indicates you need to run your function upon returning to the calling
function that resides in pvfs2-server.c?

Hope that helps,
Elaine

2011/9/6 欧佳欣 <[email protected]>

>         I think carefully about the suggestion you gave to me(to move the
> function to trove module) , I find it a little infeasible , because my new
> function I added in pvfs2-server.c calls some function in pvfs2-server.c,so
> if I move the new function to trove module , I must move the related
> function in pvfs2-server.c to trove module too.
> So can you give me some other suggestions ? I just learned that a function
> in one module can call a function in another module through changing the
> Makefile , but I don't know how to chang it , because of my lack knowledge
> of Makefile
> **
>
>  ------------------ Original ------------------
>  *From: * "Elaine Quarles"<[email protected]>;
> *Date: * Tue, Sep 6, 2011 00:16 AM
>  *To: * "'欧佳欣'"<[email protected]>; **
> *Cc: * "'pvfs2-developers'"<[email protected]>; **
> *Subject: * RE: RE: [Pvfs2-developers] Some quesions about function call
> betweentwodifferent modules in pvfs2
>
>
> The server directory contains the top level implementation of the server
> itself. All other systems,  like BMI, job, trove, etc. are helpers that the
> server uses to accomplish its work. In general, only files in the server
> directory should make calls to other functions defined in source files
> within the server directory.****
>
> ** **
>
> Hope this helps,****
>
> Elaine****
>
> ** **
>
> *From:* 欧佳欣 [mailto:[email protected]]
> *Sent:* Monday, September 05, 2011 11:36 AM
> *To:* Elaine Quarles
> *Subject:* Re:RE: [Pvfs2-developers] Some quesions about function call
> betweentwodifferent modules in pvfs2****
>
> ** **
>
> So,Can the code in job module calls a function from pvfs2-server.c ? such
> as the code in job.c****
>
>  ****
>
>  ****
>
> ------------------ Original ------------------****
>
> *From: * "Elaine Quarles"<[email protected]>;****
>
> *Date: * Mon, Sep 5, 2011 11:10 PM****
>
> *To: * "'欧佳欣'"<[email protected]>; ****
>
> *Cc: * "'pvfs2-developers'"<[email protected]>; ***
> *
>
> *Subject: * RE: [Pvfs2-developers] Some quesions about function call
> betweentwodifferent modules in pvfs2****
>
>  ****
>
> trove-migrate.c is a special module in that its entire purpose is to
> perform data migration when structural changes are made to the
> OrangeFS/PVFS2 database. In that sense, it is OrangeFS-specific rather than
> part of the generic trove implementation. It includes some .h files that are
> typically not included in trove modules.****
>
> ** **
>
> Thanks,****
>
> Elaine****
>
> ** **
>
> *From:* 欧佳欣 [mailto:[email protected]]
> *Sent:* Monday, September 05, 2011 10:44 AM
> *To:* Elaine Quarles
> *Subject:* Re: [Pvfs2-developers] Some quesions about function call
> betweentwodifferent modules in pvfs2****
>
> ** **
>
> But I find that , in src/io/trove/trove-migrate.c****
>
> the function 'migrate_collection_0_1_4' also calls the function
> get_server_config_struct() which is defined in pvfs2-server.****
>
> So,I want to kown why it can call the function in pvfs2-server , but
> dbpf-keyval.c can't ?(the trove-migrate.c source file is also in the trove
> level in orangefs-2.8.3-EXP)****
>
>  ****
> **
>
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to