All of lore.kernel.org
 help / color / mirror / Atom feed
* possible to do non-blocking write to NFS?
       [not found] ` <39EC6F4E.8FC87501@nortelnetworks.com>
@ 2001-12-03 16:02   ` Christopher Friesen
  2001-12-04  0:44     ` James Stevenson
  2001-12-04  9:30     ` Alan Cox
  0 siblings, 2 replies; 3+ messages in thread
From: Christopher Friesen @ 2001-12-03 16:02 UTC (permalink / raw)
  To: linux-kernel


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.

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

Chris\x13




-- 
Chris Friesen                    | MailStop: 043/33/F10  
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: possible to do non-blocking write to NFS?
  2001-12-03 16:02   ` possible to do non-blocking write to NFS? Christopher Friesen
@ 2001-12-04  0:44     ` James Stevenson
  2001-12-04  9:30     ` Alan Cox
  1 sibling, 0 replies; 3+ messages in thread
From: James Stevenson @ 2001-12-04  0:44 UTC (permalink / raw)
  To: Christopher Friesen, linux-kernel


> 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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: possible to do non-blocking write to NFS?
  2001-12-03 16:02   ` possible to do non-blocking write to NFS? Christopher Friesen
  2001-12-04  0:44     ` James Stevenson
@ 2001-12-04  9:30     ` Alan Cox
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2001-12-04  9:30 UTC (permalink / raw)
  To: Christopher Friesen; +Cc: linux-kernel

> 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.

Mount the file system soft. Remember that the error you see may well be on
fsync or close. Also it'll still take some time to decide the other end is
dead not just slow

Alan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-04  9:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200010131722.e9DHMwL17616@pincoya.inf.utfsm.cl>
     [not found] ` <39EC6F4E.8FC87501@nortelnetworks.com>
2001-12-03 16:02   ` possible to do non-blocking write to NFS? Christopher Friesen
2001-12-04  0:44     ` James Stevenson
2001-12-04  9:30     ` Alan Cox

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.