Skip to contentSkip to conversation

does nfs-util have a api-manual?

DISCUSSION 宋哲 2 participants 2 messages Jun 9, 2011

Subsystems (2)
lore
Share & tools
lore

宋哲

author
#0 lore raw

I have wrote a server application that record audio files to a nfs=20 directory, and I write to the directory just like it is a local disk.

But when some error occurs with the nfs-connection, the "write"=20 operation is just hanged up and does not return any errors, so I want t= o=20
use nfs-utils, and I think I can handle the error above with the tools.= =20
But I almost know nothing about nfs-utils. Can you help me?

thanks !

________________________________
------------------=C2=A0=E5=8E=9F=E5=A7=8B=E9=82=AE=E4=BB=B6=C2=A0-----=
-------------
=E5=8F=91=E4=BB=B6=E4=BA=BA:=C2=A0"Steve=C2=A0Dickson"=C2=A0<SteveD@red= hat.com>; =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4:=C2=A02011=E5=B9=B406=E6=9C=8808=E6= =97=A5=C2=A019=E7=82=B927=E5=88=86 =E6=94=B6=E4=BB=B6=E4=BA=BA:=C2=A0"=E5=AE=8B=E5=93=B2"=C2=A0<songzhe@ci= ntel.net.cn>;=C2=A0 =E6=8A=84=E9=80=81:=C2=A0"[email protected]"=C2=A0<linux-nfs@vg= er.kernel.org>;=C2=A0

=E4=B8=BB=E9=A2=98:=C2=A0Re:=C2=A0does=C2=A0nfs-util=C2=A0have=C2=A0a=C2= =A0api-manual?=C2=A0

On=C2=A006/08/2011=C2=A005:39=C2=A0AM,=C2=A0=E5=AE=8B=E5=93=B2=C2=A0wro= te:

Quoted 1 line

=C2=A0Does=C2=A0nfs-util=C2=A0have=C2=A0a=C2=A0api-manual?=C2=A0I=C2=A0=

can=C2=A0not=C2=A0find=C2=A0it,=C2=A0thanks! No...=C2=A0What=C2=A0are=C2=A0you=C2=A0looking=C2=A0for?

steved.

Quoted 4 lines

=C2=A0
=C2=A0
=C2=A0-- =C2=A0To=C2=A0unsubscribe=C2=A0from=C2=A0this=C2=A0list:=C2=A0send=C2=A0=

the=C2=A0line=C2=A0"unsubscribe=C2=A0linux-nfs"=C2=A0in

Quoted 1 line

=C2=A0the=C2=A0body=C2=A0of=C2=A0a=C2=A0message=C2=A0to=C2=A0majordomo=

@vger.kernel.org

Quoted 1 line

=C2=A0More=C2=A0majordomo=C2=A0info=C2=A0at=C2=A0=C2=A0http://vger.ker=

nel.org/majordomo-info.html

#1 lore raw

宋哲 wrote:

I have wrote a server application that record audio files to a nfs directory, and I write to the directory just like it is a local disk.

But when some error occurs with the nfs-connection, the "write" operation is just hanged up and does not return any errors, so I want to use nfs-utils, and I think I can handle the error above with the tools. But I almost know nothing about nfs-utils. Can you help me?

I don't think you need nfs-utils. The write() system call will hang indefinitely if there is a problem with the mount. If you want it to fail when the server goes away, you need a soft mount, and adjust the timeo and retrans mount options to suit. See mount.nfs(8) and nfs(5).