Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.