LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 04-08-2009, 08:36 AM   #1
rajni.linux
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Rep: Reputation: 0
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
 
Old 04-08-2009, 09:07 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,134

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by rajni.linux View Post
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.
 
Old 04-08-2009, 11:50 PM   #3
rajni.linux
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 04-09-2009, 10:56 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,134

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by rajni.linux View Post
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?
 
Old 04-10-2009, 12:11 AM   #5
rajni.linux
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 04-10-2009, 09:59 AM   #6
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,134

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by rajni.linux View Post
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.
 
  


Reply

Tags
multiplatform, using


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is there a portmir command for hpux? boyd98 AIX 1 02-12-2009 03:15 PM
dd backup to nfsmount help please Stin Linux - Newbie 4 05-12-2008 07:52 AM
Mutt for HPUX samash Other *NIX 2 03-25-2008 07:56 AM
LXer: Java on AIX: Data Collection For AIX Core Dumps LXer Syndicated Linux News 0 05-17-2007 06:46 PM
System hangs in update of AIX from 4.3.3 to AIX 5.2 jmurray67 AIX 2 07-25-2004 08:25 PM


All times are GMT -5. The time now is 12:01 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration