rocky@tasha.poly.edu (A1 rocky shiotsuki (staff) ) (05/02/91)
Hi networld
I need help for program that used rpc call.
I'm using HP 9000 s 400t with drive as followed:
/dev/dsk/0s0 149886 113625 21272 84% /
/dev/dsk/5s0 115423 76093 33558 69% /usr1
And OS is HPUX 7.03
And I'm try to run a program called nfsad, came with MAC_NFS package.
I'm using this program on another HP 9000 s 400t with out error. But
I'm getting error from second machine.
An error message from nfsad as followed:
% nfsad /usr1
Mount point /usr1 not found.
%
Souce code is looks like this:
. (char *directory pointed to string "/usr1")
.
request_text.length = strlen(directory);
request_text.dir = directory;
.
.
client->cl_auth = authunix_create_default();
total_timeout.tv_sec = 20;
total_timeout.tv_usec = 0;
clnt_stat = clnt_call(client,1L,xdr_text,&request_text,xdr_fhstatus,
&mount_return,total_timeout);
if ( clnt_stat != RPC_SUCCESS)
{
clnt_perror(client,"rpc");
exit(-1);
}
.
.
The clnt_call return the value RPC_SUCCESS, but mount_return.status
contain the value 13, if it success then mount_return.status should
have the value 0.
Please some one help me to what should I look for to solve this
problem.
Thanks in advance!
---------------------------------------------------------------------
Rocky Shiotsuki Polytechnic University
333 Jay Street, Brooklyn, New York 11201
Internet: rocky@prism.poly.edu (128.238.2.17)
dds@speedy.CND.HP.COM (Darren Smith) (05/08/91)
|The clnt_call return the value RPC_SUCCESS, but mount_return.status |contain the value 13, if it success then mount_return.status should |have the value 0. |Please some one help me to what should I look for to solve this |problem. I have no idea what the problem with your program is, but felt I should not something about the statement above. The value RPC_SUCCESS only indicates that the rpc code was successful in completing it's remote call. It is up to the program to include further indications of success/failure that are program specific to the call that was made. Thus, it may be perfectly reasonable to get a value of RPC_SUCCESS, but still have a failure indication in mount_return.status. -- Darren Smith dds@cnd.hp.com 229-2536 Colorado Networks Division -- Disclaimer: The opinions expressed here are strictly my own and do not represent an opinion or official statement of HP.