From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Emacs Hangs on Filesystem Operations on Stale NFS Date: Mon, 11 Jun 2018 13:08:03 -0400 Message-ID: References: <7636.1528735584@alto> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528736819 5903 195.159.176.226 (11 Jun 2018 17:06:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2018 17:06:59 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 11 19:06:55 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSQHK-0001NG-2C for ged-emacs-devel@m.gmane.org; Mon, 11 Jun 2018 19:06:50 +0200 Original-Received: from localhost ([::1]:50289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSQJR-0006bz-8r for ged-emacs-devel@m.gmane.org; Mon, 11 Jun 2018 13:09:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSQIl-0006b9-EX for emacs-devel@gnu.org; Mon, 11 Jun 2018 13:08:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSQIh-0007pK-Ag for emacs-devel@gnu.org; Mon, 11 Jun 2018 13:08:19 -0400 Original-Received: from [195.159.176.226] (port=45301 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSQIh-0007oy-2d for emacs-devel@gnu.org; Mon, 11 Jun 2018 13:08:15 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fSQGU-0000PH-6u for emacs-devel@gnu.org; Mon, 11 Jun 2018 19:05:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:gL9/wijWKdUeQXV/8L1x03BUBNo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226230 Archived-At: >> - It seems your unreliable NFS server is mounted "hard" rather than "soft". >> Why is that? "man mount" on my Debian machine doesn't find any "hard" >> or "soft" options, so has the soft-mount option disappeared? > Try nfs(5) for a description of "hard" and "soft". [ Ah, indeed. Not sure why it's not in `mount` even though that page also claims to have NFS-specific options. In any case, this confirms tht soft mounts still exist. Thanks. ] > Hard mounts are the default because soft mounts usually cause more > problems than they solve. Indeed, but the OP's description of the behavior he's trying to get from Emacs suggests maybe he'd be satisfied by a `soft` mount. >> What are >> applications usually expected to do when accessing a stale NFS server? > > Could we start by getting a more precise definition of "stale NFS > server"? I can think of at least 3 different situations that might be > meant: > - the server is down temporarily > - the server is down permanently > - the server is up, but it no longer exports that filesystem - the server is up, but the connection is temporarily not available. [ where "temporarily" can last a long time. ] - buggy NFS (the server is up and exporting, the connection as well, yet the NFS client stalls for some unknown reason). Stefan