LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   nfsmount in AIX and HPUX using C (https://www.linuxquestions.org/questions/linux-newbie-8/nfsmount-in-aix-and-hpux-using-c-717698/)

rajni.linux 04-08-2009 08:36 AM

nfsmount in AIX and HPUX using C
 
Hi All,

Is it possible to do nfsmount using c or c++ in linux,aix and hpux platform...
I have used nfsmount.c file from sourceforge for linux nfsmounting but what to do For AIX and HPUX ?

Means form aix client and linux/hpux server...if anyone had done that before then please help me...with some samplecode.


thanx

TB0ne 04-08-2009 09:07 AM

Quote:

Originally Posted by rajni.linux (Post 3502422)
Hi All,

Is it possible to do nfsmount using c or c++ in linux,aix and hpux platform...
I have used nfsmount.c file from sourceforge for linux nfsmounting but what to do For AIX and HPUX ?

Means form aix client and linux/hpux server...if anyone had done that before then please help me...with some samplecode.

thanx

Possible? Yes...but this question would be better on an AIX or HPUX board. Are you having any specific problem with the Linux NFS? What error(s)?

If you've got C code already to do NFS mounting, you'll have to port it over to AIX and/or HPUX. Once you do that, you can re-submit your changes to the original author at Sourceforge, and help out everyone in the community.

rajni.linux 04-08-2009 11:50 PM

nfsmount in linux
 
I am not getting any errors in linux(RHEL4,RHEL5,FC5)..means using that i can do nfs mount with any unix based os successfully.

But i want to do that from aix and/or hpux machine to other unix based machine...means my code should get compiled in aix5.3 and hpux also, so that by using that executable (as like mount command)i can do nfs mount.
I dont want to use any command for that,instead i want to use some system calls.

In aix vmount() function is there but it is not doing the same for me.
If possible then help me to do that.


thanx

TB0ne 04-09-2009 10:56 AM

Quote:

Originally Posted by rajni.linux (Post 3503159)
I am not getting any errors in linux(RHEL4,RHEL5,FC5)..means using that i can do nfs mount with any unix based os successfully.

But i want to do that from aix and/or hpux machine to other unix based machine...means my code should get compiled in aix5.3 and hpux also, so that by using that executable (as like mount command)i can do nfs mount.
I dont want to use any command for that,instead i want to use some system calls.

In aix vmount() function is there but it is not doing the same for me.
If possible then help me to do that.

thanx

Like I said...if you want it to work, then PORT YOUR CODE OVER TO AIX. You're the programmer, so its your job to make it work. What specific problems (linux related), are you having?

rajni.linux 04-10-2009 12:11 AM

I dont have any problems in LINUX and as you said i port my code in AIX ..after some modification it get compiled.But it is not mounting the host directory.


It is returning vmount:error 22 Invalid Arguments
Again if i am changing some parameters then it is mounting local directory<if the local directory is present>

So if you know , how to do that then please help me out.

Thanx

TB0ne 04-10-2009 09:59 AM

Quote:

Originally Posted by rajni.linux (Post 3504301)
I dont have any problems in LINUX and as you said i port my code in AIX ..after some modification it get compiled.But it is not mounting the host directory.


It is returning vmount:error 22 Invalid Arguments
Again if i am changing some parameters then it is mounting local directory<if the local directory is present>

So if you know , how to do that then please help me out.

Thanx

This is YOUR PROGRAM that YOU WROTE. We don't know anything about it, and it runs under AIX (as you said, Linux is working fine). If you wrote a custom program for AIX, you're going to have to debug it yourself.


All times are GMT -5. The time now is 04:16 AM.