Re: possible to do non-blocking write to NFS?

From: James Stevenson (mail-lists@stev.org)
Date: Mon Dec 03 2001 - 19:44:45 EST


> Is there any way to write to an NFS-mounted filesystem in a way that will
avoid
> all of the NFS retries? Basically I want to try a write, and if the
server is
> not accessable I want to return immediately with an error code.

see the mount options for nfs
under the mount and nfs man pages

> Would setting the O_NONBLOCK flag on opening the file give me this
behaviour?
>

no it would not

    James

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Dec 07 2001 - 21:00:21 EST